refactor: inherit disabled button

pull/1767/head
Alex 2022-11-04 08:39:59 +01:00
parent 92cc01f401
commit 3030850b22
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ AButton::AButton(const Json::Value& config, const std::string& name, const std::
/* https://github.com/Alexays/Waybar/issues/1731 */ /* https://github.com/Alexays/Waybar/issues/1731 */
auto css = Gtk::CssProvider::create(); 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); button_.get_style_context()->add_provider(css, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
if (!id.empty()) { if (!id.empty()) {