mirror of
https://github.com/labwc/labwc.git
synced 2026-04-18 06:46:46 -04:00
tree-wide: use rc.theme instead of server.theme
Having two global pointers to the same struct is redundant.
This commit is contained in:
parent
9550bccef2
commit
d4ad27e636
18 changed files with 46 additions and 52 deletions
|
|
@ -32,7 +32,7 @@ create_fields_scene(struct view *view,
|
|||
struct wlr_scene_tree *parent, const float *text_color,
|
||||
const float *bg_color, int field_widths_sum, int x, int y)
|
||||
{
|
||||
struct theme *theme = server.theme;
|
||||
struct theme *theme = rc.theme;
|
||||
struct window_switcher_classic_theme *switcher_theme =
|
||||
&theme->osd_window_switcher_classic;
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ static void
|
|||
cycle_osd_classic_init(struct cycle_osd_output *osd_output)
|
||||
{
|
||||
struct output *output = osd_output->output;
|
||||
struct theme *theme = server.theme;
|
||||
struct theme *theme = rc.theme;
|
||||
struct window_switcher_classic_theme *switcher_theme =
|
||||
&theme->osd_window_switcher_classic;
|
||||
int padding = theme->osd_border_width + switcher_theme->padding;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue