mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
ssd: use dynamic titlebar height based on font size and padding
This commit is contained in:
parent
3bb44fc9f2
commit
e4f1f9a975
9 changed files with 23 additions and 18 deletions
|
|
@ -13,13 +13,12 @@
|
|||
#include "theme.h"
|
||||
#include "ssd.h"
|
||||
|
||||
/* TODO: use theme->title_height instead of SSD_HEIGHT */
|
||||
struct border
|
||||
ssd_thickness(struct view *view)
|
||||
{
|
||||
struct theme *theme = view->server->theme;
|
||||
struct border border = {
|
||||
.top = SSD_HEIGHT,
|
||||
.top = theme->title_height,
|
||||
.bottom = theme->border_width,
|
||||
.left = theme->border_width,
|
||||
.right = theme->border_width,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue