mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
l4l: add some more colors for theme
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0d60c9407c
Author: TangoCash <eric@loxat.de>
Date: 2018-12-24 (Mon, 24 Dec 2018)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -99,6 +99,10 @@ extern CPictureViewer *g_PicViewer;
|
|||||||
#define FGCOLOR LCD_DATADIR "fgcolor"
|
#define FGCOLOR LCD_DATADIR "fgcolor"
|
||||||
#define BGCOLOR LCD_DATADIR "bgcolor"
|
#define BGCOLOR LCD_DATADIR "bgcolor"
|
||||||
|
|
||||||
|
#define FCOLOR1 LCD_DATADIR "fcolor1"
|
||||||
|
#define FCOLOR2 LCD_DATADIR "fcolor2"
|
||||||
|
#define PBCOLOR LCD_DATADIR "pbcolor"
|
||||||
|
|
||||||
#define FLAG_LCD4LINUX "/tmp/.lcd4linux"
|
#define FLAG_LCD4LINUX "/tmp/.lcd4linux"
|
||||||
#define PIDFILE "/var/run/lcd4linux.pid"
|
#define PIDFILE "/var/run/lcd4linux.pid"
|
||||||
|
|
||||||
@@ -290,6 +294,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------------------------------------------------------- */
|
/* ----------------------------------------------------------------- */
|
||||||
|
|
||||||
std::string fgcolor = hexStr(t.infobar_Text_red)
|
std::string fgcolor = hexStr(t.infobar_Text_red)
|
||||||
+ hexStr(t.infobar_Text_green)
|
+ hexStr(t.infobar_Text_green)
|
||||||
+ hexStr(t.infobar_Text_blue)
|
+ hexStr(t.infobar_Text_blue)
|
||||||
@@ -316,6 +321,48 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
|
|||||||
|
|
||||||
/* ----------------------------------------------------------------- */
|
/* ----------------------------------------------------------------- */
|
||||||
|
|
||||||
|
std::string fcolor1 = hexStr(t.infobar_Text_red)
|
||||||
|
+ hexStr(t.infobar_Text_green)
|
||||||
|
+ hexStr(t.infobar_Text_blue)
|
||||||
|
+ hexStr(t.infobar_Text_alpha);
|
||||||
|
|
||||||
|
if (m_fcolor1.compare(fcolor1))
|
||||||
|
{
|
||||||
|
WriteFile(FCOLOR1, fcolor1);
|
||||||
|
m_fcolor1 = fcolor1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ----------------------------------------------------------------- */
|
||||||
|
|
||||||
|
std::string fcolor2 = hexStr(t.colored_events_red)
|
||||||
|
+ hexStr(t.colored_events_green)
|
||||||
|
+ hexStr(t.colored_events_blue)
|
||||||
|
+ hexStr(t.colored_events_alpha);
|
||||||
|
|
||||||
|
if (!t.colored_events_infobar)
|
||||||
|
fcolor2 = fcolor1;
|
||||||
|
|
||||||
|
if (m_fcolor2.compare(fcolor2))
|
||||||
|
{
|
||||||
|
WriteFile(FCOLOR2, fcolor2);
|
||||||
|
m_fcolor2 = fcolor2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ----------------------------------------------------------------- */
|
||||||
|
|
||||||
|
std::string pbcolor = hexStr(t.menu_Content_Selected_red)
|
||||||
|
+ hexStr(t.menu_Content_Selected_green)
|
||||||
|
+ hexStr(t.menu_Content_Selected_blue)
|
||||||
|
+ hexStrA2A(t.menu_Content_Selected_alpha);
|
||||||
|
|
||||||
|
if (m_pbcolor.compare(pbcolor))
|
||||||
|
{
|
||||||
|
WriteFile(PBCOLOR, pbcolor);
|
||||||
|
m_pbcolor = pbcolor;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ----------------------------------------------------------------- */
|
||||||
|
|
||||||
int Brightness = g_settings.lcd4l_brightness;
|
int Brightness = g_settings.lcd4l_brightness;
|
||||||
if (m_Brightness != Brightness)
|
if (m_Brightness != Brightness)
|
||||||
{
|
{
|
||||||
|
@@ -111,6 +111,9 @@ class CLCD4l
|
|||||||
std::string m_font;
|
std::string m_font;
|
||||||
std::string m_fgcolor;
|
std::string m_fgcolor;
|
||||||
std::string m_bgcolor;
|
std::string m_bgcolor;
|
||||||
|
std::string m_fcolor1;
|
||||||
|
std::string m_fcolor2;
|
||||||
|
std::string m_pbcolor;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user