mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
Port our imported parts of Mx to ShellTheme
ShellTheme replaces both StStyle and ccss_stylesheet_t. The interface StStylable is replaced by usage of ShellThemeNode. A concrete node class allows some significant optimizations of property inheritance that would have been much more difficult to achieve with the highly abstract pair of StStylable and ccss_node_t. Some operations that were previously on StStylable (like the ::style-changed signal) are directly on NtkWidget. Custom properties are no longer registered as param-specs; instead you call directly into shell theme node to look up a length or color: shell_theme_node_get_length (theme_node, "border-spacing", FALSE, &spacing); The dependency on libccss is dropped, while preserving all existing functionality and adding proper parsing and inheritance of font properties and proper inheritance for the 'color' property. Some more javascript tests for CSS functionality are added; workarounds for a CSS bug where *.some-class was needed instead of .some-class are removed. https://bugzilla.gnome.org/show_bug.cgi?id=595990
This commit is contained in:
parent
e91e8e993d
commit
a9fd350396
24 changed files with 473 additions and 2554 deletions
|
|
@ -25,38 +25,38 @@ StScrollBar
|
|||
|
||||
StScrollView
|
||||
{
|
||||
scrollbar-width: 16;
|
||||
scrollbar-height: 16;
|
||||
scrollbar-width: 16px;
|
||||
scrollbar-height: 16px;
|
||||
}
|
||||
|
||||
StButton#up-stepper
|
||||
{
|
||||
border-image: url("file://scroll-button-up.png") 5;
|
||||
-st-background-image: url("scroll-button-up.png") 5px;
|
||||
}
|
||||
|
||||
StButton#up-stepper:hover,
|
||||
StButton#up-stepper:active
|
||||
{
|
||||
border-image: url("file://scroll-button-up-hover.png") 5;
|
||||
-st-background-image: url("scroll-button-up-hover.png") 5px;
|
||||
}
|
||||
|
||||
StButton#down-stepper
|
||||
{
|
||||
border-image: url("file://scroll-button-down.png") 5;
|
||||
-st-background-image: url("scroll-button-down.png") 5px;
|
||||
}
|
||||
|
||||
StButton#down-stepper:hover,
|
||||
StButton#down-stepper:active
|
||||
{
|
||||
border-image: url("file://scroll-button-down-hover.png") 5;
|
||||
-st-background-image: url("scroll-button-down-hover.png") 5px;
|
||||
}
|
||||
|
||||
StScrollBar StButton#vhandle
|
||||
{
|
||||
border-image: url("file://scroll-vhandle.png") 5;
|
||||
-st-background-image: url("scroll-vhandle.png") 5px;
|
||||
}
|
||||
|
||||
StScrollBar StButton#vhandle:hover
|
||||
{
|
||||
border-image: url("file://scroll-vhandle.png") 5;
|
||||
-st-background-image: url("scroll-vhandle.png") 5px;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue