Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions data/styles/CategoryView.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
category-view .main-clamp {
padding: rem(12px);

.category-box {
border-spacing: rem(24px);
}

.rich-list row {
border-radius: rem(3px);
}

flowboxchild box {
margin: 0.5rem;
}
}
3 changes: 1 addition & 2 deletions src/CategoryView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,13 @@ public class Switchboard.CategoryView : Adw.NavigationPage {
plug_search = new PlugsSearch ();
plug_search_result = new Gee.ArrayList<SearchEntry?> ();

var category_box = new Gtk.Box (VERTICAL, 0) {
var category_box = new Granite.Box (VERTICAL, DOUBLE) {
vexpand = true
};
category_box.append (personal_category);
category_box.append (hardware_category);
category_box.append (network_category);
category_box.append (system_category);
category_box.add_css_class ("category-box");

stack = new Gtk.Stack () {
transition_type = CROSSFADE,
Expand Down
9 changes: 2 additions & 7 deletions src/Widgets/CategoryIcon.vala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class Switchboard.CategoryIcon : Gtk.FlowBoxChild {

construct {
var icon = new Gtk.Image.from_icon_name (plug.icon) {
pixel_size = 32,
icon_size = LARGE,
tooltip_text = plug.description
};

Expand All @@ -42,12 +42,7 @@ public class Switchboard.CategoryIcon : Gtk.FlowBoxChild {
xalign = 0
};

var layout = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 6) {
margin_top = 6,
margin_end = 6,
margin_bottom = 6,
margin_start = 6
};
var layout = new Granite.Box (HORIZONTAL, HALF);
layout.append (icon);
layout.append (plug_name);

Expand Down
Loading