mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +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);
|
const mainMenuPopover = new HeaderBarPopover(mainMenuModel);
|
||||||
mainMenuPopover.add_css_class('menupopover');
|
mainMenuPopover.add_css_class('menupopover');
|
||||||
this.menuButton.set_popover(mainMenuPopover);
|
this.menuButton.set_popover(mainMenuPopover);
|
||||||
|
this.menuButton.add_css_class('osd');
|
||||||
this.menuButton.add_css_class('circular');
|
this.menuButton.add_css_class('circular');
|
||||||
this.menuWidget.append(this.menuButton);
|
this.menuWidget.append(this.menuButton);
|
||||||
|
|
||||||
@@ -57,6 +58,7 @@ class ClapperHeaderBarBase extends Gtk.Box
|
|||||||
icon_name: 'go-bottom-symbolic',
|
icon_name: 'go-bottom-symbolic',
|
||||||
can_focus: false,
|
can_focus: false,
|
||||||
});
|
});
|
||||||
|
floatButton.add_css_class('osd');
|
||||||
floatButton.add_css_class('circular');
|
floatButton.add_css_class('circular');
|
||||||
floatButton.add_css_class('linkedleft');
|
floatButton.add_css_class('linkedleft');
|
||||||
floatButton.connect('clicked',
|
floatButton.connect('clicked',
|
||||||
@@ -74,6 +76,7 @@ class ClapperHeaderBarBase extends Gtk.Box
|
|||||||
icon_name: 'view-fullscreen-symbolic',
|
icon_name: 'view-fullscreen-symbolic',
|
||||||
can_focus: false,
|
can_focus: false,
|
||||||
});
|
});
|
||||||
|
fullscreenButton.add_css_class('osd');
|
||||||
fullscreenButton.add_css_class('circular');
|
fullscreenButton.add_css_class('circular');
|
||||||
fullscreenButton.add_css_class('linkedright');
|
fullscreenButton.add_css_class('linkedright');
|
||||||
fullscreenButton.connect('clicked',
|
fullscreenButton.connect('clicked',
|
||||||
@@ -202,6 +205,7 @@ class ClapperHeaderBarBase extends Gtk.Box
|
|||||||
valign: Gtk.Align.CENTER,
|
valign: Gtk.Align.CENTER,
|
||||||
can_focus: false,
|
can_focus: false,
|
||||||
});
|
});
|
||||||
|
button.add_css_class('osd');
|
||||||
button.add_css_class('circular');
|
button.add_css_class('circular');
|
||||||
|
|
||||||
if(name === 'maximize')
|
if(name === 'maximize')
|
||||||
|
Reference in New Issue
Block a user