mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05: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
|
|
@ -20,6 +20,9 @@ font_to_pango_desc(struct font *font)
|
|||
if (font->slant == FONT_SLANT_ITALIC) {
|
||||
pango_font_description_set_style(desc, PANGO_STYLE_ITALIC);
|
||||
}
|
||||
if (font->slant == FONT_SLANT_OBLIQUE) {
|
||||
pango_font_description_set_style(desc, PANGO_STYLE_OBLIQUE);
|
||||
}
|
||||
if (font->weight == FONT_WEIGHT_BOLD) {
|
||||
pango_font_description_set_weight(desc, PANGO_WEIGHT_BOLD);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue