style: replace raw colors.css refs with glass tokens from constant.css

Replace @foreground, @primary, @error, @outline, @shadow, @secondary
and their var() equivalents with semantic glass-* tokens across 22 files.
Colors without glass equivalents (@on-primary, @cyan, etc.) left as-is.
This commit is contained in:
sankalp committed 2026-07-17 22:28:10 +05:45
1 parent aeccbe3089
commit 5e542eed4f
22 files changed
+90 -90

No files matched your search

+9 -9
View File
@@ -17,18 +17,18 @@
} }
#wifi-dialog-icon { #wifi-dialog-icon {
color: @primary; color: @glass-accent;
margin-right: 4px; margin-right: 4px;
} }
#wifi-dialog-title { #wifi-dialog-title {
color: @foreground; color: @glass-text;
font-size: apply(font-base); font-size: apply(font-base);
font-weight: 500; font-weight: 500;
} }
#wifi-dialog-error { #wifi-dialog-error {
color: @error; color: @glass-error;
font-size: apply(font-sm); font-size: apply(font-sm);
font-weight: 500; font-weight: 500;
/* margin-bottom: 8px; */ /* margin-bottom: 8px; */
@@ -39,7 +39,7 @@
} }
#wifi-dialog-password-label { #wifi-dialog-password-label {
color: @foreground; color: @glass-text;
font-size: apply(font-md); font-size: apply(font-md);
font-weight: 500; font-weight: 500;
margin-bottom: 4px; margin-bottom: 4px;
@@ -50,7 +50,7 @@
border: 1px solid @glass-border; border: 1px solid @glass-border;
border-radius: apply(radius-xs); border-radius: apply(radius-xs);
padding: 8px 12px; padding: 8px 12px;
color: @foreground; color: @glass-text;
font-size: apply(font-md); font-size: apply(font-md);
} }
@@ -78,11 +78,11 @@
} }
#wifi-dialog-show-password-button image { #wifi-dialog-show-password-button image {
color: @foreground; color: @glass-text;
} }
#wifi-dialog-show-password-label { #wifi-dialog-show-password-label {
color: @foreground; color: @glass-text;
font-size: apply(font-sm); font-size: apply(font-sm);
} }
@@ -102,7 +102,7 @@
#wifi-dialog-cancel-button { #wifi-dialog-cancel-button {
background-color: @glass-hover; background-color: @glass-hover;
border: 1px solid @glass-border; border: 1px solid @glass-border;
color: @foreground; color: @glass-text;
} }
#wifi-dialog-cancel-button:hover { #wifi-dialog-cancel-button:hover {
@@ -112,7 +112,7 @@
#wifi-dialog-join-button { #wifi-dialog-join-button {
background-color: @glass-accent; background-color: @glass-accent;
border: 1px solid @glass-accent; border: 1px solid @glass-accent;
color: @foreground; color: @glass-text;
} }
#wifi-dialog-join-button:hover { #wifi-dialog-join-button:hover {
+8 -8
View File
@@ -14,7 +14,7 @@
#macos-player-title { #macos-player-title {
font-weight: 600; font-weight: 600;
font-size: apply(font-lg); font-size: apply(font-lg);
color: @foreground; color: @glass-text;
margin-bottom: 2px; margin-bottom: 2px;
} }
@@ -50,13 +50,13 @@
} }
#macos-seek-bar highlight { #macos-seek-bar highlight {
background: @foreground; background: @glass-text;
border-radius: apply(radius-2xs); border-radius: apply(radius-2xs);
border: none; border: none;
} }
#macos-seek-bar slider { #macos-seek-bar slider {
background: @foreground; background: @glass-text;
border: none; border: none;
border-radius: 20%; border-radius: 20%;
min-width: 1px; min-width: 1px;
@@ -93,7 +93,7 @@
opacity: 0.7; opacity: 0.7;
min-height: 28px; min-height: 28px;
padding: 5px; padding: 5px;
color: @foreground; color: @glass-text;
transition: all apply(transition-fast) ease; transition: all apply(transition-fast) ease;
} }
@@ -109,7 +109,7 @@
opacity: 0.7; opacity: 0.7;
min-height: 36px; min-height: 36px;
padding: 7px; padding: 7px;
color: @foreground; color: @glass-text;
transition: all apply(transition-fast) ease; transition: all apply(transition-fast) ease;
} }
@@ -135,7 +135,7 @@
} }
.macos-switcher-dot.active { .macos-switcher-dot.active {
background: @foreground; background: @glass-text;
box-shadow: 0 0 0 1px @glass-border; box-shadow: 0 0 0 1px @glass-border;
} }
@@ -155,13 +155,13 @@
} }
#expanded-seek-bar highlight { #expanded-seek-bar highlight {
background: @foreground; background: @glass-text;
border-radius: apply(radius-2xs); border-radius: apply(radius-2xs);
border: none; border: none;
} }
#expanded-seek-bar slider { #expanded-seek-bar slider {
background: @foreground; background: @glass-text;
border: none; border: none;
border-radius: 20%; border-radius: 20%;
min-width: 1px; min-width: 1px;
+2 -2
View File
@@ -38,11 +38,11 @@
#wifi-connections #device-icon.connected { #wifi-connections #device-icon.connected {
background-color: @glass-accent; background-color: @glass-accent;
color: @foreground; color: @glass-text;
} }
#wifi-network-name { #wifi-network-name {
color: @foreground; color: @glass-text;
font-size: apply(font-base); font-size: apply(font-base);
font-weight: 500; font-weight: 500;
} }
+2 -2
View File
@@ -22,7 +22,7 @@
.app-name { .app-name {
font-size: apply(font-md); font-size: apply(font-md);
font-weight: 500; font-weight: 500;
color: @foreground; color: @glass-text;
margin-bottom: 5px; margin-bottom: 5px;
} }
@@ -73,5 +73,5 @@
padding-left: 5px; padding-left: 5px;
margin-top: -2px; margin-top: -2px;
font-weight: bold; font-weight: bold;
color: @foreground; color: @glass-text;
} }
+1 -1
View File
@@ -16,7 +16,7 @@
#player-stack-button.active { #player-stack-button.active {
border-radius: apply(radius-xs); border-radius: apply(radius-xs);
background-color: @foreground; background-color: @glass-text;
} }
#outer-player-box { #outer-player-box {
+2 -2
View File
@@ -7,7 +7,7 @@
} }
.icon { .icon {
background-color: @primary; background-color: @glass-accent;
font-size: 15px; font-size: 15px;
padding: 20px 20px; padding: 20px 20px;
} }
@@ -44,7 +44,7 @@
} }
#toggle-button slider { #toggle-button slider {
background-color: @foreground; background-color: @glass-text;
border-radius: apply(radius-full); border-radius: apply(radius-full);
min-width: 16px; min-width: 16px;
min-height: 16px; min-height: 16px;
+2 -2
View File
@@ -8,7 +8,7 @@
} }
#notification-group-title { #notification-group-title {
color: @foreground; color: @glass-text;
font-weight: bold; font-weight: bold;
font-size: apply(font-base); font-size: apply(font-base);
} }
@@ -40,7 +40,7 @@
#notification-close-all:hover { #notification-close-all:hover {
background-color: @glass-error; background-color: @glass-error;
color: @foreground; color: @glass-text;
border-color: @glass-error; border-color: @glass-error;
} }
@@ -34,11 +34,11 @@
} }
#notification-action-buttons button:active { #notification-action-buttons button:active {
background-color: var(--primary); background-color: @glass-accent;
} }
#notification-action-buttons button:active #button-label { #notification-action-buttons button:active #button-label {
color: var(--shadow); color: @glass-overlay-dark;
} }
.mac-options-button { .mac-options-button {
@@ -77,8 +77,8 @@ menu.mac-context-menu {
} }
.mac-context-menu menuitem:hover { .mac-context-menu menuitem:hover {
background-color: var(--primary); background-color: @glass-accent;
color: var(--shadow); color: @glass-overlay-dark;
} }
.mac-header-pill { .mac-header-pill {
@@ -20,5 +20,5 @@
} }
#notif-close-button:active #notif-close-label { #notif-close-button:active #notif-close-label {
color: var(--shadow); color: @glass-overlay-dark;
} }
@@ -18,7 +18,7 @@
} }
#notification-app-name { #notification-app-name {
color: var(--outline); color: @glass-border;
font-weight: bold; font-weight: bold;
} }
+1 -1
View File
@@ -31,5 +31,5 @@
font-size: apply(font-sm); font-size: apply(font-sm);
margin: 0px; margin: 0px;
font-weight: 400; font-weight: 400;
color: @foreground; color: @glass-text;
} }
+14 -14
View File
@@ -45,15 +45,15 @@
/* Weather Condition Gradients */ /* Weather Condition Gradients */
.weather-clear { .weather-clear {
background: linear-gradient(135deg, @primary 0%, @cyan 100%); background: linear-gradient(135deg, @glass-accent 0%, @cyan 100%);
} }
.weather-mostly-clear { .weather-mostly-clear {
background: linear-gradient(135deg, @primary 0%, @primary 100%); background: linear-gradient(135deg, @glass-accent 0%, @glass-accent 100%);
} }
.weather-partly-cloudy { .weather-partly-cloudy {
background: linear-gradient(135deg, @outline 0%, #bac8e0 100%); background: linear-gradient(135deg, @glass-border 0%, #bac8e0 100%);
} }
.weather-overcast { .weather-overcast {
@@ -61,7 +61,7 @@
} }
.weather-fog { .weather-fog {
background: linear-gradient(135deg, @outline 0%, @foreground 100%); background: linear-gradient(135deg, @glass-border 0%, @glass-text 100%);
} }
.weather-light-rain { .weather-light-rain {
@@ -78,11 +78,11 @@
.weather-snow, .weather-snow,
.weather-heavy-snow { .weather-heavy-snow {
background: linear-gradient(135deg, @secondary 0%, @cyan 100%); background: linear-gradient(135deg, @glass-success 0%, @cyan 100%);
} }
.weather-storm { .weather-storm {
background: linear-gradient(135deg, @background 0%, @surface-bright 50%, @outline 100%); background: linear-gradient(135deg, @background 0%, @surface-bright 50%, @glass-border 100%);
} }
/* Calendar Widget */ /* Calendar Widget */
@@ -102,7 +102,7 @@
#calendar-month { #calendar-month {
font-size: apply(font-lg); font-size: apply(font-lg);
font-weight: 600; font-weight: 600;
color: @primary; color: @glass-accent;
margin-bottom: 6px; margin-bottom: 6px;
} }
@@ -113,7 +113,7 @@
#calendar-day-header { #calendar-day-header {
font-size: apply(font-sm); font-size: apply(font-sm);
font-weight: 600; font-weight: 600;
color: @foreground; color: @glass-text;
min-width: 18px; min-width: 18px;
min-height: 10px; min-height: 10px;
} }
@@ -130,7 +130,7 @@
font-size: apply(font-sm); font-size: apply(font-sm);
margin: 1.4px 0px 1.4px 0px; margin: 1.4px 0px 1.4px 0px;
font-weight: 500; font-weight: 500;
color: @foreground; color: @glass-text;
min-width: 18px; min-width: 18px;
min-height: 10px; min-height: 10px;
} }
@@ -147,7 +147,7 @@
font-size: apply(font-sm); font-size: apply(font-sm);
font-weight: 700; font-weight: 700;
color: @on-primary; color: @on-primary;
background-color: @primary; background-color: @glass-accent;
border-radius: apply(radius-full); border-radius: apply(radius-full);
min-width: 18px; min-width: 18px;
min-height: 16px; min-height: 16px;
@@ -170,7 +170,7 @@
#day label, #day label,
#month label { #month label {
color: var(--foreground); color: @glass-text;
padding: 5px; padding: 5px;
margin-top: 10px; margin-top: 10px;
font-size: 30px; font-size: 30px;
@@ -187,7 +187,7 @@
} }
#day label { #day label {
color: alpha(@primary, 0.9); color: alpha(@glass-accent, 0.9);
} }
#date-container { #date-container {
@@ -216,7 +216,7 @@
#progress { #progress {
background-color: transparent; background-color: transparent;
border: solid 8px @primary; border: solid 8px @glass-accent;
} }
@@ -231,7 +231,7 @@
#info-value { #info-value {
font-size: apply(font-sm); font-size: apply(font-sm);
font-weight: 600; font-weight: 600;
color: @foreground; color: @glass-text;
} }
#info-container { #info-container {
+1 -1
View File
@@ -33,7 +33,7 @@
#dropdown-option-label { #dropdown-option-label {
font-size: apply(font-md); font-size: apply(font-md);
margin: 0px; margin: 0px;
color: @foreground; color: @glass-text;
font-weight: 400; font-weight: 400;
} }
+9 -9
View File
@@ -15,7 +15,7 @@
#pomodoro-time { #pomodoro-time {
font-size: 38px; font-size: 38px;
font-weight: 800; font-weight: 800;
color: @foreground; color: @glass-text;
font-family: "SF Pro Rounded"; font-family: "SF Pro Rounded";
} }
@@ -29,15 +29,15 @@
#pomodoro-title { #pomodoro-title {
font-size: 14px; font-size: 14px;
font-weight: 700; font-weight: 700;
color: @foreground; color: @glass-text;
font-family: "SF Pro Rounded"; font-family: "SF Pro Rounded";
} }
/* Base progress bar color */ /* Base progress bar color */
#pomodoro-progress { #pomodoro-progress {
background-color: transparent; background-color: transparent;
color: alpha(@primary, 0.3); color: alpha(@glass-accent, 0.3);
border-color: @primary; border-color: @glass-accent;
} }
/* Short break color */ /* Short break color */
@@ -50,8 +50,8 @@
/* Long break color */ /* Long break color */
#pomodoro-progress-long { #pomodoro-progress-long {
background-color: transparent; background-color: transparent;
color: alpha(@error, 0.3); color: alpha(@glass-error, 0.3);
border-color: @error; border-color: @glass-error;
} }
#pomodoro-phase-btn { #pomodoro-phase-btn {
@@ -69,12 +69,12 @@
} }
#pomodoro-phase-btn.active { #pomodoro-phase-btn.active {
background-color: @primary; background-color: @glass-accent;
color: white; color: white;
} }
#pomodoro-start-btn { #pomodoro-start-btn {
background-color: @primary; background-color: @glass-accent;
color: white; color: white;
border-radius: apply(radius-sm); border-radius: apply(radius-sm);
padding: 6px 20px; padding: 6px 20px;
@@ -83,7 +83,7 @@
} }
#pomodoro-start-btn:hover { #pomodoro-start-btn:hover {
background-color: alpha(@primary, 0.8); background-color: alpha(@glass-accent, 0.8);
} }
#pomodoro-reset-btn, #pomodoro-secondary-btn { #pomodoro-reset-btn, #pomodoro-secondary-btn {
+13 -13
View File
@@ -21,7 +21,7 @@
#todo-title { #todo-title {
font-size: 16px; font-size: 16px;
font-weight: 700; font-weight: 700;
color: @foreground; color: @glass-text;
font-family: "SF Pro Rounded"; font-family: "SF Pro Rounded";
} }
@@ -41,7 +41,7 @@
#new-todo-entry { #new-todo-entry {
background: transparent; background: transparent;
border: none; border: none;
color: @foreground; color: @glass-text;
font-size: 13px; font-size: 13px;
font-family: "SF Pro Rounded"; font-family: "SF Pro Rounded";
min-height: 24px; min-height: 24px;
@@ -88,8 +88,8 @@
/* === Progress Ring === */ /* === Progress Ring === */
#todo-progress-ring { #todo-progress-ring {
background-color: transparent; background-color: transparent;
color: alpha(@foreground, 0.15); color: alpha(@glass-text, 0.15);
border-color: @foreground; border-color: @glass-text;
} }
/* === Checkbox === */ /* === Checkbox === */
@@ -111,7 +111,7 @@
#todo-text { #todo-text {
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: @foreground; color: @glass-text;
font-family: "SF Pro Rounded"; font-family: "SF Pro Rounded";
} }
@@ -134,7 +134,7 @@
} }
#todo-options-btn:hover { #todo-options-btn:hover {
color: @foreground; color: @glass-text;
background-color: @glass-hover; background-color: @glass-hover;
border-radius: apply(radius-sm); border-radius: apply(radius-sm);
} }
@@ -149,7 +149,7 @@
} }
#clear-completed-button:hover { #clear-completed-button:hover {
color: @foreground; color: @glass-text;
} }
#todo-footer { #todo-footer {
@@ -176,7 +176,7 @@
#todo-opt-title { #todo-opt-title {
font-size: 14px; font-size: 14px;
font-weight: 700; font-weight: 700;
color: @foreground; color: @glass-text;
font-family: "SF Pro Rounded"; font-family: "SF Pro Rounded";
} }
@@ -202,8 +202,8 @@
} }
#todo-color-swatch.selected { #todo-color-swatch.selected {
border-color: @foreground; border-color: @glass-text;
box-shadow: 0 0 0 2px alpha(@foreground, 0.2); box-shadow: 0 0 0 2px alpha(@glass-text, 0.2);
} }
/* === Deadline Pill === */ /* === Deadline Pill === */
@@ -215,7 +215,7 @@
#todo-deadline-value { #todo-deadline-value {
font-size: 12px; font-size: 12px;
color: @foreground; color: @glass-text;
font-family: "SF Pro Rounded"; font-family: "SF Pro Rounded";
min-width: 70px; min-width: 70px;
} }
@@ -244,7 +244,7 @@
#todo-spin-value { #todo-spin-value {
font-size: 12px; font-size: 12px;
color: @foreground; color: @glass-text;
font-family: "SF Pro Rounded"; font-family: "SF Pro Rounded";
} }
@@ -254,7 +254,7 @@
border-radius: apply(radius-full); border-radius: apply(radius-full);
padding: 6px 12px; padding: 6px 12px;
font-size: 11px; font-size: 11px;
color: @foreground; color: @glass-text;
font-family: "SF Pro Rounded"; font-family: "SF Pro Rounded";
} }
+1 -1
View File
@@ -89,7 +89,7 @@
} }
.battery-settings-button label { .battery-settings-button label {
font-weight: 500; font-weight: 500;
color: @foreground; color: @glass-text;
} }
#energy-mode-button:first-child { #energy-mode-button:first-child {
margin-top: 0; margin-top: 0;
+2 -2
View File
@@ -7,14 +7,14 @@
} }
#lock-notch-stack { #lock-notch-stack {
background-color: @shadow; background-color: @glass-overlay-dark;
border-radius: 0 0 apply(radius-lg) apply(radius-lg); border-radius: 0 0 apply(radius-lg) apply(radius-lg);
min-width: 200px; min-width: 200px;
min-height: 34px; min-height: 34px;
} }
#lock-notch-corner { #lock-notch-corner {
background-color: @shadow; background-color: @glass-overlay-dark;
border-radius: 0; border-radius: 0;
min-width: 20px; min-width: 20px;
min-height: 20px; min-height: 20px;
+4 -4
View File
@@ -48,7 +48,7 @@
padding: 0 16px; padding: 0 16px;
border-radius: apply(radius-sm); border-radius: apply(radius-sm);
min-width: 12px; min-width: 12px;
border: 1px solid @outline; border: 1px solid @glass-border;
} }
#workspaces>button.active { #workspaces>button.active {
@@ -56,7 +56,7 @@
} }
#workspaces>button.active label { #workspaces>button.active label {
color: @foreground; color: @glass-text;
} }
#workspaces>button.active:hover { #workspaces>button.active:hover {
@@ -92,7 +92,7 @@
} }
#panel-notch-stack { #panel-notch-stack {
background-color: @shadow; background-color: @glass-overlay-dark;
border-radius: 0 0 apply(radius-lg) apply(radius-lg); border-radius: 0 0 apply(radius-lg) apply(radius-lg);
min-width: 200px; min-width: 200px;
min-height: 34px; min-height: 34px;
@@ -100,7 +100,7 @@
#panel-notch-corner { #panel-notch-corner {
background-color: @shadow; background-color: @glass-overlay-dark;
border-radius: 0; border-radius: 0;
min-width: 20px; min-width: 20px;
min-height: 20px; min-height: 20px;
+1 -1
View File
@@ -72,7 +72,7 @@
#sc-options-label { #sc-options-label {
font-size: apply(font-sm); font-size: apply(font-sm);
font-weight: 500; font-weight: 500;
color: @foreground; color: @glass-text;
} }
#sc-options-arrow { #sc-options-arrow {
+3 -3
View File
@@ -54,7 +54,7 @@
font-size: 24px; font-size: 24px;
font-weight: 700; font-weight: 700;
margin-bottom: 20px; margin-bottom: 20px;
color: @foreground; color: @glass-text;
} }
#settings-row { #settings-row {
@@ -98,7 +98,7 @@
border-radius: apply(radius-xs); border-radius: apply(radius-xs);
border: 1px solid @glass-border; border: 1px solid @glass-border;
min-width: 200px; min-width: 200px;
color: @foreground; color: @glass-text;
} }
#settings-entry:focus { #settings-entry:focus {
@@ -111,7 +111,7 @@
border-radius: apply(radius-xs); border-radius: apply(radius-xs);
border: 1px solid @glass-border; border: 1px solid @glass-border;
min-width: 150px; min-width: 150px;
color: @foreground; color: @glass-text;
} }
#settings-combo:hover { #settings-combo:hover {
+8 -8
View File
@@ -11,7 +11,7 @@
} }
.app-search-entry { .app-search-entry {
color: @foreground; color: @glass-text;
} }
.app-search-header { .app-search-header {
@@ -43,7 +43,7 @@
} }
.app-title { .app-title {
color: @foreground; color: @glass-text;
font-size: apply(font-base); font-size: apply(font-base);
font-weight: 600; font-weight: 600;
} }
@@ -59,13 +59,13 @@
} }
.calc-result-text { .calc-result-text {
color: @foreground; color: @glass-text;
font-size: apply(font-lg); font-size: apply(font-lg);
font-weight: bold; font-weight: bold;
} }
.power-menu-name { .power-menu-name {
color: @foreground; color: @glass-text;
font-size: apply(font-lg); font-size: apply(font-lg);
font-weight: 600; font-weight: 600;
} }
@@ -96,7 +96,7 @@
} }
.emoji-name { .emoji-name {
color: var(--foreground); color: @glass-text;
font-size: 14px; font-size: 14px;
font-weight: normal; font-weight: normal;
} }
@@ -106,7 +106,7 @@
} }
.emoji-no-results-text { .emoji-no-results-text {
color: darker(var(--foreground)); color: @glass-text-secondary;
font-size: 14px; font-size: 14px;
font-style: italic; font-style: italic;
} }
@@ -116,7 +116,7 @@
} }
.clipboard-no-results-text { .clipboard-no-results-text {
color: darker(var(--foreground)); color: @glass-text-secondary;
font-size: 14px; font-size: 14px;
font-style: italic; font-style: italic;
} }
@@ -142,7 +142,7 @@
} }
.clipboard-content { .clipboard-content {
color: var(--foreground); color: @glass-text;
font-size: 14px; font-size: 14px;
font-weight: normal; font-weight: normal;
margin-left: 1rem; margin-left: 1rem;
+1 -1
View File
@@ -30,7 +30,7 @@
} }
#app-switcher-item-label { #app-switcher-item-label {
color: @foreground; color: @glass-text;
font-size: 15px; font-size: 15px;
font-weight: 600; font-weight: 600;
margin-top: -2px; margin-top: -2px;