From 0df2917d6eea2117e96c745d6ae1cef82767914b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Fri, 28 Aug 2026 10:35:59 -0700 Subject: [PATCH] Use Granite.Box --- data/Application.css | 4 ---- src/Views/AbstractOnboardingView.vala | 2 +- src/Views/HouseKeepingView.vala | 8 ++++---- src/Views/UpdatesView.vala | 4 ++-- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/data/Application.css b/data/Application.css index d196fc88..0434f759 100644 --- a/data/Application.css +++ b/data/Application.css @@ -3,10 +3,6 @@ * SPDX-FileCopyrightText: 2024 elementary, Inc. (https://elementary.io) */ -checkbutton > box { - border-spacing: 0.5rem; -} - checkbutton header { margin-top: 0; } diff --git a/src/Views/AbstractOnboardingView.vala b/src/Views/AbstractOnboardingView.vala index 383c1aab..715b7251 100644 --- a/src/Views/AbstractOnboardingView.vala +++ b/src/Views/AbstractOnboardingView.vala @@ -59,7 +59,7 @@ public abstract class Onboarding.AbstractOnboardingView : Adw.NavigationPage { }; description_label.add_css_class (Granite.CssClass.DIM); - var header_area = new Gtk.Box (VERTICAL, 0); + var header_area = new Granite.Box (VERTICAL, NONE); header_area.append (overlay); header_area.append (title_label); header_area.append (description_label); diff --git a/src/Views/HouseKeepingView.vala b/src/Views/HouseKeepingView.vala index ddb3bf0d..7744435c 100644 --- a/src/Views/HouseKeepingView.vala +++ b/src/Views/HouseKeepingView.vala @@ -48,7 +48,7 @@ public class Onboarding.HouseKeepingView : AbstractOnboardingView { {_("Automatically Delete"), temp_label.label} ); - var temp_box = new Gtk.Box (HORIZONTAL, 0); + var temp_box = new Granite.Box (HORIZONTAL, HALF); temp_box.append (new Gtk.Image.from_icon_name ("folder") { pixel_size = 24 }); temp_box.append (temp_label); temp_box.set_parent (temp_check); @@ -64,7 +64,7 @@ public class Onboarding.HouseKeepingView : AbstractOnboardingView { {_("Automatically Delete"), download_label.label} ); - var download_box = new Gtk.Box (HORIZONTAL, 0); + var download_box = new Granite.Box (HORIZONTAL, HALF); download_box.append (new Gtk.Image.from_icon_name ("folder-download") { pixel_size = 24 }); download_box.append (download_label); download_box.set_parent (download_check); @@ -80,7 +80,7 @@ public class Onboarding.HouseKeepingView : AbstractOnboardingView { {_("Automatically Delete"), screenshots_label.label} ); - var screenshots_box = new Gtk.Box (HORIZONTAL, 0); + var screenshots_box = new Granite.Box (HORIZONTAL, HALF); screenshots_box.append (new Gtk.Image.from_icon_name ("folder-screenshots-icon") { pixel_size = 24 }); screenshots_box.append (screenshots_label); screenshots_box.set_parent (screenshots_check); @@ -96,7 +96,7 @@ public class Onboarding.HouseKeepingView : AbstractOnboardingView { {_("Automatically Delete"), trash_label.label} ); - var trash_box = new Gtk.Box (HORIZONTAL, 0); + var trash_box = new Granite.Box (HORIZONTAL, HALF); trash_box.append (new Gtk.Image.from_icon_name ("user-trash-full") { pixel_size = 24 }); trash_box.append (trash_label); trash_box.set_parent (trash_check); diff --git a/src/Views/UpdatesView.vala b/src/Views/UpdatesView.vala index 8e528078..9c0b4dfb 100644 --- a/src/Views/UpdatesView.vala +++ b/src/Views/UpdatesView.vala @@ -21,7 +21,7 @@ public class Onboarding.UpdatesView : AbstractOnboardingView { secondary_text = _("Apps being tried for free will not update automatically") }; - var appcenter_box = new Gtk.Box (HORIZONTAL, 0); + var appcenter_box = new Granite.Box (HORIZONTAL, HALF); appcenter_box.append (new Gtk.Image.from_icon_name ("io.elementary.appcenter") { icon_size = LARGE }); appcenter_box.append (appcenter_label); appcenter_box.set_parent (appcenter_check); @@ -33,7 +33,7 @@ public class Onboarding.UpdatesView : AbstractOnboardingView { secondary_text = _("Will be installed when you choose to restart this device") }; - var system_box = new Gtk.Box (HORIZONTAL, 0); + var system_box = new Granite.Box (HORIZONTAL, HALF); system_box.append (new Gtk.Image.from_icon_name ("io.elementary.settings") { icon_size = LARGE }); system_box.append (system_label); system_box.set_parent (system_check);