From 86356d5b1b20eab6dc23a19602f16992f2797f0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Fri, 19 Feb 2021 20:56:58 +0100 Subject: [PATCH] Make linked buttons icons closer to each other --- css/styles.css | 6 ++++++ src/headerbarBase.js | 2 ++ 2 files changed, 8 insertions(+) diff --git a/css/styles.css b/css/styles.css index 2a581f8a..da6eba0b 100644 --- a/css/styles.css +++ b/css/styles.css @@ -25,6 +25,12 @@ radio { background: alpha(@borders, 0.75); min-width: 1px; } +.linkedleft image { + margin-left: 2px; +} +.linkedright image { + margin-right: 2px; +} /* Non-osd style for popover menu */ .menupopover label { color: @theme_text_color; diff --git a/src/headerbarBase.js b/src/headerbarBase.js index 3f3a2811..959d1c3d 100644 --- a/src/headerbarBase.js +++ b/src/headerbarBase.js @@ -50,6 +50,7 @@ class ClapperHeaderBarBase extends Gtk.Box icon_name: 'go-bottom-symbolic', }); floatButton.add_css_class('circular'); + floatButton.add_css_class('linkedleft'); floatButton.connect('clicked', this._onFloatButtonClicked.bind(this) ); @@ -65,6 +66,7 @@ class ClapperHeaderBarBase extends Gtk.Box icon_name: 'view-fullscreen-symbolic', }); fullscreenButton.add_css_class('circular'); + fullscreenButton.add_css_class('linkedright'); fullscreenButton.connect('clicked', this._onFullscreenButtonClicked.bind(this) );