ssd: use dynamic titlebar height based on font size and padding

This commit is contained in:
Consolatis 2022-03-09 05:40:54 +01:00 committed by Johan Malm
parent 3bb44fc9f2
commit e4f1f9a975
9 changed files with 23 additions and 18 deletions

View file

@ -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,