mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
Apply "osd" CSS class to each button in headerbar
Otherwise it does not work correctly with new Adwaita theme
This commit is contained in:
@@ -44,6 +44,7 @@ class ClapperHeaderBarBase extends Gtk.Box
|
||||
const mainMenuPopover = new HeaderBarPopover(mainMenuModel);
|
||||
mainMenuPopover.add_css_class('menupopover');
|
||||
this.menuButton.set_popover(mainMenuPopover);
|
||||
this.menuButton.add_css_class('osd');
|
||||
this.menuButton.add_css_class('circular');
|
||||
this.menuWidget.append(this.menuButton);
|
||||
|
||||
@@ -57,6 +58,7 @@ class ClapperHeaderBarBase extends Gtk.Box
|
||||
icon_name: 'go-bottom-symbolic',
|
||||
can_focus: false,
|
||||
});
|
||||
floatButton.add_css_class('osd');
|
||||
floatButton.add_css_class('circular');
|
||||
floatButton.add_css_class('linkedleft');
|
||||
floatButton.connect('clicked',
|
||||
@@ -74,6 +76,7 @@ class ClapperHeaderBarBase extends Gtk.Box
|
||||
icon_name: 'view-fullscreen-symbolic',
|
||||
can_focus: false,
|
||||
});
|
||||
fullscreenButton.add_css_class('osd');
|
||||
fullscreenButton.add_css_class('circular');
|
||||
fullscreenButton.add_css_class('linkedright');
|
||||
fullscreenButton.connect('clicked',
|
||||
@@ -202,6 +205,7 @@ class ClapperHeaderBarBase extends Gtk.Box
|
||||
valign: Gtk.Align.CENTER,
|
||||
can_focus: false,
|
||||
});
|
||||
button.add_css_class('osd');
|
||||
button.add_css_class('circular');
|
||||
|
||||
if(name === 'maximize')
|
||||
|
Reference in New Issue
Block a user