Fix windows name & padding

This commit is contained in:
Hadi 2024-03-18 22:37:03 +01:00
parent ef3489075f
commit 1dd92201d0

View File

@ -117,142 +117,142 @@
}; };
}; };
style = '' style = ''
* { * {
border: none; border: none;
border-radius: 0; border-radius: 0;
min-height: 0; min-height: 0;
font-family: "${config.theme.font}"; font-family: "${config.theme.font}";
color: #${config.theme.colors.fg}; color: #${config.theme.colors.fg};
font-weight: 700; font-weight: 700;
}
window#waybar {
background-color: ${
if config.theme.waybar-transparent then
"rgba(0, 0, 0, 0)"
else
"#${config.theme.colors.bg}"
};
transition-property: background-color;
transition-duration: 0.5s;
border-radius: ${toString config.theme.rounding}px;
font-size: 13px;
}
.modules-left, .modules-center, .modules-right {
border-radius: ${toString config.theme.rounding}px;
background-color: #${config.theme.colors.bg};
padding: 2px 15px;
}
window#waybar.hidden {
opacity: 0.5;
}
#workspaces {
background-color: transparent;
}
#workspaces button {
all: initial; /* Remove GTK theme values (waybar #1351) */
min-width: 0; /* Fix weird spacing in materia (waybar #450) */
box-shadow: inset 0 -3px transparent; /* Use box-shadow instead of border so the text isn't offset */
padding: 6px 18px;
margin: 6px 3px;
border-radius: 4px;
background-color: #${config.theme.colors.alt-bg};
color: #${config.theme.colors.alt-fg};
}
#workspaces button.active {
color: #${config.theme.colors.primary-fg};
background-color: #${config.theme.colors.primary-bg};
}
#workspaces button:hover {
box-shadow: inherit;
text-shadow: inherit;
opacity: 0.8;
}
#workspaces button.urgent {
background-color: #${config.theme.colors.color1};
}
#window {
font-family: "${config.theme.font-mono}";
} }
#memory, window#waybar {
#custom-power, background-color: ${
#battery, if config.theme.waybar-transparent then
#backlight, "rgba(0, 0, 0, 0)"
#pulseaudio, else
#network, "#${config.theme.colors.bg}"
#clock, };
#tray, transition-property: background-color;
#backlight{ transition-duration: 0.5s;
border-radius: 9px; border-radius: ${toString config.theme.rounding}px;
margin: 6px 3px; font-size: 13px;
padding: 6px 12px; }
background-color: #${config.theme.colors.alt-bg};
color: #${config.theme.colors.alt-fg};
}
#tray menu { .modules-left, .modules-center, .modules-right {
background-color: #${config.theme.colors.alt-bg}; border-radius: ${toString config.theme.rounding}px;
color: #${config.theme.colors.alt-fg}; background-color: #${config.theme.colors.bg};
} padding: 2px 6px;
}
#custom-logo { window#waybar.hidden {
padding-right: 7px; opacity: 0.5;
font-size: 15px; }
color: #${config.theme.colors.primary-bg};
}
@keyframes blink { #workspaces {
to { background-color: transparent;
background-color: #f38ba8; }
color: #181825;
}
}
#battery.warning, #workspaces button {
#battery.critical, all: initial; /* Remove GTK theme values (waybar #1351) */
#battery.urgent { min-width: 0; /* Fix weird spacing in materia (waybar #450) */
background-color: #ff0048; box-shadow: inset 0 -3px transparent; /* Use box-shadow instead of border so the text isn't offset */
color: #181825; padding: 6px 18px;
animation-name: blink; margin: 6px 3px;
animation-duration: 0.5s; border-radius: 4px;
animation-timing-function: linear; background-color: #${config.theme.colors.alt-bg};
animation-iteration-count: infinite; color: #${config.theme.colors.alt-fg};
animation-direction: alternate; }
}
#battery.charging { #workspaces button.active {
background-color: #${config.theme.colors.alt-bg}; color: #${config.theme.colors.primary-fg};
color: #${config.theme.colors.alt-fg}; background-color: #${config.theme.colors.primary-bg};
animation: none; }
}
#custom-power { #workspaces button:hover {
background-color: #${config.theme.colors.primary-bg}; box-shadow: inherit;
color: #${config.theme.colors.primary-fg}; text-shadow: inherit;
} opacity: 0.8;
}
#workspaces button.urgent {
background-color: #${config.theme.colors.color1};
}
#window > * {
font-family: "${config.theme.font-mono}";
}
#memory,
#custom-power,
#battery,
#backlight,
#pulseaudio,
#network,
#clock,
#tray,
#backlight{
border-radius: 9px;
margin: 6px 3px;
padding: 6px 12px;
background-color: #${config.theme.colors.alt-bg};
color: #${config.theme.colors.alt-fg};
}
#tray menu {
background-color: #${config.theme.colors.alt-bg};
color: #${config.theme.colors.alt-fg};
}
#custom-logo {
padding-right: 7px;
font-size: 15px;
color: #${config.theme.colors.primary-bg};
}
@keyframes blink {
to {
background-color: #f38ba8;
color: #181825;
}
}
#battery.warning,
#battery.critical,
#battery.urgent {
background-color: #ff0048;
color: #181825;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#battery.charging {
background-color: #${config.theme.colors.alt-bg};
color: #${config.theme.colors.alt-fg};
animation: none;
}
#custom-power {
background-color: #${config.theme.colors.primary-bg};
color: #${config.theme.colors.primary-fg};
}
tooltip { tooltip {
border-radius: 8px; border-radius: 8px;
padding: 15px; padding: 15px;
background-color: #${config.theme.colors.alt-bg}; background-color: #${config.theme.colors.alt-bg};
color: #${config.theme.colors.alt-fg}; color: #${config.theme.colors.alt-fg};
} }
tooltip label { tooltip label {
padding: 5px; padding: 5px;
background-color: #${config.theme.colors.alt-bg}; background-color: #${config.theme.colors.alt-bg};
color: #${config.theme.colors.alt-fg}; color: #${config.theme.colors.alt-fg};
} }
''; '';
}; };
} }