@@ -50,6 +50,17 @@ public class Jorts.StickyNoteWindow : Gtk.ApplicationWindow {
5050 private const string ACTION_ZOOM_DEFAULT = " action_zoom_default" ;
5151 private const string ACTION_ZOOM_IN = " action_zoom_in" ;
5252
53+ private const string ACTION_THEME_1 = " action_theme_1" ;
54+ private const string ACTION_THEME_2 = " action_theme_2" ;
55+ private const string ACTION_THEME_3 = " action_theme_3" ;
56+ private const string ACTION_THEME_4 = " action_theme_4" ;
57+ private const string ACTION_THEME_5 = " action_theme_5" ;
58+ private const string ACTION_THEME_6 = " action_theme_6" ;
59+ private const string ACTION_THEME_7 = " action_theme_7" ;
60+ private const string ACTION_THEME_8 = " action_theme_8" ;
61+ private const string ACTION_THEME_9 = " action_theme_9" ;
62+ private const string ACTION_THEME_0 = " action_theme_0" ;
63+
5364 public static Gee . MultiMap<string, string> action_accelerators;
5465
5566 private const GLib . ActionEntry [] ACTION_ENTRIES = {
@@ -60,6 +71,16 @@ public class Jorts.StickyNoteWindow : Gtk.ApplicationWindow {
6071 { ACTION_ZOOM_OUT , action_zoom_out},
6172 { ACTION_ZOOM_DEFAULT , action_zoom_default},
6273 { ACTION_ZOOM_IN , action_zoom_in},
74+ { ACTION_THEME_1 , action_theme_1},
75+ { ACTION_THEME_2 , action_theme_2},
76+ { ACTION_THEME_3 , action_theme_3},
77+ { ACTION_THEME_4 , action_theme_4},
78+ { ACTION_THEME_5 , action_theme_5},
79+ { ACTION_THEME_6 , action_theme_6},
80+ { ACTION_THEME_7 , action_theme_7},
81+ { ACTION_THEME_8 , action_theme_8},
82+ { ACTION_THEME_9 , action_theme_9},
83+ { ACTION_THEME_0 , action_theme_0},
6384 };
6485
6586 public StickyNoteWindow (Gtk .Application app , NoteData data ) {
@@ -278,4 +299,15 @@ public class Jorts.StickyNoteWindow : Gtk.ApplicationWindow {
278299 private void action_zoom_out () {popover. zoom_out ();}
279300 private void action_zoom_default () {popover. zoom_default ();}
280301 private void action_zoom_in () {popover. zoom_in ();}
302+
303+ private void action_theme_1 () {popover. color = (Jorts . Themes . all ())[0 ];}
304+ private void action_theme_2 () {popover. color = (Jorts . Themes . all ())[1 ];}
305+ private void action_theme_3 () {popover. color = (Jorts . Themes . all ())[2 ];}
306+ private void action_theme_4 () {popover. color = (Jorts . Themes . all ())[3 ];}
307+ private void action_theme_5 () {popover. color = (Jorts . Themes . all ())[4 ];}
308+ private void action_theme_6 () {popover. color = (Jorts . Themes . all ())[5 ];}
309+ private void action_theme_7 () {popover. color = (Jorts . Themes . all ())[6 ];}
310+ private void action_theme_8 () {popover. color = (Jorts . Themes . all ())[7 ];}
311+ private void action_theme_9 () {popover. color = (Jorts . Themes . all ())[8 ];}
312+ private void action_theme_0 () {popover. color = (Jorts . Themes . all ())[9 ];}
281313}
0 commit comments