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:
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user