mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
config: Add support for font slant and weight
This commit is contained in:
parent
1fafb89cba
commit
07a83c19f0
12 changed files with 126 additions and 98 deletions
|
|
@ -473,11 +473,8 @@ create_corners(struct theme *theme)
|
|||
static void
|
||||
post_processing(struct theme *theme)
|
||||
{
|
||||
struct font font = {
|
||||
.name = rc.font_name_activewindow,
|
||||
.size = rc.font_size_activewindow,
|
||||
};
|
||||
theme->title_height = font_height(&font) + 2 * theme->padding_height;
|
||||
theme->title_height = font_height(&rc.font_activewindow)
|
||||
+ 2 * theme->padding_height;
|
||||
|
||||
if (rc.corner_radius >= theme->title_height) {
|
||||
theme->title_height = rc.corner_radius + 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue