From 3030850b225863d2433590a796aa043d382df810 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 4 Nov 2022 08:39:59 +0100 Subject: [PATCH] refactor: inherit disabled button --- src/AButton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AButton.cpp b/src/AButton.cpp index 78d5d422..caf34d95 100644 --- a/src/AButton.cpp +++ b/src/AButton.cpp @@ -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()) {