mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
[Theme] Change window layout for error dialog
This commit is contained in:
parent
ff9b0f5ccd
commit
a92bcc2818
7 changed files with 43 additions and 3 deletions
|
@ -139,3 +139,7 @@ textbox-prompt-colon {
|
||||||
margin: 0px 0.3000em 0.0000em 0.0000em ;
|
margin: 0px 0.3000em 0.0000em 0.0000em ;
|
||||||
text-color: inherit;
|
text-color: inherit;
|
||||||
}
|
}
|
||||||
|
error-message {
|
||||||
|
background-color: rgba ( 0, 0, 0, 0 % );
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
||||||
|
|
|
@ -139,3 +139,7 @@ textbox-prompt-colon {
|
||||||
margin: 0px 0.3000em 0.0000em 0.0000em ;
|
margin: 0px 0.3000em 0.0000em 0.0000em ;
|
||||||
text-color: inherit;
|
text-color: inherit;
|
||||||
}
|
}
|
||||||
|
error-message {
|
||||||
|
background-color: rgba ( 0, 0, 0, 0 % );
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
.\" generated with Ronn/v0.7.3
|
.\" generated with Ronn/v0.7.3
|
||||||
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
||||||
.
|
.
|
||||||
.TH "ROFI\-THEME\-SELECTOR" "1" "June 2018" "" ""
|
.TH "ROFI\-THEME\-SELECTOR" "1" "May 2018" "" ""
|
||||||
.
|
.
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
\fBrofi\-theme\-selector\fR \- Preview and apply themes for \fBrofi\fR
|
\fBrofi\-theme\-selector\fR \- Preview and apply themes for \fBrofi\fR
|
||||||
|
|
|
@ -1085,6 +1085,22 @@ The current layout of \fBrofi\fR is structured as follows:
|
||||||
.
|
.
|
||||||
.IP "" 0
|
.IP "" 0
|
||||||
.
|
.
|
||||||
|
.SS "Error message structure"
|
||||||
|
.
|
||||||
|
.nf
|
||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\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-|
|
||||||
|
.
|
||||||
|
.fi
|
||||||
|
.
|
||||||
.SS "Advanced layout"
|
.SS "Advanced layout"
|
||||||
The layout of \fBrofi\fR can be tweaked by packing the \'fixed\' widgets in a custom structure\.
|
The layout of \fBrofi\fR can be tweaked by packing the \'fixed\' widgets in a custom structure\.
|
||||||
.
|
.
|
||||||
|
|
|
@ -698,6 +698,22 @@ The current layout of **rofi** is structured as follows:
|
||||||
```
|
```
|
||||||
> ci is the case-indicator
|
> ci is the case-indicator
|
||||||
|
|
||||||
|
### Error message structure
|
||||||
|
|
||||||
|
```
|
||||||
|
|-----------------------------------------------------------------------------------|
|
||||||
|
| window {BOX:vertical} |
|
||||||
|
| |------------------------------------------------------------------------------| |
|
||||||
|
| | error-message {BOX:vertical} | |
|
||||||
|
| | |-------------------------------------------------------------------------| | |
|
||||||
|
| | | textbox | | |
|
||||||
|
| | |-------------------------------------------------------------------------| | |
|
||||||
|
| |------------------------------------------------------------------------------| |
|
||||||
|
|-----------------------------------------------------------------------------------|
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
### Advanced layout
|
### Advanced layout
|
||||||
|
|
||||||
The layout of **rofi** can be tweaked by packing the 'fixed' widgets in a custom structure.
|
The layout of **rofi** can be tweaked by packing the 'fixed' widgets in a custom structure.
|
||||||
|
|
|
@ -1765,7 +1765,7 @@ int rofi_view_error_dialog ( const char *msg, int markup )
|
||||||
state->finalize = process_result;
|
state->finalize = process_result;
|
||||||
|
|
||||||
state->main_window = box_create ( NULL, "window", ROFI_ORIENTATION_VERTICAL );
|
state->main_window = box_create ( NULL, "window", ROFI_ORIENTATION_VERTICAL );
|
||||||
box *box = box_create ( WIDGET ( state->main_window ), "message", ROFI_ORIENTATION_VERTICAL );
|
box *box = box_create ( WIDGET ( state->main_window ), "error-message", ROFI_ORIENTATION_VERTICAL );
|
||||||
box_add ( state->main_window, WIDGET ( box ), TRUE );
|
box_add ( state->main_window, WIDGET ( box ), TRUE );
|
||||||
state->text = textbox_create ( WIDGET ( box ), WIDGET_TYPE_TEXTBOX_TEXT, "textbox", ( TB_AUTOHEIGHT | TB_WRAP ) + ( ( markup ) ? TB_MARKUP : 0 ),
|
state->text = textbox_create ( WIDGET ( box ), WIDGET_TYPE_TEXTBOX_TEXT, "textbox", ( TB_AUTOHEIGHT | TB_WRAP ) + ( ( markup ) ? TB_MARKUP : 0 ),
|
||||||
NORMAL, ( msg != NULL ) ? msg : "", 0, 0 );
|
NORMAL, ( msg != NULL ) ? msg : "", 0, 0 );
|
||||||
|
|
|
@ -6,7 +6,7 @@ function create_fake_x ( )
|
||||||
{
|
{
|
||||||
export DISPLAY=":$1"
|
export DISPLAY=":$1"
|
||||||
echo -n "Starting fake X for display ${DISPLAY}: "
|
echo -n "Starting fake X for display ${DISPLAY}: "
|
||||||
Xvfb +extension XINERAMA +xinerama -screen 0 1280x1024x24 -screen 1 800x600x24 ${DISPLAY} &>$2-server.log &
|
Xvfb -nolisten tcp +extension XINERAMA +xinerama -screen 0 1280x1024x24 ${DISPLAY} &>$2-server.log &
|
||||||
XPID=$!
|
XPID=$!
|
||||||
echo "pid ${XPID}"
|
echo "pid ${XPID}"
|
||||||
sleep 1;
|
sleep 1;
|
||||||
|
|
Loading…
Reference in a new issue