mirror of
https://github.com/davatorium/rofi.git
synced 2025-01-27 15:25:24 -05:00
Fix cleanup lexer, add properties to theme documentation.
This commit is contained in:
parent
a8a8906adc
commit
d8b877147c
3 changed files with 47 additions and 13 deletions
|
@ -128,3 +128,38 @@ Value supports the following formats:
|
||||||
* `rgb\([0-9]{1,3},[0-9]{1,3}, [0-9]{1,3}\)`: css style rgb color.
|
* `rgb\([0-9]{1,3},[0-9]{1,3}, [0-9]{1,3}\)`: css style rgb color.
|
||||||
|
|
||||||
Each property is closed by a semi-colon `;`;
|
Each property is closed by a semi-colon `;`;
|
||||||
|
|
||||||
|
The following properties are currently supports:
|
||||||
|
|
||||||
|
* window:
|
||||||
|
* font: string
|
||||||
|
* background: color
|
||||||
|
* foreground: color
|
||||||
|
* border-width: integer
|
||||||
|
* padding: integer
|
||||||
|
* border-width: integer
|
||||||
|
* padding: integer
|
||||||
|
* border-width: integer
|
||||||
|
|
||||||
|
* separator:
|
||||||
|
* line-style: string
|
||||||
|
* foreground: color
|
||||||
|
|
||||||
|
* scrollbar
|
||||||
|
* foreground: color
|
||||||
|
|
||||||
|
* box
|
||||||
|
* padding: integer
|
||||||
|
|
||||||
|
* textbox:
|
||||||
|
* background: color
|
||||||
|
* foreground: color
|
||||||
|
|
||||||
|
* listview:
|
||||||
|
* padding: integer
|
||||||
|
* lines: integer
|
||||||
|
* columns: integer
|
||||||
|
* fixed-height: boolean
|
||||||
|
* scrollbar: boolean
|
||||||
|
* scrollbar-width: integer
|
||||||
|
* cycle: boolean
|
||||||
|
|
|
@ -35,7 +35,6 @@ YY_LLOC_START
|
||||||
%}
|
%}
|
||||||
%{
|
%{
|
||||||
if ( queue == NULL ){
|
if ( queue == NULL ){
|
||||||
printf("queue create\n");
|
|
||||||
queue = g_queue_new ( );
|
queue = g_queue_new ( );
|
||||||
}
|
}
|
||||||
%}
|
%}
|
||||||
|
@ -153,9 +152,8 @@ printf("queue create\n");
|
||||||
};
|
};
|
||||||
|
|
||||||
<INITIAL><<EOF>> {
|
<INITIAL><<EOF>> {
|
||||||
yyterminate();
|
|
||||||
printf("Queue free: %d\n", g_queue_get_length(queue));;
|
|
||||||
g_queue_free ( queue );
|
g_queue_free ( queue );
|
||||||
|
yyterminate();
|
||||||
}
|
}
|
||||||
<*>. {
|
<*>. {
|
||||||
fprintf(stderr, "Invalid character: '%c'\n", *yytext);
|
fprintf(stderr, "Invalid character: '%c'\n", *yytext);
|
||||||
|
|
|
@ -902,8 +902,9 @@ int main ( int argc, char *argv[] )
|
||||||
config_parse_cmd_options_dynamic ( );
|
config_parse_cmd_options_dynamic ( );
|
||||||
|
|
||||||
if ( config.theme ) {
|
if ( config.theme ) {
|
||||||
|
TICK_N ( "Parse theme" );
|
||||||
rofi_theme_parse_file ( config.theme );
|
rofi_theme_parse_file ( config.theme );
|
||||||
// rofi_theme_print ( rofi_theme );
|
TICK_N ( "Parsed theme" );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dump.
|
// Dump.
|
||||||
|
|
Loading…
Add table
Reference in a new issue