mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed spacing in AlbumDialog
This commit is contained in:
parent
8239751e6f
commit
54e612afd4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user