Move magnifier settings into theme

This commit is contained in:
Simon Long 2024-05-03 15:22:18 +01:00
parent 15f35ed2ba
commit 19a57c6ea4
5 changed files with 62 additions and 79 deletions

View file

@ -41,12 +41,6 @@ struct usable_area_override {
struct wl_list link; /* struct rcxml.usable_area_overrides */
};
struct rgb_colour {
int r;
int g;
int b;
};
struct rcxml {
/* from command line */
char *config_dir;
@ -146,14 +140,6 @@ struct rcxml {
/* Menu */
unsigned int menu_ignore_button_release_period;
/* magnifier */
int mag_scale;
int mag_width;
int mag_height;
struct rgb_colour mag_border_col;
int mag_border_width;
bool mag_filter;
};
extern struct rcxml rc;

View file

@ -139,6 +139,14 @@ struct theme {
/* not set in rc.xml/themerc, but derived from font & padding_height */
int osd_window_switcher_item_height;
/* magnifier */
int mag_scale;
int mag_width;
int mag_height;
float mag_border_color[4];
int mag_border_width;
int mag_filter;
};
struct server;