Skip to content

Commit eb9ce7c

Browse files
author
linuxjava7
committed
make the view switcher slightly more blurred and transparent
1 parent 88822b3 commit eb9ce7c

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

css/catppuccin.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
--accent-bg-color: oklch(0.66 0.18 273.13 / 1);
55
--accent-fg-color: oklch(0.96 0.01 264.53 / 1);
66
--view-switcher-accent: oklch(0.5 0.12 273.13);
7+
--accent-shadow-color: oklch(0.56 0.18 273.13 / 1);
78

89
/* Destructive Colors */
910
--destructive-color: oklch(0.55 0.22 19.81 / 1);
@@ -148,6 +149,7 @@
148149
--accent-bg-color: oklch(0.77 0.11 277.31 / 1);
149150
--accent-fg-color: oklch(0.18 0.02 284.2 / 1);
150151
--view-switcher-accent: oklch(0.77 0.11 273.31);
152+
--accent-shadow-color: oklch(0.67 0.11 277.31 / 1);
151153

152154
/* Destructive Colors */
153155
--destructive-color: oklch(0.77 0.1 14.37 / 1);
@@ -262,17 +264,19 @@
262264
@supports (color: AccentColor) {
263265
:root {
264266
--accent-bg-color: oklch(from AccentColor 0.66 0.18 h);
267+
--accent-shadow-color: oklch(from AccentColor 0.56 0.18 h);
265268
--window-bg-color: oklch(from AccentColor 0.96 0.01 h);
266269
--card-bg-color: oklch(from AccentColor 0.93 0.01 h);
267-
--headerbar-backdrop-color: oklch(from AccentColor 0.96 0.01 h / 80%);
270+
--headerbar-backdrop-color: oklch(from AccentColor 0.96 0.01 h / 70%);
268271
--view-switcher-accent: oklch(from AccentColor 0.5 0.12 h);
269272
}
270273
@media (prefers-color-scheme: dark) {
271274
:root {
272275
--accent-bg-color: oklch(from AccentColor 0.77 0.11 h);
276+
--accent-shadow-color: oklch(from AccentColor 0.67 0.11 h);
273277
--window-bg-color: oklch(from AccentColor 0.24 0.03 h);
274278
--card-bg-color: oklch(from AccentColor 0.32 0.03 h);
275-
--headerbar-backdrop-color: oklch(from AccentColor 0.24 0.03 h / 80%);
279+
--headerbar-backdrop-color: oklch(from AccentColor 0.24 0.03 h / 70%);
276280
--view-switcher-accent: oklch(from AccentColor 0.77 0.11 h);
277281
}
278282
}

css/index.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ a[href^="http"]:not(:has(.arrow)):not(:has(img)):not(:has(svg))::after {
579579

580580
/* Button styles for cards */
581581
.card .btn {
582-
background: var(--view-switcher-accent);
582+
background: var(--accent-shadow-color);
583583
border: none;
584584
cursor: pointer;
585585
outline-offset: 4px;
@@ -624,7 +624,7 @@ a[href^="http"]:not(:has(.arrow)):not(:has(img)):not(:has(svg))::after {
624624
justify-content: center;
625625
padding: 0.25rem;
626626
background-color: var(--headerbar-backdrop-color);
627-
backdrop-filter: blur(12px);
627+
backdrop-filter: blur(10px);
628628
z-index: 9999;
629629
border-radius: var(--btnround);
630630
box-shadow:

0 commit comments

Comments
 (0)