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:
parent
131dd56522
commit
97467fceff
5 changed files with 18 additions and 13 deletions
|
@ -96,6 +96,7 @@
|
|||
#scrollbar {
|
||||
width: 4px ;
|
||||
border: 0;
|
||||
handle-color: @normal-foreground;
|
||||
handle-width: 8px ;
|
||||
padding: 0;
|
||||
}
|
||||
|
|
|
@ -97,6 +97,7 @@
|
|||
#scrollbar {
|
||||
width: 4px ;
|
||||
border: 0;
|
||||
handle-color: @normal-foreground;
|
||||
handle-width: 8px ;
|
||||
padding: 0;
|
||||
}
|
||||
|
|
|
@ -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 | | | |
|
||||
| | | |---------------| |---------------| |--------------| |---------------| | | |
|
||||
|
|
|
@ -127,6 +127,7 @@ const char *default_theme =
|
|||
" border: 0;"
|
||||
" width: 4px;"
|
||||
" padding: 0;"
|
||||
" handle-color: @normal-foreground;"
|
||||
"}"
|
||||
"#sidebar {"
|
||||
" border: 2px dash 0px 0px ;"
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue