Skip to content

Commit 5ade2a1

Browse files
authored
Merge branch 'main' into danirabbit/icons-folders
2 parents df41341 + 1f3b78b commit 5ade2a1

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

demo/Views/FormView.vala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ public class FormView : DemoPage {
4242

4343
var button = new Gtk.Button.with_label ("Submit");
4444

45+
var spinbutton = new Gtk.SpinButton.with_range (0, 100, 10);
46+
4547
var box = new Granite.Box (VERTICAL) {
4648
halign = CENTER,
4749
valign = CENTER,
@@ -54,7 +56,8 @@ public class FormView : DemoPage {
5456
box.append (success_entry);
5557
box.append (warning_entry);
5658
box.append (error_entry);
57-
59+
box.append (new Granite.HeaderLabel ("Gtk.SpinButton"));
60+
box.append (spinbutton);
5861

5962
child = box;
6063

lib/Styles/Gtk/Index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
@import 'ShortcutsWindow.scss';
2222
@import 'Sidebar.scss';
2323
@import 'Slider.scss';
24+
@import 'SpinButton.scss';
2425
@import 'Spinner.scss';
2526
@import 'Switch.scss';
2627
@import 'Tooltip.scss';

lib/Styles/Gtk/SpinButton.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
spinbutton {
2+
@extend entry;
3+
}

0 commit comments

Comments
 (0)