aboutsummaryrefslogtreecommitdiff
path: root/src/sdl/theme.h
blob: 36f75f2f658c133783f4dbee4095bc212ae2297a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef THEME_H
#define THEME_H

#include "text-style.h"
#include "bg-style.h"

typedef enum {
  TEXT_STYLE_TITLE,
  TEXT_STYLE_MOVES,
  TEXT_STYLE_HELP,
  TEXT_STYLE_SOLVE_WAIT,
  TEXT_STYLE_SOLVE_MOVES,
  TEXT_STYLE_LAST,
} text_style_id_t;

typedef enum {
  BG_STYLE_NORMAL,
  BG_STYLE_WON,
  BG_STYLE_LAST,
} bg_style_id_t;

typedef struct {
  text_style_t text_styles[TEXT_STYLE_LAST];
  bg_style_t bg_styles[BG_STYLE_LAST];
} theme_t;

const theme_t *theme_get_default();

const text_style_t *theme_get_text_style(
  const theme_t * const,
  const text_style_id_t
);

const bg_style_t *theme_get_bg_style(
  const theme_t * const,
  const bg_style_id_t
);

#endif /* THEME_H */