Skip to content

Commit

Permalink
Fix uninstall button style
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Feb 7, 2024
1 parent 10605af commit abb6828
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/styles/banner.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@

/*Hack to make the button square-ish*/
.banner button.image-button.raised {
padding: 0.333rem 0.444rem;
padding: 0 0.333em;
}

.banner button:not(.suggested-action) {
Expand Down
5 changes: 3 additions & 2 deletions src/Views/AppInfoView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,16 @@ public class AppCenter.Views.AppInfoView : AppCenter.AbstractAppContainer {
tooltip_text = _("Uninstall"),
margin_end = 12
};
uninstall_button.add_css_class ("raised");

unowned var uninstall_button_context = uninstall_button.get_style_context ();
uninstall_button_context.add_class ("raised");
uninstall_button_context.add_provider (banner_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
uninstall_button_context.add_provider (accent_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);

uninstall_button_revealer = new Gtk.Revealer () {
child = uninstall_button,
transition_type = Gtk.RevealerTransitionType.SLIDE_LEFT
transition_type = Gtk.RevealerTransitionType.SLIDE_LEFT,
overflow = VISIBLE
};

var button_box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0) {
Expand Down

0 comments on commit abb6828

Please sign in to comment.