Enhancement: Fixes #22, implement GtkTreeView styles

This commit is contained in:
Rory Fewell
2020-11-14 21:33:00 +00:00
parent 9f05a85bfc
commit 912cab5b30
7 changed files with 73 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

View File

@@ -0,0 +1,71 @@
/**
* treeview.scss - Tree View Widget Luna (Blue) Styles
*
* This source-code is part of Windows XP stuff for XFCE:
* <<https://www.oddmatics.uk>>
*
* Author(s): Rory Fewell <roryf@oddmatics.uk>
*/
treeview
{
-GtkTreeView-expander-size: 10;
background-color: #FFF;
&.view
{
&:selected
{
background-color: #ECE9D8;
&:focus
{
background-color: #316AC5;
color: #FFF;
}
}
&.expander
{
-gtk-icon-source: url("../Resources/treeview_expander_expand.png");
&:checked
{
-gtk-icon-source: url("../Resources/treeview_expander_collapse.png");
}
}
header button
{
background: #EBEADB;
border: none;
border-bottom-style: solid;
border-bottom-width: 3px;
border-image: url("../Resources/treeview_header_border.png") 0 0 3 0 stretch;
padding: 3px 7px 0px;
&:hover
{
background-color: #FFF;
border-image: url("../Resources/treeview_header_border_hover.png") 0 7 3 7 stretch;
border-style: none solid solid;
border-width: 0px 7px 3px;
padding-left: 0px;
padding-right: 0px;
}
&:active
{
background-color: #DEDFDA;
border-image: url("../Resources/treeview_header_border_press.png") 2 1 1 3 stretch;
border-style: solid;
border-width: 2px 1px 1px 3px;
padding: 1px 6px 2px 4px;
}
}
}
}

View File

@@ -20,4 +20,5 @@
@import "controls/scale";
@import "controls/scrollbar";
@import "controls/textview";
@import "controls/tooltip";
@import "controls/tooltip";
@import "controls/treeview";