added module group selectors for styling

This commit is contained in:
Christoffer Noerbjerg 2020-10-11 22:36:30 +02:00
parent 7b78a29f3f
commit e9b2d275c8
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ waybar::Bar::Bar(struct waybar_output* w_output, const Json::Value& w_config)
window.get_style_context()->add_class(output->name);
window.get_style_context()->add_class(config["name"].asString());
window.get_style_context()->add_class(config["position"].asString());
left_.get_style_context()->add_class("modules-left");
center_.get_style_context()->add_class("modules-center");
right_.get_style_context()->add_class("modules-right");
if (config["position"] == "right" || config["position"] == "left") {
height_ = 0;