Merge pull request #2088 from xi/titlelayout

theme: implement titleLayout
This commit is contained in:
Johan Malm 2024-08-21 19:20:34 +01:00 committed by GitHub
commit 228a74ca48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 261 additions and 179 deletions

View file

@ -14,6 +14,7 @@
#include "config/tablet-tool.h"
#include "config/libinput.h"
#include "resize-indicator.h"
#include "ssd.h"
#include "theme.h"
enum view_placement_policy {
@ -45,6 +46,11 @@ enum tiling_events_mode {
(LAB_TILING_EVENTS_REGION | LAB_TILING_EVENTS_EDGE),
};
struct title_button {
enum ssd_part_type type;
struct wl_list link;
};
struct usable_area_override {
struct border margin;
char *output;
@ -75,7 +81,11 @@ struct rcxml {
/* theme */
char *theme_name;
struct wl_list title_buttons_left;
struct wl_list title_buttons_right;
int corner_radius;
bool show_title;
bool title_layout_loaded;
bool ssd_keep_border;
bool shadows_enabled;
struct font font_activewindow;