Skip to content

Commit 71c0d6c

Browse files
committed
retire old themer service as we now statically do the stylesheets
1 parent b22b185 commit 71c0d6c

File tree

4 files changed

+15
-51
lines changed

4 files changed

+15
-51
lines changed

po/POTFILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ src/Widgets/PopoverWidgets/ColorBox.vala
77
src/Widgets/PopoverWidgets/MonospaceBox.vala
88
src/Widgets/PopoverWidgets/ZoomBox.vala
99
src/Objects/Themes.vala
10-
src/Utils/ZoomConvert.vala
1110
src/Utils/Random.vala
1211
src/Utils/Libportal.vala
1312
src/Views/PreferencesView.vala

src/Application.vala

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,21 @@ Please wait while the app remembers all the things...
144144

145145

146146
// build all the stylesheets
147-
Jorts.Themer.init_all_themes ();
147+
var app_provider = new Gtk.CssProvider ();
148+
app_provider.load_from_resource ("/io/github/ellie_commons/jorts/Application.css");
149+
Gtk.StyleContext.add_provider_for_display (
150+
Gdk.Display.get_default (),
151+
app_provider,
152+
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION + 1
153+
);
154+
155+
var theme_provider = new Gtk.CssProvider ();
156+
theme_provider.load_from_resource ("/io/github/ellie_commons/jorts/Themes.css");
157+
Gtk.StyleContext.add_provider_for_display (
158+
Gdk.Display.get_default (),
159+
theme_provider,
160+
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION + 1
161+
);
148162
}
149163

150164
/*************************************************/

src/Services/Themer.vala

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ sources = files (
99
'Services' / 'Constants.vala',
1010
'Services' / 'Storage.vala',
1111
'Services' / 'NoteManager.vala',
12-
'Services' / 'Themer.vala',
1312
'Services' / 'ZoomController.vala',
1413

1514
'Widgets' / 'EditableLabel.vala',

0 commit comments

Comments
 (0)