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

@ -8,6 +8,7 @@
#include "common/buf.h"
#include "config/libinput.h"
#include "theme.h"
struct rcxml {
@ -29,6 +30,8 @@ struct rcxml {
int font_size_activewindow;
int font_size_menuitem;
int font_size_osd;
/* Pointer to current theme */
struct theme *theme;
/* keyboard */
int repeat_rate;

View file

@ -5,7 +5,6 @@
#include "buffer.h"
#include <wlr/util/box.h>
#define SSD_HEIGHT 26 /* TODO: use theme->title_height */
#define BUTTON_COUNT 4
#define BUTTON_WIDTH 26
#define EXTENDED_AREA 8