fixed spacing in AlbumDialog

This commit is contained in:
Martin Wagner 2020-08-18 22:07:23 +02:00
parent 8239751e6f
commit 54e612afd4

View File

@ -1278,15 +1278,19 @@ class AlbumDialog(Gtk.Dialog):
use_csd=settings.get_boolean("use-csd") use_csd=settings.get_boolean("use-csd")
if use_csd: if use_csd:
Gtk.Dialog.__init__(self, transient_for=parent, use_header_bar=True) 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: else:
Gtk.Dialog.__init__(self, transient_for=parent) 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 # metadata
self.album=album self.album=album
self.artist=artist self.artist=artist