From c18e2d148e34a07ff9c5b2d743499cc531f8b847 Mon Sep 17 00:00:00 2001 From: alfrix Date: Mon, 20 Jun 2022 13:50:54 -0300 Subject: [PATCH] layout: content margins in css close #558 (use .action_bar{} and .content{} in a custom theme) --- ks_includes/screen_panel.py | 3 ++- styles/base.css | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ks_includes/screen_panel.py b/ks_includes/screen_panel.py index 4e687093..bbed8e8b 100644 --- a/ks_includes/screen_panel.py +++ b/ks_includes/screen_panel.py @@ -25,7 +25,8 @@ class ScreenPanel: self.layout = Gtk.Layout() self.layout.set_size(self._screen.width, self._screen.height) - self.content = Gtk.VBox(spacing=0) + self.content = Gtk.VBox() + self.content.get_style_context().add_class("content") self.content.set_hexpand(True) self.content.set_vexpand(True) diff --git a/styles/base.css b/styles/base.css index ea3a2207..fa91ceb3 100644 --- a/styles/base.css +++ b/styles/base.css @@ -190,6 +190,10 @@ trough { background-color: #20303D; } +.content { + margin: 0 .1em; +} + .dialog { border: .1em solid black; padding: 2.5em;