fix CSS selectors for GTK >= 3.20 (fixes #11)
This commit is contained in:
parent
0ac3b3f2da
commit
14a016dd1b
1 changed files with 5 additions and 3 deletions
|
@ -149,16 +149,18 @@ class Window(Gtk.ApplicationWindow):
|
||||||
self._header_bar.set_sensitive(False, False)
|
self._header_bar.set_sensitive(False, False)
|
||||||
styleProvider = Gtk.CssProvider()
|
styleProvider = Gtk.CssProvider()
|
||||||
styleProvider.load_from_data(b"""
|
styleProvider.load_from_data(b"""
|
||||||
GtkWidget.bg-texture {
|
.bg-texture {
|
||||||
box-shadow:inset 4px 4px 10px rgba(0,0,0,0.3);
|
box-shadow:inset 4px 4px 10px rgba(0,0,0,0.3);
|
||||||
background-image:url('data/noise-texture.png');
|
background-image:url('data/noise-texture.png');
|
||||||
}
|
}
|
||||||
GtkWidget.no-bg {
|
.no-bg {
|
||||||
background:none;
|
background:none;
|
||||||
}
|
}
|
||||||
GtkWidget.no-border {
|
.no-border {
|
||||||
border:none;
|
border:none;
|
||||||
}
|
}
|
||||||
|
iconview.view:selected,
|
||||||
|
iconview.view:selected:focus,
|
||||||
GtkIconView.cell:selected,
|
GtkIconView.cell:selected,
|
||||||
GtkIconView.cell:selected:focus {
|
GtkIconView.cell:selected:focus {
|
||||||
background-color:@theme_selected_bg_color;
|
background-color:@theme_selected_bg_color;
|
||||||
|
|
Loading…
Reference in a new issue