Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Previewer/Internal.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ export default function Internal({
Gtk.StyleContext.add_provider_for_display(
output.get_display(),
css_provider,
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION,
// STYLE_PROVIDER_PRIORITY_THEME is 200; only values below that behave correctly
Gtk.STYLE_PROVIDER_PRIORITY_THEME - 1,
);
}

Expand Down
6 changes: 5 additions & 1 deletion src/Previewer/previewer.vala
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ namespace Workbench {
this.css_parser_error(error.message, (int)start.lines, (int)start.line_chars, (int)end.lines, (int)end.line_chars);
});
this.css.load_from_data (content.data);
Gtk.StyleContext.add_provider_for_display (Gdk.Display.get_default (), this.css , Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
Gtk.StyleContext.add_provider_for_display (
Gdk.Display.get_default (),
this.css,
// STYLE_PROVIDER_PRIORITY_THEME is 200; only values below that behave correctly
Gtk.STYLE_PROVIDER_PRIORITY_THEME - 1);
}

public void run (string filename, string uri) {
Expand Down