1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

Update small part of doc. set hadle-color on scrollbar in default theme.

This commit is contained in:
Dave Davenport 2017-09-09 22:09:02 +02:00
parent 131dd56522
commit 97467fceff
5 changed files with 18 additions and 13 deletions

View file

@ -96,6 +96,7 @@
#scrollbar {
width: 4px ;
border: 0;
handle-color: @normal-foreground;
handle-width: 8px ;
padding: 0;
}

View file

@ -97,6 +97,7 @@
#scrollbar {
width: 4px ;
border: 0;
handle-color: @normal-foreground;
handle-width: 8px ;
padding: 0;
}

View file

@ -574,10 +574,10 @@ The following properties are currently supported:
### scrollbar:
* **foreground**: color
* **handle-width**: distance
* **handle-color**: color
* **foreground**: color
* **background-color**: color
* **handle-width**: distance
* **handle-color**: color
* **border-color**: color
### box:
@ -636,24 +636,27 @@ The current layout of **rofi** is structured as follows:
|------------------------------------------------------------------------------------|
| #window {BOX:vertical} |
| |-------------------------------------------------------------------------------| |
| | #window.mainbox {BOX:vertical} | |
| | #mainbox {BOX:vertical} | |
| | |---------------------------------------------------------------------------| | |
| | | #window.mainbox.inputbar {BOX:horizontal} | | |
| | | |--------| |-------------------------------------------------------| |--| | | |
| | | | prompt | | entry | |ci| | | |
| | | |--------| |-------------------------------------------------------| |--| | | |
| | | #inputbar {BOX:horizontal} | | |
| | | |---------| |-----------------------------------------------------| |---| | | |
| | | | #prompt | | #entry | |#ci| | | |
| | | |---------| |-----------------------------------------------------| |---| | | |
| | |---------------------------------------------------------------------------| | |
| | | |
| | |---------------------------------------------------------------------------| | |
| | | #window.mainbox.message | | |
| | | #message | | |
| | | |-----------------------------------------------------------------------| | | |
| | | | #textbox | | | |
| | | |-----------------------------------------------------------------------| | | |
| | |---------------------------------------------------------------------------| | |
| | | |
| | |-----------------------------------------------------------------------------| |
| | | #window.mainbox.listview | |
| | | #listview | |
| | |-----------------------------------------------------------------------------| |
| | | |
| | |---------------------------------------------------------------------------| | |
| | | #window.mainbox.sidebar {BOX:horizontal} | | |
| | | #sidebar {BOX:horizontal} | | |
| | | |---------------| |---------------| |--------------| |---------------| | | |
| | | | Button | | Button | | Button | | Button | | | |
| | | |---------------| |---------------| |--------------| |---------------| | | |

View file

@ -127,6 +127,7 @@ const char *default_theme =
" border: 0;"
" width: 4px;"
" padding: 0;"
" handle-color: @normal-foreground;"
"}"
"#sidebar {"
" border: 2px dash 0px 0px ;"

View file

@ -176,7 +176,6 @@ static void scrollbar_draw ( widget *wid, cairo_t *draw )
// Never go out of bar.
height = MAX ( 2, height );
// Cap length;
rofi_theme_get_color ( WIDGET ( sb ), "foreground", draw );
rofi_theme_get_color ( WIDGET ( sb ), "handle-color", draw );
cairo_rectangle ( draw,