Merge pull request #5017 from nonamescm/add-static-river-tag-classes
River/tags: Add static CSS classes for all available tags.
This commit is contained in:
@@ -59,6 +59,7 @@ Addressed by *river/tags*
|
|||||||
- *#tags button.focused*
|
- *#tags button.focused*
|
||||||
- *#tags button.urgent*
|
- *#tags button.urgent*
|
||||||
- *#tags button.output*
|
- *#tags button.output*
|
||||||
|
- *#tags button.tag-N*
|
||||||
|
|
||||||
Note that occupied/focused/urgent/output status may overlap. That is, a tag may be
|
Note that occupied/focused/urgent/output status may overlap. That is, a tag may be
|
||||||
both occupied and focused at the same time.
|
both occupied and focused at the same time.
|
||||||
|
|||||||
@@ -183,6 +183,7 @@ Tags::Tags(const std::string& id, const waybar::Bar& bar, const Json::Value& con
|
|||||||
button.signal_button_press_event().connect(
|
button.signal_button_press_event().connect(
|
||||||
sigc::bind(sigc::mem_fun(*this, &Tags::handle_button_press), (1 << tag)));
|
sigc::bind(sigc::mem_fun(*this, &Tags::handle_button_press), (1 << tag)));
|
||||||
}
|
}
|
||||||
|
button.get_style_context()->add_class("tag-" + std::to_string(tag + 1));
|
||||||
button.show();
|
button.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user