theme: Use a matching layout theme for any widget theme

Dedicated styling is now possible for themes which have a corresponding style-theme.css file. Adwaita:dark gets one, whereas other themes use the new generic fallback theme.
This commit is contained in:
Dorota Czaplejewicz
2019-11-18 20:16:29 +00:00
parent 3aec821f92
commit 59f6173282
7 changed files with 215 additions and 20 deletions

View File

@ -26,6 +26,7 @@
#include "eek-keyboard.h"
#include "eek-renderer.h"
#include "src/style.h"
enum {
PROP_0,
@ -623,10 +624,7 @@ eek_renderer_init (EekRenderer *self)
gtk_icon_theme_add_resource_path (theme, "/sm/puri/squeekboard/icons");
/* Create a default CSS provider and load a style sheet */
priv->css_provider = gtk_css_provider_new ();
gtk_css_provider_load_from_resource (priv->css_provider,
"/sm/puri/squeekboard/style.css");
priv->css_provider = squeek_load_style();
}
static void