fix: button default style

pull/1769/head
Alex 2022-11-03 14:04:29 +01:00 committed by GitHub
parent 09120caf17
commit 3cf027fc56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 { min-width: 0; }"); css->load_from_data("button { all: unset; min-width: 0; }");
button_.get_style_context()->add_provider(css, GTK_STYLE_PROVIDER_PRIORITY_USER); button_.get_style_context()->add_provider(css, GTK_STYLE_PROVIDER_PRIORITY_USER);
if (!id.empty()) { if (!id.empty()) {