options: move OSD bar opts to a separate struct

Move them to a suboption so the suboption prefix can be
used.
This commit is contained in:
nanahi
2024-11-14 12:39:55 -05:00
committed by Kacper Michajłow
parent e056ad374f
commit 8612f802dd
5 changed files with 54 additions and 34 deletions

View File

@@ -163,8 +163,20 @@ struct osd_style_opts {
char *fonts_dir;
};
struct osd_bar_style_opts {
float align_x;
float align_y;
float w;
float h;
float outline_size;
float marker_scale;
float marker_min_size;
int marker_style;
};
extern const struct m_sub_options osd_style_conf;
extern const struct m_sub_options sub_style_conf;
extern const struct m_sub_options osd_bar_style_conf;
struct osd_state;
struct osd_object;