mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor: inherit disabled button
This commit is contained in:
parent
92cc01f401
commit
3030850b22
@ -21,7 +21,7 @@ AButton::AButton(const Json::Value& config, const std::string& name, const std::
|
||||
|
||||
/* https://github.com/Alexays/Waybar/issues/1731 */
|
||||
auto css = Gtk::CssProvider::create();
|
||||
css->load_from_data("button { all: unset; min-width: 0; } label { all: unset; }");
|
||||
css->load_from_data("button { all: unset; min-width: 0; } label:disabled,button:disabled { all: inherit; } label { all: unset; }");
|
||||
button_.get_style_context()->add_provider(css, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
|
||||
|
||||
if (!id.empty()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user