refactor(styles/widgets): update CSS color variables to use glass theming

This commit is contained in:
sankalp committed 2026-07-14 21:43:22 +05:45
1 parent ef7b200c74
commit 9f192cdc56
7 files changed
+72 -75

No files matched your search

+6 -9
View File
@@ -1,33 +1,30 @@
#about-menu { #about-menu {
background-color: @bg-a50; background-color: @glass-card;
box-shadow: border: 1px solid @glass-border;
inset 0 -0.5px 0 0.5px alpha(@bg-a90, 0.7),
inset 0 0.5px 0 0.5px @outline-a70;
border: 1px solid @outline-a30;
border-top: none; border-top: none;
border-radius: 1.25rem; border-radius: 1.25rem;
padding: 2rem; padding: 2rem;
} }
#vendor-label { #vendor-label {
color: @fg-a40; color: @glass-text-secondary;
margin-top: -1rem; margin-top: -1rem;
} }
#info-label { #info-label {
color: @fg-a60; color: @glass-text-secondary;
} }
#more-info-button { #more-info-button {
background-color: @fg-a40; background-color: @glass-hover;
border-radius: apply(radius-xs); border-radius: apply(radius-xs);
padding: 0px 10px; padding: 0px 10px;
margin: 1px 2px; margin: 1px 2px;
transition: all apply(transition-medium) ease-in-out; transition: all apply(transition-medium) ease-in-out;
} }
#more-info-button:hover { #more-info-button:hover {
background-color: @primary; background-color: @glass-accent;
} }
#more-info-button label { #more-info-button label {
+19 -15
View File
@@ -4,7 +4,8 @@
min-height: 170px; min-height: 170px;
border-radius: apply(radius-lg); border-radius: apply(radius-lg);
transition: all apply(transition-slow); transition: all apply(transition-slow);
background: @surface; background: @glass-widget;
border: 1px solid @glass-border-soft;
} }
/* Base Weather Layout */ /* Base Weather Layout */
@@ -13,7 +14,7 @@
} }
#city { #city {
color: @fg-a85; color: @glass-text;
font-weight: 600; font-weight: 600;
font-size: 18px; font-size: 18px;
} }
@@ -39,7 +40,7 @@
#feels-like { #feels-like {
font-weight: 500; font-weight: 500;
font-size: 15px; font-size: 15px;
color: @fg-a80; color: @glass-text;
} }
/* Weather Condition Gradients */ /* Weather Condition Gradients */
@@ -56,7 +57,7 @@
} }
.weather-overcast { .weather-overcast {
background: linear-gradient(135deg, @bg-a80 0%, @bg-a80 100%); background: linear-gradient(135deg, @glass-surface-4 0%, @glass-surface-4 100%);
} }
.weather-fog { .weather-fog {
@@ -64,15 +65,15 @@
} }
.weather-light-rain { .weather-light-rain {
background: linear-gradient(135deg, @on-primary 0%, @bg-a90 100%); background: linear-gradient(135deg, @on-primary 0%, @glass-dialog 100%);
} }
.weather-rain { .weather-rain {
background: linear-gradient(135deg, @bg-a70 0%, @on-tertiary 100%); background: linear-gradient(135deg, @glass-surface-3 0%, @on-tertiary 100%);
} }
.weather-heavy-rain { .weather-heavy-rain {
background: linear-gradient(135deg, @surface 0%, @bg-a90 100%); background: linear-gradient(135deg, @surface 0%, @glass-dialog 100%);
} }
.weather-snow, .weather-snow,
@@ -86,11 +87,12 @@
/* Calendar Widget */ /* Calendar Widget */
#calendar-box-widget { #calendar-box-widget {
background: linear-gradient(to bottom, @surface, @background); background: @glass-widget;
margin: 5px 20px 20px 10px; margin: 5px 20px 20px 10px;
min-width: 170px; min-width: 170px;
min-height: 170px; min-height: 170px;
border-radius: apply(radius-lg); border-radius: apply(radius-lg);
border: 1px solid @glass-border-soft;
} }
#calendar-widget { #calendar-widget {
@@ -119,7 +121,7 @@
#calendar-day-header-weekend { #calendar-day-header-weekend {
font-size: apply(font-sm); font-size: apply(font-sm);
font-weight: 600; font-weight: 600;
color: @fg-a50; color: @glass-text-secondary;
min-width: 18px; min-width: 18px;
min-height: 10px; min-height: 10px;
} }
@@ -136,7 +138,7 @@
#calendar-day-weekend { #calendar-day-weekend {
font-size: apply(font-sm); font-size: apply(font-sm);
font-weight: 500; font-weight: 500;
color: @fg-a50; color: @glass-text-secondary;
min-width: 18px; min-width: 18px;
min-height: 16px; min-height: 16px;
} }
@@ -172,12 +174,12 @@
padding: 5px; padding: 5px;
margin-top: 10px; margin-top: 10px;
font-size: 30px; font-size: 30px;
color: @fg-a90; color: @glass-text;
font-weight: 600; font-weight: 600;
} }
#date label { #date label {
color: @fg-a90; color: @glass-text;
margin-top: -10px; margin-top: -10px;
font-size: 90px; font-size: 90px;
@@ -189,20 +191,22 @@
} }
#date-container { #date-container {
background: linear-gradient(to bottom, @surface, @background); background: @glass-widget;
margin: 5px 10px 20px 5px; margin: 5px 10px 20px 5px;
min-width: 170px; min-width: 170px;
min-height: 170px; min-height: 170px;
border-radius: apply(radius-lg); border-radius: apply(radius-lg);
border: 1px solid @glass-border-soft;
} }
/* System Info Widget CSS */ /* System Info Widget CSS */
#info-box-widget { #info-box-widget {
background: linear-gradient(to bottom, @surface, @background); background: @glass-widget;
margin: 5px 5px 5px 5px; margin: 5px 5px 5px 5px;
min-width: 170px; min-width: 170px;
min-height: 170px; min-height: 170px;
border-radius: apply(radius-lg); border-radius: apply(radius-lg);
border: 1px solid @glass-border-soft;
} }
#progress-label { #progress-label {
@@ -220,7 +224,7 @@
#info-text { #info-text {
font-size: apply(font-md); font-size: apply(font-md);
font-weight: 500; font-weight: 500;
color: @fg-a60; color: @glass-text-secondary;
min-width: 32px; min-width: 32px;
} }
+5 -6
View File
@@ -6,9 +6,8 @@
} }
#dropdown-options { #dropdown-options {
background-color: @bg-a50; background-color: @glass-menu;
box-shadow: inset 0 0 0 1px alpha(@fg-a40, 0.4); border: 1px solid @glass-border;
border: 1px solid @outline-a40;
border-radius: 0.75rem; border-radius: 0.75rem;
padding: 0.5rem; padding: 0.5rem;
} }
@@ -24,7 +23,7 @@
#dropdown-option:hover { #dropdown-option:hover {
color: @on-primary; color: @on-primary;
transition: all 20ms ease-in-out; transition: all 20ms ease-in-out;
background-color: @primary; background-color: @glass-accent;
} }
#dropdown-option:hover #dropdown-option-label { #dropdown-option:hover #dropdown-option-label {
@@ -48,7 +47,7 @@
#dropdown-option-keybind { #dropdown-option-keybind {
font-weight: 500; font-weight: 500;
color: @fg-a80; color: @glass-text-secondary;
} }
/* Divider */ /* Divider */
@@ -60,6 +59,6 @@
margin: 2px; margin: 2px;
} }
#dropdown-divider { #dropdown-divider {
border-bottom: 1px solid alpha(@fg-a80, 0.3); border-bottom: 1px solid @glass-divider;
margin: 2px 0; margin: 2px 0;
} }
+3 -3
View File
@@ -12,14 +12,14 @@
.flat-scale trough { .flat-scale trough {
background-color: alpha(@bg-a80, 0.5); background-color: @glass-surface-1;
min-height: 25px; min-height: 25px;
border-radius: apply(radius-full); border-radius: apply(radius-full);
border: 1px solid alpha(@bg-a75, 0.3); border: 1px solid @glass-border-soft;
} }
.flat-scale highlight { .flat-scale highlight {
background-color: @fg-a80; background-color: @glass-text-secondary;
min-height: 25px; min-height: 25px;
border-radius: apply(radius-full); border-radius: apply(radius-full);
} }
+9 -10
View File
@@ -1,11 +1,10 @@
#pomodoro-popup { #pomodoro-popup {
background-color: @bg-a50; background-color: @glass-card;
border-radius: apply(radius-md); border-radius: apply(radius-md);
box-shadow: inset 0 0 0 1px alpha(@text-dim, 0.4);
padding: 15px; padding: 15px;
margin-right: 20px; margin-right: 20px;
border: 1px solid @border-strong; border: 1px solid @glass-border;
} }
#pomodoro-container { #pomodoro-container {
@@ -23,7 +22,7 @@
#pomodoro-cycle { #pomodoro-cycle {
font-size: 13px; font-size: 13px;
font-weight: 500; font-weight: 500;
color: @fg-a60; color: @glass-text-secondary;
font-family: "SF Pro Rounded"; font-family: "SF Pro Rounded";
} }
@@ -56,7 +55,7 @@
} }
#pomodoro-phase-btn { #pomodoro-phase-btn {
background-color: @fg-a18; background-color: @glass-highlight-strong;
color: alpha(@theme_fg_color, 0.7); color: alpha(@theme_fg_color, 0.7);
border-radius: apply(radius-sm); border-radius: apply(radius-sm);
padding: 5px 14px; padding: 5px 14px;
@@ -65,7 +64,7 @@
} }
#pomodoro-phase-btn:hover { #pomodoro-phase-btn:hover {
background-color: @fg-a25; background-color: @glass-active;
color: @theme_fg_color; color: @theme_fg_color;
} }
@@ -88,7 +87,7 @@
} }
#pomodoro-reset-btn, #pomodoro-secondary-btn { #pomodoro-reset-btn, #pomodoro-secondary-btn {
background-color: @fg-a18; background-color: @glass-highlight-strong;
color: @theme_fg_color; color: @theme_fg_color;
border-radius: apply(radius-sm); border-radius: apply(radius-sm);
padding: 6px 15px; padding: 6px 15px;
@@ -97,11 +96,11 @@
} }
#pomodoro-reset-btn:hover, #pomodoro-secondary-btn:hover { #pomodoro-reset-btn:hover, #pomodoro-secondary-btn:hover {
background-color: @fg-a25; background-color: @glass-active;
} }
#pomodoro-spin-box { #pomodoro-spin-box {
background-color: @fg-a18; background-color: @glass-highlight-strong;
border-radius: apply(radius-sm); border-radius: apply(radius-sm);
padding: 2px; padding: 2px;
} }
@@ -118,5 +117,5 @@
} }
#pomodoro-spin-btn:hover { #pomodoro-spin-btn:hover {
background-color: @fg-a25; background-color: @glass-active;
} }
+24 -26
View File
@@ -1,12 +1,11 @@
/* === Main Todo List === */ /* === Main Todo List === */
#todo-list-menu { #todo-list-menu {
background-color: @bg-a50; background-color: @glass-card;
border-radius: apply(radius-md); border-radius: apply(radius-md);
box-shadow: inset 0 0 0 1px alpha(@text-dim, 0.4);
padding: 15px; padding: 15px;
margin-right: 20px; margin-right: 20px;
border: 1px solid @border-strong; border: 1px solid @glass-border;
} }
#todo-main-container { #todo-main-container {
@@ -28,13 +27,13 @@
#todo-stats { #todo-stats {
font-size: 12px; font-size: 12px;
color: @fg-a60; color: @glass-text-secondary;
font-family: "SF Pro Rounded"; font-family: "SF Pro Rounded";
} }
/* === Add Task Section === */ /* === Add Task Section === */
#todo-add-section { #todo-add-section {
background-color: @fg-a18; background-color: @glass-hover;
border-radius: apply(radius-sm); border-radius: apply(radius-sm);
padding: 8px 10px; padding: 8px 10px;
} }
@@ -49,11 +48,11 @@
} }
#new-todo-entry placeholder { #new-todo-entry placeholder {
color: @fg-a40; color: @glass-text-disabled;
} }
#add-todo-button { #add-todo-button {
background-color: @primary; background-color: @glass-accent;
border-radius: apply(radius-full); border-radius: apply(radius-full);
padding: 6px; padding: 6px;
min-width: 24px; min-width: 24px;
@@ -61,7 +60,7 @@
} }
#add-todo-button:hover { #add-todo-button:hover {
background-color: alpha(@primary, 0.8); background-color: alpha(@glass-accent, 0.8);
} }
/* === Todo Items === */ /* === Todo Items === */
@@ -77,12 +76,12 @@
} }
#todo-item:hover { #todo-item:hover {
background-color: alpha(@fg-a10, 0.3); background-color: @glass-hover;
} }
#todo-divider { #todo-divider {
min-height: 1px; min-height: 1px;
background-color: alpha(@fg-a20, 0.5); background-color: @glass-highlight-soft;
margin: 0 4px; margin: 0 4px;
} }
@@ -104,7 +103,7 @@
} }
#todo-checkbox:hover { #todo-checkbox:hover {
background-color: alpha(@fg-a18, 0.5); background-color: @glass-hover;
border-radius: apply(radius-sm); border-radius: apply(radius-sm);
} }
@@ -125,7 +124,7 @@
min-width: 24px; min-width: 24px;
min-height: 24px; min-height: 24px;
font-size: 16px; font-size: 16px;
color: @fg-a40; color: @glass-text-secondary;
opacity: 0; opacity: 0;
transition: opacity 0.2s ease; transition: opacity 0.2s ease;
} }
@@ -136,7 +135,7 @@
#todo-options-btn:hover { #todo-options-btn:hover {
color: @foreground; color: @foreground;
background-color: alpha(@fg-a18, 0.5); background-color: @glass-hover;
border-radius: apply(radius-sm); border-radius: apply(radius-sm);
} }
@@ -145,7 +144,7 @@
background: transparent; background: transparent;
border: none; border: none;
font-size: 12px; font-size: 12px;
color: @fg-a40; color: @glass-text-disabled;
padding: 4px; padding: 4px;
} }
@@ -155,19 +154,18 @@
#todo-footer { #todo-footer {
font-size: 11px; font-size: 11px;
color: @fg-a40; color: @glass-text-secondary;
font-family: "SF Pro Rounded"; font-family: "SF Pro Rounded";
margin-top: 4px; margin-top: 4px;
} }
/* === Options Popover === */ /* === Options Popover === */
#todo-options-popover { #todo-options-popover {
background-color: @bg-a50; background-color: @glass-card;
border-radius: apply(radius-md); border-radius: apply(radius-md);
box-shadow: inset 0 0 0 1px alpha(@text-dim, 0.4);
padding: 10px; padding: 10px;
margin-right: 20px; margin-right: 20px;
border: 1px solid @border-strong; border: 1px solid @glass-border;
min-width: 340px; min-width: 340px;
} }
@@ -184,13 +182,13 @@
#todo-opt-subtitle { #todo-opt-subtitle {
font-size: 11px; font-size: 11px;
color: @fg-a60; color: @glass-text-secondary;
font-family: "SF Pro Rounded"; font-family: "SF Pro Rounded";
} }
/* === Color Swatches === */ /* === Color Swatches === */
#todo-color-swatch { #todo-color-swatch {
background-color: @fg-a18; background-color: @glass-hover;
border-radius: apply(radius-full); border-radius: apply(radius-full);
padding: 0; padding: 0;
min-width: 28px; min-width: 28px;
@@ -200,7 +198,7 @@
} }
#todo-color-swatch:hover { #todo-color-swatch:hover {
border-color: alpha(@foreground, 0.3); border-color: @glass-border;
} }
#todo-color-swatch.selected { #todo-color-swatch.selected {
@@ -210,7 +208,7 @@
/* === Deadline Pill === */ /* === Deadline Pill === */
#todo-deadline-pill { #todo-deadline-pill {
background-color: @fg-a18; background-color: @glass-hover;
border-radius: apply(radius-full); border-radius: apply(radius-full);
padding: 6px 12px; padding: 6px 12px;
} }
@@ -224,7 +222,7 @@
/* === Stepper (reuse pomodoro style) === */ /* === Stepper (reuse pomodoro style) === */
#todo-spin-box { #todo-spin-box {
background-color: @fg-a10; background-color: @glass-hover;
border-radius: apply(radius-sm); border-radius: apply(radius-sm);
padding: 2px; padding: 2px;
} }
@@ -241,7 +239,7 @@
} }
#todo-spin-btn:hover { #todo-spin-btn:hover {
background-color: @fg-a25; background-color: @glass-active;
} }
#todo-spin-value { #todo-spin-value {
@@ -252,7 +250,7 @@
/* === Preset Buttons === */ /* === Preset Buttons === */
#todo-preset-btn { #todo-preset-btn {
background-color: @fg-a18; background-color: @glass-hover;
border-radius: apply(radius-full); border-radius: apply(radius-full);
padding: 6px 12px; padding: 6px 12px;
font-size: 11px; font-size: 11px;
@@ -261,5 +259,5 @@
} }
#todo-preset-btn:hover { #todo-preset-btn:hover {
background-color: @fg-a25; background-color: @glass-active;
} }
+6 -6
View File
@@ -1,7 +1,7 @@
tooltip { tooltip {
border: @bg-a90 solid 1px; border: 1px solid @glass-border;
border-radius: 0.75rem; border-radius: 0.75rem;
background-color: @bg-a50; background-color: @glass-tooltip;
} }
@keyframes tooltipShow { @keyframes tooltipShow {
@@ -20,17 +20,17 @@ tooltip > * {
} }
menu { menu {
border: @bg-a90 solid 1px; border: 1px solid @glass-border;
border-radius: 0.75rem; border-radius: 0.75rem;
transition: all apply(transition-xfast) ease-in-out; transition: all apply(transition-xfast) ease-in-out;
background-color: @bg-a50; background-color: @glass-menu;
} }
menu > menuitem { menu > menuitem {
padding: 5px 10px; padding: 5px 10px;
margin: 1px 2px; margin: 1px 2px;
font-size: apply(font-md); font-size: apply(font-md);
border-bottom: @bg-a90 solid 1px; border-bottom: 1px solid @glass-divider;
} }
menu > menuitem:last-child { menu > menuitem:last-child {
@@ -41,7 +41,7 @@ menu > menuitem:hover {
font-size: apply(font-md); font-size: apply(font-md);
border-radius: apply(radius-xs); border-radius: apply(radius-xs);
color: @on-primary; color: @on-primary;
background-color: @primary; background-color: @glass-accent;
} }
menu > menuitem:hover > label { menu > menuitem:hover > label {