mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
style: comment about workspace hover effect
This commit is contained in:
parent
6bf4f65228
commit
8bfcb106c0
@ -12,6 +12,7 @@ window#waybar {
|
|||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
@ -202,13 +202,15 @@ auto waybar::modules::Pulseaudio::update() -> void
|
|||||||
format =
|
format =
|
||||||
config_["format-muted"].isString() ? config_["format-muted"].asString() : format;
|
config_["format-muted"].isString() ? config_["format-muted"].asString() : format;
|
||||||
label_.get_style_context()->add_class("muted");
|
label_.get_style_context()->add_class("muted");
|
||||||
} else if (port_name_.find("a2dp_sink") != std::string::npos) {
|
|
||||||
format = config_["format-bluetooth"].isString()
|
|
||||||
? config_["format-bluetooth"].asString() : format;
|
|
||||||
label_.get_style_context()->add_class("bluetooth");
|
|
||||||
} else {
|
} else {
|
||||||
label_.get_style_context()->remove_class("muted");
|
label_.get_style_context()->remove_class("muted");
|
||||||
label_.get_style_context()->remove_class("bluetooth");
|
if (port_name_.find("a2dp_sink") != std::string::npos) {
|
||||||
|
format = config_["format-bluetooth"].isString()
|
||||||
|
? config_["format-bluetooth"].asString() : format;
|
||||||
|
label_.get_style_context()->add_class("bluetooth");
|
||||||
|
} else {
|
||||||
|
label_.get_style_context()->remove_class("bluetooth");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
label_.set_markup(
|
label_.set_markup(
|
||||||
fmt::format(format, fmt::arg("volume", volume_),
|
fmt::format(format, fmt::arg("volume", volume_),
|
||||||
|
Loading…
Reference in New Issue
Block a user