From 60f1ca14088ce707b507b3791217bb4ef60d0823 Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Sat, 28 Sep 2019 12:09:54 +0000 Subject: [PATCH] style: Avoid conflict with GTK widget names GTK style provider loads the theme on top of the selected CSS file. To ignore the theme, element names must be different than the predefined ones. --- data/style.css | 6 +++--- eek/eek-renderer.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data/style.css b/data/style.css index ab90eaf1..14fbb965 100644 --- a/data/style.css +++ b/data/style.css @@ -1,10 +1,10 @@ -layout { +sq_view { background-color: rgba(0, 0, 0, 255); color: #ffffff; font-family: cantarell, sans-serif; } -button { +sq_button { color: #deddda; background: #464448; border-style: solid; @@ -13,7 +13,7 @@ button { border-radius: 3px; } -button:active { +sq_button:active { background: #545256; border-color: #716e78; } diff --git a/eek/eek-renderer.c b/eek/eek-renderer.c index d4c6c4bd..68f6acd6 100644 --- a/eek/eek-renderer.c +++ b/eek/eek-renderer.c @@ -578,7 +578,7 @@ static GType new_type(char *name) { static GType layout_type() { static GType type = 0; if (!type) { - type = new_type("layout"); + type = new_type("sq_view"); } return type; } @@ -586,7 +586,7 @@ static GType layout_type() { static GType button_type() { static GType type = 0; if (!type) { - type = new_type("button"); + type = new_type("sq_button"); } return type; }