backlight: full-width separator between display and keyboard sections

parent eddf1b6a
.widget-backlight { .widget-backlight {
padding: 0px 10px; padding: 0;
margin: 5px 15px; margin: 5px 15px;
border-radius: var(--window-radius); border-radius: var(--window-radius);
......
...@@ -230,6 +230,8 @@ namespace XimperShellNotificationCenter.Widgets { ...@@ -230,6 +230,8 @@ namespace XimperShellNotificationCenter.Widgets {
// Single display — simple row // Single display — simple row
var row = create_slider_row ( var row = create_slider_row (
ref display_sources[0], null, false); ref display_sources[0], null, false);
row.set_margin_start (10);
row.set_margin_end (10);
append (row); append (row);
return; return;
} }
...@@ -239,6 +241,8 @@ namespace XimperShellNotificationCenter.Widgets { ...@@ -239,6 +241,8 @@ namespace XimperShellNotificationCenter.Widgets {
add_css_class ("has-collapse"); add_css_class ("has-collapse");
var topbar = new Gtk.Box ( var topbar = new Gtk.Box (
Gtk.Orientation.HORIZONTAL, 6); Gtk.Orientation.HORIZONTAL, 6);
topbar.set_margin_start (10);
topbar.set_margin_end (10);
var topbar_icon = new Gtk.Image.from_icon_name ( var topbar_icon = new Gtk.Image.from_icon_name (
"display-brightness-symbolic"); "display-brightness-symbolic");
var topbar_label = new Gtk.Label ( var topbar_label = new Gtk.Label (
...@@ -280,6 +284,8 @@ namespace XimperShellNotificationCenter.Widgets { ...@@ -280,6 +284,8 @@ namespace XimperShellNotificationCenter.Widgets {
if (display_sources.length > 0) { if (display_sources.length > 0) {
displays_box = new Gtk.Box ( displays_box = new Gtk.Box (
Gtk.Orientation.VERTICAL, 0); Gtk.Orientation.VERTICAL, 0);
displays_box.set_margin_start (10);
displays_box.set_margin_end (10);
var sg = new Gtk.SizeGroup ( var sg = new Gtk.SizeGroup (
Gtk.SizeGroupMode.HORIZONTAL); Gtk.SizeGroupMode.HORIZONTAL);
for (int i = 0; i < display_sources.length; i++) { for (int i = 0; i < display_sources.length; i++) {
...@@ -304,6 +310,8 @@ namespace XimperShellNotificationCenter.Widgets { ...@@ -304,6 +310,8 @@ namespace XimperShellNotificationCenter.Widgets {
if (kbd_sources.length > 0) { if (kbd_sources.length > 0) {
kbd_box = new Gtk.Box ( kbd_box = new Gtk.Box (
Gtk.Orientation.VERTICAL, 0); Gtk.Orientation.VERTICAL, 0);
kbd_box.set_margin_start (10);
kbd_box.set_margin_end (10);
var sg = new Gtk.SizeGroup ( var sg = new Gtk.SizeGroup (
Gtk.SizeGroupMode.HORIZONTAL); Gtk.SizeGroupMode.HORIZONTAL);
for (int i = 0; i < kbd_sources.length; i++) { for (int i = 0; i < kbd_sources.length; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment