Skip to content

Commit

Permalink
Add minor style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Apr 4, 2024
1 parent 4891619 commit 06f3b8a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/ScreenCast/Dialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public class ScreenCast.Dialog : Granite.Dialog {
list_box = new Gtk.ListBox () {
vexpand = true
};
list_box.add_css_class ("boxed-list");
list_box.add_css_class (Granite.STYLE_CLASS_RICH_LIST);
list_box.set_header_func (header_func);

Expand All @@ -41,7 +40,19 @@ public class ScreenCast.Dialog : Granite.Dialog {
populate_windows.begin ();
}

get_content_area ().append (list_box);
var scrolled_window = new Gtk.ScrolledWindow () {
child = list_box,
hscrollbar_policy = NEVER
};

var frame = new Gtk.Frame (null) {
child = scrolled_window
};

get_content_area ().append (frame);

default_height = 400;
default_width = 300;

add_button (_("Cancel"), Gtk.ResponseType.CANCEL);

Expand Down

0 comments on commit 06f3b8a

Please sign in to comment.