color not being set for workspace button subclasses #4287
-
I am trying to change the * {
font-family: FiraCode Nerd Font Mono;
font-size: 18px;
color: #cdd6f4;
border: none;
border-radius: 20px;
}
window#waybar {
background: rgba(0, 0, 0, 0);
}
/*-----module groups----*/
.modules-right {
margin: 2px 10px 0 0;
}
.modules-center {
margin: 2px 0 0 0;
}
.modules-left {
background-color: rgba(30, 30, 46, 0.7);
margin: 2px 0 0 5px;
}
/*-----modules indv----*/
/* button:hover { */
/* background-color: #313244; */
/* } */
#window,
#workspaces {
margin: 0 4px;
}
#workspaces button {
padding: 2px 9px;
color: #cdd6f4;
}
#workspaces button.active {
color: #f5c2e7;
}
#workspaces button.urgent {
color: #1e1e2e;
background-color: #f38ba8;
}
#pulseaudio:hover {
background-color: #313244;
}
#clock,
#battery,
#cpu,
#memory,
#temperature,
#backlight,
#network,
#pulseaudio,
#tray,
#keyboard-state,
#language,
#custom-power {
background-color: rgba(30, 30, 46, 0.7);
padding: 0 10px;
}
#battery {
background-color: #ffffff;
color: #000000;
}
#battery.charging,
#battery.plugged {
color: #ffffff;
background-color: #26A65B;
}
/* @keyframes blink { */
/* to { */
/* background-color: #ffffff; */
/* color: #000000; */
/* } */
/* } */
#battery.critical:not(.charging) {
background-color: #f53c3c;
color: #ffffff;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: steps(12);
animation-iteration-count: infinite;
animation-direction: alternate;
}
#temperature {
background-color: #f0932b;
}
#temperature.critical {
background-color: #eb4d4b;
}
#backlight {
background-color: #90b1b1;
}
#pulseaudio.muted {
background-color: #f38ba8;
color: #1e1e2e;
}
#tray {
background-color: #2980b9;
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
background-color: #eb4d4b;
}
#language {
background: #00b093;
color: #740864;
padding: 0 5px;
margin: 0 5px;
min-width: 16px;
}
#keyboard-state {
background: #97e1ad;
color: #000000;
padding: 0 0px;
margin: 0 5px;
min-width: 16px;
}
#keyboard-state > label {
padding: 0 5px;
}
#keyboard-state > label.locked {
background: rgba(0, 0, 0, 0.2);
} |
Beta Was this translation helpful? Give feedback.
Answered by
IiroUllin
Jul 24, 2025
Replies: 1 comment
-
It seems that the text in
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
VJMReichenbach
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that the text in
#workspaces button
is actually in#workspaces button label
, e.g., this works for me: