screensaver: add optional colored property

This commit is contained in:
defans
2016-01-07 20:47:15 +01:00
committed by Thilo Graf
parent 19d33dfb98
commit 0f2c73aed3
6 changed files with 37 additions and 4 deletions

View File

@@ -46,11 +46,21 @@ class CScreenSaver : public sigc::trackable
bool ReadDir();
void paint();
union u_color {
struct s_color {
uint8_t b, g, r, a;
} uc_color;
unsigned int i_color;
};
u_color clr;
public:
enum
{
SCR_MODE_IMAGE,
SCR_MODE_CLOCK
SCR_MODE_CLOCK,
SCR_MODE_CLOCK_COLOR
};
CScreenSaver();
~CScreenSaver();