Commit 8c443d24 authored by Jens Georg's avatar Jens Georg Committed by Jens Georg

Replace override_background with CSS

parent eae3fa56
textview.shotwell-static text {
background-color: @theme_unfocused_bg_color;
}
......@@ -86,5 +86,6 @@
<file>icons/videos-page.png</file>
<file>icons/zoom-in.png</file>
<file>icons/zoom-out.png</file>
<file>misc/org.gnome.Shotwell.css</file>
</gresource>
</gresources>
......@@ -28,9 +28,7 @@ private abstract class Properties : Gtk.Grid {
// makes sense during editing. In this instance we only *show*
// the content and thus want that the parent's background color
// is inherited to the TextView
Gtk.StyleContext context = info_scroll.get_style_context();
view.override_background_color (Gtk.StateFlags.NORMAL,
context.get_background_color(Gtk.StateFlags.NORMAL));
view.get_style_context().add_class("shotwell-static");
view.set_wrap_mode(Gtk.WrapMode.WORD);
view.set_cursor_visible(false);
view.set_editable(false);
......
......@@ -361,6 +361,10 @@ void main(string[] args) {
AppDirs.terminate();
return;
}
var provider = new Gtk.CssProvider();
provider.load_from_resource("/org/gnome/Shotwell/misc/org.gnome.Shotwell.css");
Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(), provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
if (CommandlineOptions.show_version) {
if (Resources.GIT_VERSION != null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment