dotfiles/.config/waybar/style/ML4W-Glass.css
2026-05-13 20:55:52 +02:00

316 lines
7.1 KiB
CSS

/* ML4W GLASS THEME - CRYSTAL CLEAR */
/* SPDX-FileCopyrightText: 2026-present Ahum Maitra theahummaitra@gmail.com
SPDX-License-Identifier: GPL-3.0-or-later */
/*
-----------------------------------------------------
General
-----------------------------------------------------
*/
* {
background-color: transparent;
font-family: "JetBrainsMono Nerd Font";
border: none;
font-weight: bolder;
border-radius: 0px;
/* Extra tweaks */
min-height: 0;
/* set font-size to 100% if font scaling is set to 1.00 using nwg-look */
/* NOTE: Waybar v14+ ignores % font-size values */
font-size: 99%;
font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
margin-top: 3px;
padding-bottom: 2px;
}
@import "style/ML4W/glass.css";
/* Neutral glass overrides: avoid red/magenta palettes from wallust */
@define-color surface @background-alt; /* main glass body */
@define-color surface_dim @background; /* inner shadow base */
@define-color primary @foreground; /* accents/lines */
@define-color on_primary @background; /* accent contrast */
@define-color on_primary_fixed @background;
@define-color on_primary_fixed_variant @foreground;
@define-color on_tertiary_fixed @background; /* module pill bg */
@define-color on_tertiary_fixed_variant @foreground; /* module pill fg */
@define-color on_surface #e6edf7; /* brighten text/icons */
window#waybar {
background: transparent;
/* Waybar scaling: adjust font-size to scale the bar */
font-size: 14px;
}
.modules-left {
background-color: @surface;
border-radius: 12px;
background:
radial-gradient(
circle at 50% 250%,
alpha(darker(@surface), 0.9),
alpha(@surface_dim, 0.9)
)
padding-box,
linear-gradient(@primary, @on_primary) border-box;
border: 1px solid transparent;
opacity: 0.8;
padding-right: 15px;
margin: 10px;
box-shadow: inset 1px 2px 2px rgba(255, 255, 255, 0.2);
}
.modules-right {
background-color: @surface;
border-radius: 12px;
background:
radial-gradient(
circle at 50% 250%,
alpha(darker(@surface), 0.9),
alpha(@surface_dim, 0.9)
)
padding-box,
linear-gradient(@primary, @on_primary) border-box;
border: 1px solid transparent;
opacity: 0.8;
padding-left: 15px;
margin: 10px;
box-shadow: inset 1px 2px 2px rgba(255, 255, 255, 0.3);
}
.modules-center {
background-color: @surface;
border-radius: 12px;
background:
radial-gradient(
circle at 50% 250%,
alpha(darker(@surface), 0.9),
alpha(@surface_dim, 0.9)
)
padding-box,
linear-gradient(@primary, @on_primary) border-box;
border: 1px solid transparent;
opacity: 0.8;
margin: 10px;
box-shadow: inset 0px 2px 2px rgba(255, 255, 255, 0.2);
}
label.module {
font-size: 14px;
margin-left: 8px;
margin-right: 8px;
border-radius: 5px;
}
label.module {
font-size: 14px;
color: @on_surface;
padding: 3px 10px;
transition: all 0.3s ease-out;
background:
radial-gradient(
circle at 50% 250%,
@on_tertiary_fixed_variant,
@on_tertiary_fixed
)
padding-box,
linear-gradient(@on_primary_fixed_variant, @on_primary_fixed) border-box;
border-radius: 10px;
border: 0px solid transparent;
}
label.module:hover {
}
/* -----------------------------------------------------
* Workspaces
* ----------------------------------------------------- */
#workspaces {
padding: 5px 3px 5px 3px;
min-width: 176px;
font-weight: 600;
}
#workspaces button {
color: @on_surface;
border-radius: 3px;
padding: 0px 6px 0px 6px;
margin: 0px 2px 0px 2px;
transition: all 0.3s ease-in-out;
border: 1px solid transparent;
min-width: 26px;
}
#workspaces button.active {
background: alpha(@primary, 0.2);
border: 1px solid transparent;
transition: all 0.3s ease-in-out;
min-width: 30px;
border-radius: 8px;
box-shadow:
inset 1px 2px 2px rgba(255, 255, 255, 0.5),
inset 0 1px 1px rgba(255, 255, 255, 0.8);
}
#workspaces button:hover {
background: alpha(@secondary, 0.2);
border-radius: 15px;
}
/* -----------------------------------------------------
* Tooltips
* ----------------------------------------------------- */
tooltip {
background-color: @surface;
border-radius: 12px;
background:
radial-gradient(circle at 50% 250%, @surface, @surface_dim) padding-box,
linear-gradient(#ffffff, @on_primary) border-box;
border: 1px solid transparent;
opacity: 0.7;
margin: 10px;
}
/* Waybar scaling: adjust tooltip label font-size to scale the bar */
tooltip label {
color: @on_surface;
/* Waybar scaling: adjust tooltip label font-size to scale the bar */
font-size: 14px;
}
/* -----------------------------------------------------
* Window
* ----------------------------------------------------- */
#window {
background-color: transparent;
}
window#waybar.empty #window {
background-color: transparent;
/* Waybar scaling: adjust font-size to scale the bar */
font-size: 14px;
}
/* -----------------------------------------------------
* Taskbar
* ----------------------------------------------------- */
#taskbar {
padding: 5px 0px 5px 0px;
}
#taskbar button {
border-radius: 6px;
padding: 0px 5px 0px 5px;
}
#taskbar button:hover {
background: @primary;
color: @on_primary;
}
#custom-updates.yellow {
border-radius: 8px;
margin: 5px 0px 5px 5px;
padding: 0px 6px 0px 6px;
background-color: @secondary;
color: @on_secondary;
}
#custom-updates.red {
border-radius: 8px;
margin: 6px 0px 6px 7px;
padding: 0px 6px 0px 6px;
background-color: @error;
color: @on_error;
}
/* -----------------------------------------------------
* Clock
* ----------------------------------------------------- */
#clock {
margin-left: 12px;
margin-right: 12px;
}
@keyframes blink {
to {
background-color: @background;
color: @on_surface;
}
}
#battery.critical:not(.charging) {
background-color: transparent;
}
#backlight,
#backlight-slider,
#battery,
#bluetooth,
#clock,
#cpu,
#disk,
#idle_inhibitor,
#keyboard-state,
#memory,
#mode,
#mpris,
#network,
#power-profiles-daemon,
#pulseaudio,
#pulseaudio-slider,
#taskbar button,
#taskbar,
#temperature,
#tray,
#window,
#wireplumber,
#workspaces,
#custom-backlight,
#custom-nightlight,
#custom-browser,
#custom-cava_mviz,
#custom-cycle_wall,
#custom-dot_update,
#custom-file_manager,
#custom-keybinds,
#custom-keyboard,
#custom-light_dark,
#custom-nightlight,
#custom-lock,
#custom-hint,
#custom-hypridle,
#custom-menu,
#custom-playerctl,
#custom-power_vertical,
#custom-power,
#custom-quit,
#custom-reboot,
#custom-settings,
#custom-spotify,
#custom-swaync,
#custom-tty,
#custom-updater,
#custom-hyprpicker,
#custom-weather,
#custom-weather2,
#custom-weather.clearNight,
#custom-weather.cloudyFoggyDay,
#custom-weather.cloudyFoggyNight,
#custom-weather.default,
#custom-weather.rainyDay,
#custom-weather.rainyNight,
#custom-weather.severe,
#custom-weather.showyIcyDay,
#custom-weather.snowyIcyNight,
#custom-weather.sunnyDay {
background-color: transparent;
}