|
14 | 14 | * Reports to the NoteManager for saving |
15 | 15 | */ |
16 | 16 | public class Jorts.StickyNoteWindow : Gtk.ApplicationWindow { |
17 | | - public Gtk.Settings gtk_settings; |
18 | 17 |
|
19 | 18 | public Jorts.NoteView view; |
20 | 19 | public PopoverView popover; |
@@ -83,8 +82,6 @@ public class Jorts.StickyNoteWindow : Gtk.ApplicationWindow { |
83 | 82 | actions.add_action_entries (ACTION_ENTRIES, this); |
84 | 83 | insert_action_group ("app", actions); |
85 | 84 |
|
86 | | - gtk_settings = Gtk.Settings.get_default (); |
87 | | - |
88 | 85 | add_css_class ("rounded"); |
89 | 86 | title = "" + _(" - Jorts"); |
90 | 87 |
|
@@ -124,9 +121,6 @@ public class Jorts.StickyNoteWindow : Gtk.ApplicationWindow { |
124 | 121 | view.textview.buffer.changed.connect (has_changed); |
125 | 122 | popover.zoom_changed.connect (zoomcontroller.zoom_changed); |
126 | 123 |
|
127 | | - // Use the color theme of this sticky note when focused |
128 | | - this.notify["is-active"].connect (on_focus_changed); |
129 | | - |
130 | 124 | // Respect animation settings for showing ui elements |
131 | 125 | if (Gtk.Settings.get_default ().gtk_enable_animations && (!Application.gsettings.get_boolean ("hide-bar"))) { |
132 | 126 | show.connect_after (delayed_show); |
@@ -168,19 +162,6 @@ public class Jorts.StickyNoteWindow : Gtk.ApplicationWindow { |
168 | 162 | changed (); |
169 | 163 | } |
170 | 164 |
|
171 | | - /** |
172 | | - * Changes the stylesheet accents to the notes color |
173 | | - * Add or remove the Redacted font if the setting is active |
174 | | - */ |
175 | | - private void on_focus_changed () { |
176 | | - debug ("Focus changed!"); |
177 | | - |
178 | | - if (this.is_active) { |
179 | | - var stylesheet = "io.elementary.stylesheet." + popover.color.to_string ().ascii_down (); |
180 | | - gtk_settings.gtk_theme_name = stylesheet; |
181 | | - } |
182 | | - } |
183 | | - |
184 | 165 | /** |
185 | 166 | * Package the note into a NoteData and pass it back. |
186 | 167 | * Used by NoteManager to pass all informations conveniently for storage |
|
0 commit comments