Skip to content

Commit

Permalink
Add info button
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Jan 30, 2024
1 parent 4124002 commit d0d72c6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion fuses/appearance/AppearanceView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,11 @@ public class AppearanceView : Gtk.Box {
};
roundness_label.add_css_class ("cb-title");

var roundness_info = new Gtk.Image () {
icon_name = "dialog-information-symbolic",
tooltip_text = _("Change how round elements are based on this choice.")
};

var roundness_adjustment = new Gtk.Adjustment (-1, 0.0, 3.0, 1.0, 0, 0);

var roundness_scale = new Gtk.Scale (Gtk.Orientation.HORIZONTAL, roundness_adjustment) {
Expand All @@ -401,8 +406,12 @@ public class AppearanceView : Gtk.Box {
roundness_control_box.append (roundness_scale);
roundness_control_box.append (roundness_spinbutton);

var roundness_title_box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 12);
roundness_title_box.append (roundness_label);
roundness_title_box.append (roundness_info);

var roundness_box = new Gtk.Box (Gtk.Orientation.VERTICAL, 6);
roundness_box.append (roundness_label);
roundness_box.append (roundness_title_box);
roundness_box.append (roundness_control_box);

tau_appearance_settings.bind ("font-weight", roundness_adjustment, "value", SettingsBindFlags.GET);
Expand Down

0 comments on commit d0d72c6

Please sign in to comment.