Add a custom css example

This commit is contained in:
Matthias Clasen
2012-05-25 22:03:47 -04:00
parent ebe4595cdb
commit 46cc815829
3 changed files with 93 additions and 1 deletions

24
demos/gtk-demo/fancy.css Normal file
View File

@ -0,0 +1,24 @@
GtkButton#fancy {
font-weight: bold;
background-image: linear-gradient(135deg, yellow, blue);
border-radius: 20px;
color: white;
}
GtkButton#fancy:hover {
font-weight: bold;
background-image: linear-gradient(135deg, blue, yellow);
border-radius: 20px;
color: white;
}
GtkButton#fancy:active {
font-weight: bold;
background-image: linear-gradient(yellow, yellow);
border-radius: 20px;
color: black;
}
GtkButton#fancy * {
color: inherit;
}