mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
menu: add title theme options (#2097)
Add theme options `menu.title.text.color` and `menu.title.text.justify`.
Add font place MenuHeader: `<font place="MenuHeader">`
Add `Oblique` font style
```
<theme>
<font>
<slant>Oblique</slant>
</font>
</theme>
```
This commit is contained in:
parent
6564e1bc8d
commit
8fda9968e6
12 changed files with 79 additions and 7 deletions
|
|
@ -6,7 +6,8 @@ struct lab_data_buffer;
|
|||
|
||||
enum font_slant {
|
||||
FONT_SLANT_NORMAL = 0,
|
||||
FONT_SLANT_ITALIC
|
||||
FONT_SLANT_ITALIC,
|
||||
FONT_SLANT_OBLIQUE
|
||||
};
|
||||
|
||||
enum font_weight {
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ struct rcxml {
|
|||
bool shadows_enabled;
|
||||
struct font font_activewindow;
|
||||
struct font font_inactivewindow;
|
||||
struct font font_menuheader;
|
||||
struct font font_menuitem;
|
||||
struct font font_osd;
|
||||
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ struct theme {
|
|||
float window_active_label_text_color[4];
|
||||
float window_inactive_label_text_color[4];
|
||||
enum lab_justification window_label_text_justify;
|
||||
enum lab_justification menu_title_text_justify;
|
||||
|
||||
/* button width */
|
||||
int window_button_width;
|
||||
|
|
@ -78,6 +79,8 @@ struct theme {
|
|||
|
||||
float menu_title_bg_color[4];
|
||||
|
||||
float menu_title_text_color[4];
|
||||
|
||||
int osd_border_width;
|
||||
|
||||
float osd_bg_color[4];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue