fix: button default style

This commit is contained in:
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 */
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);
if (!id.empty()) {