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.
This commit is contained in:
Dorota Czaplejewicz
2019-09-28 12:09:54 +00:00
parent 5ef687a722
commit 60f1ca1408
2 changed files with 5 additions and 5 deletions

View File

@ -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;
}

View File

@ -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;
}