From 54e612afd4797081d215ca688d90930457c0d064 Mon Sep 17 00:00:00 2001 From: Martin Wagner Date: Tue, 18 Aug 2020 22:07:23 +0200 Subject: [PATCH] fixed spacing in AlbumDialog --- bin/mpdevil.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/bin/mpdevil.py b/bin/mpdevil.py index 2d32a19..011f17e 100644 --- a/bin/mpdevil.py +++ b/bin/mpdevil.py @@ -1278,15 +1278,19 @@ class AlbumDialog(Gtk.Dialog): use_csd=settings.get_boolean("use-csd") if use_csd: Gtk.Dialog.__init__(self, transient_for=parent, use_header_bar=True) - # css - style_context=self.get_style_context() - provider=Gtk.CssProvider() - css=b"""* {-GtkDialog-content-area-border: 0px;}""" - provider.load_from_data(css) - style_context.add_provider(provider, 800) else: Gtk.Dialog.__init__(self, transient_for=parent) + # css + style_context=self.get_style_context() + provider=Gtk.CssProvider() + if use_csd: + css=b"""* {-GtkDialog-content-area-border: 0px;}""" + else: + css=b"""* {-GtkDialog-action-area-border: 0px;}""" + provider.load_from_data(css) + style_context.add_provider(provider, 800) + # metadata self.album=album self.artist=artist