From b5979c784be4da6351aa9061608274c80e912993 Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Sun, 11 Feb 2024 07:46:15 -0500 Subject: [PATCH] ui: tidy up scrolling appearance in configuration panel --- lib/solaar/ui/config_panel.py | 4 ++-- lib/solaar/ui/window.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/solaar/ui/config_panel.py b/lib/solaar/ui/config_panel.py index 41bcff7bae..99d2ea30ff 100644 --- a/lib/solaar/ui/config_panel.py +++ b/lib/solaar/ui/config_panel.py @@ -740,13 +740,13 @@ def _disable_listbox_highlight_bg(lb): def create(): global _box assert _box is None - _box = Gtk.VBox(homogeneous=False, spacing=8) + _box = Gtk.VBox(homogeneous=False, spacing=4) _box._last_device = None config_scroll = Gtk.ScrolledWindow() config_scroll.add(_box) config_scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC) - config_scroll.set_shadow_type(Gtk.ShadowType.IN) + config_scroll.set_shadow_type(Gtk.ShadowType.NONE) # was IN config_scroll.set_size_request(0, 350) # ask for enough vertical space for about eight settings return config_scroll diff --git a/lib/solaar/ui/window.py b/lib/solaar/ui/window.py index cc456b7756..39c02d0856 100644 --- a/lib/solaar/ui/window.py +++ b/lib/solaar/ui/window.py @@ -134,7 +134,7 @@ def _status_line(label_text): p._lux = _status_line(_('Lighting')) p.pack_start(p._lux, False, False, 0) - # p.pack_start(Gtk.Separator.new(Gtk.Orientation.HORIZONTAL), False, False, 0) # spacer + p.pack_start(Gtk.Separator.new(Gtk.Orientation.HORIZONTAL), False, False, 0) # spacer p._config = _config_panel.create() p.pack_end(p._config, True, True, 4)