|
33 | 33 | valign = Gtk.Align.START |
34 | 34 | }; |
35 | 35 |
|
36 | | - /*************************************************/ |
37 | | - /* scribbly Toggle */ |
38 | | - /*************************************************/ |
39 | | - |
40 | | - debug ("Built UI. Lets do connects and binds"); |
41 | | - |
42 | | - var scribbly_box = new Jorts.SettingsSwitch ( |
43 | | - _("Make unfocused notes unreadable"), |
44 | | - _("If enabled, unfocused sticky notes become unreadable to protect their content from peeking eyes (Ctrl+H)"), |
45 | | - "scribbly-mode-active"); |
46 | | - |
47 | | - settingsbox.append (scribbly_box); |
48 | | - |
49 | | - |
50 | | - /*************************************************/ |
51 | | - /* hidebar Toggle */ |
52 | | - /*************************************************/ |
53 | | - |
54 | | - var hidebar_box = new Jorts.SettingsSwitch ( |
55 | | - _("Hide buttons"), |
56 | | - _("If enabled, hides the bottom bar in sticky notes. Keyboard shortcuts will still function (Ctrl+T)"), |
57 | | - "hide-bar"); |
58 | | - |
59 | | - settingsbox.append (hidebar_box); |
60 | | - |
61 | 36 |
|
62 | 37 | /***************************************/ |
63 | 38 | /* lists */ |
|
69 | 44 | halign = Gtk.Align.END, |
70 | 45 | hexpand = false, |
71 | 46 | valign = Gtk.Align.CENTER, |
72 | | - width_request = 15 |
| 47 | + max_width_chars = 5 |
73 | 48 | }; |
74 | 49 |
|
75 | 50 | var list_label = new Granite.HeaderLabel (_("List item symbol")) { |
76 | 51 | mnemonic_widget = list_entry, |
77 | | - secondary_text = _("Symbol by which to begin each list item") |
| 52 | + secondary_text = _("Prefix by which to begin each item in a list"), |
| 53 | + hexpand = true |
78 | 54 | }; |
79 | 55 |
|
80 | 56 | lists_box.append (list_label); |
|
89 | 65 | settingsbox.append (lists_box); |
90 | 66 |
|
91 | 67 |
|
| 68 | + /*************************************************/ |
| 69 | + /* scribbly Toggle */ |
| 70 | + /*************************************************/ |
| 71 | + |
| 72 | + debug ("Built UI. Lets do connects and binds"); |
| 73 | + |
| 74 | + var scribbly_box = new Jorts.SettingsSwitch ( |
| 75 | + _("Make unfocused notes unreadable"), |
| 76 | + _("If enabled, unfocused sticky notes become unreadable to protect their content from peeking eyes (Ctrl+H)"), |
| 77 | + "scribbly-mode-active"); |
| 78 | + |
| 79 | + settingsbox.append (scribbly_box); |
| 80 | + |
| 81 | + |
| 82 | + /*************************************************/ |
| 83 | + /* hidebar Toggle */ |
| 84 | + /*************************************************/ |
| 85 | + |
| 86 | + var hidebar_box = new Jorts.SettingsSwitch ( |
| 87 | + _("Hide buttons"), |
| 88 | + _("If enabled, hides the bottom bar in sticky notes. Keyboard shortcuts will still function (Ctrl+T)"), |
| 89 | + "hide-bar"); |
| 90 | + |
| 91 | + settingsbox.append (hidebar_box); |
| 92 | + |
92 | 93 |
|
93 | 94 | /****************************************************/ |
94 | 95 | /* Autostart Request */ |
|
142 | 143 | var actionbar = new Gtk.CenterBox () { |
143 | 144 | margin_start = 5, |
144 | 145 | margin_end = 5, |
145 | | - valign = Gtk.Align.END |
| 146 | + valign = Gtk.Align.END, |
| 147 | + hexpand = true, |
| 148 | + vexpand = false |
146 | 149 | }; |
147 | | - actionbar.set_hexpand (true); |
148 | | - actionbar.set_vexpand (false); |
149 | 150 |
|
150 | 151 | // Monies? |
151 | 152 | var support_button = new Gtk.LinkButton.with_label ( |
|
162 | 163 | _("Close preferences") |
163 | 164 | ) |
164 | 165 | }; |
165 | | - actionbar.end_widget = close_button; |
166 | 166 |
|
167 | | - var reset = new Gtk.Button.from_icon_name ("system-reboot") { |
168 | | - tooltip_markup = _("Reset all settings to defaults") |
| 167 | + var reset = new Gtk.Button.from_icon_name ("system-reboot-symbolic") { |
| 168 | + tooltip_markup = _("Reset all settings to defaults"), |
| 169 | + valign = Gtk.Align.CENTER |
169 | 170 | }; |
170 | 171 | reset.clicked.connect (on_reset); |
171 | 172 |
|
| 173 | + var end_box = new Gtk.Box (HORIZONTAL, 5); |
| 174 | + end_box.append (reset); |
| 175 | + end_box.append (close_button); |
| 176 | + actionbar.end_widget = end_box; |
172 | 177 |
|
173 | 178 | append (settingsbox); |
174 | 179 | append (actionbar); |
|
177 | 182 | private void on_reset () { |
178 | 183 | debug ("Resetting settings…"); |
179 | 184 |
|
180 | | - string[] keys = {"scribbly-mode-active", "hide-bar"}; |
| 185 | + string[] keys = {"scribbly-mode-active", "hide-bar", "list-item-start"}; |
181 | 186 | foreach (var key in keys) { |
182 | 187 | Application.gsettings.reset (key); |
183 | 188 | } |
184 | 189 |
|
185 | 190 | #if !WINDOWS |
186 | 191 | Jorts.Utils.autostart_remove (); |
| 192 | + toast.send_notification (); |
187 | 193 | #endif |
188 | 194 | } |
189 | 195 | } |
0 commit comments