Skip to content

Commit

Permalink
Improve sidebar fuse options
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Jan 29, 2024
1 parent d115e64 commit a87011e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ namespace Fusebox {
visible = false,
halign = Gtk.Align.START,
margin_start = 18,
margin_end = 18,
margin_bottom = 12,
margin_top = 6
margin_end = 18
};
search_box.add_controller (search_box_eventcontrollerkey);
search_box.add_css_class ("search");
Expand Down
5 changes: 3 additions & 2 deletions src/Widgets/CategoryIcon.vala
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public class Fusebox.CategoryIcon : Gtk.ListBoxRow {

construct {
var icon = new Gtk.Image.from_icon_name (fuse.icon) {
pixel_size = 16,
tooltip_text = fuse.description
pixel_size = 24,
};

var fuse_name = new Gtk.Label (fuse.display_name) {
Expand All @@ -34,11 +33,13 @@ public class Fusebox.CategoryIcon : Gtk.ListBoxRow {
wrap_mode = Pango.WrapMode.WORD_CHAR,
xalign = 0
};
fuse_name.add_css_class ("cb-title");

var layout = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 16);
layout.append (icon);
layout.append (fuse_name);
layout.add_css_class ("mini-content-block");
layout.tooltip_text = fuse.description;

child = layout;

Expand Down

0 comments on commit a87011e

Please sign in to comment.