mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
Merge branch 'master' of https://github.com/tuxbox-neutrino/gui-neutrino into ni/tuxbox
Conflicts:
src/gui/color.h
Origin commit data
------------------
Branch: ni/coolstream
Commit: aaa3757e2e
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-04-22 (Sat, 22 Apr 2017)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -124,19 +124,22 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// some wrappers to get more readability
|
// some wrappers to get more readability
|
||||||
#define COL_FRAME COL_MENUCONTENT_PLUS_1 //NI
|
#define COL_FRAME COL_MENUCONTENT_PLUS_1 //NI
|
||||||
#define COL_FRAME_PLUS_0 COL_FRAME
|
#define COL_FRAME_PLUS_0 COL_FRAME
|
||||||
|
|
||||||
#define COL_SCROLLBAR COL_MENUCONTENT_PLUS_1
|
#define COL_SCROLLBAR COL_MENUCONTENT_PLUS_1
|
||||||
#define COL_SCROLLBAR_ACTIVE COL_MENUCONTENT_PLUS_3
|
#define COL_SCROLLBAR_PLUS_0 COL_SCROLLBAR
|
||||||
#define COL_SCROLLBAR_ACTIVE_PLUS_0 COL_SCROLLBAR_ACTIVE
|
#define COL_SCROLLBAR_ACTIVE COL_MENUCONTENT_PLUS_3
|
||||||
#define COL_SCROLLBAR_PASSIVE COL_MENUCONTENT_PLUS_2
|
#define COL_SCROLLBAR_ACTIVE_PLUS_0 COL_SCROLLBAR_ACTIVE
|
||||||
#define COL_SCROLLBAR_PASSIVE_PLUS_0 COL_SCROLLBAR_PASSIVE
|
#define COL_SCROLLBAR_PASSIVE COL_MENUCONTENT_PLUS_2
|
||||||
|
#define COL_SCROLLBAR_PASSIVE_PLUS_0 COL_SCROLLBAR_PASSIVE
|
||||||
|
|
||||||
//NI #define COL_PROGRESSBAR_ACTIVE COL_MENUCONTENT_PLUS_7
|
/* //NI
|
||||||
//NI #define COL_PROGRESSBAR_ACTIVE_PLUS_0 COL_PROGRESSBAR_ACTIVE
|
#define COL_PROGRESSBAR_ACTIVE COL_MENUCONTENT_PLUS_7
|
||||||
//NI #define COL_PROGRESSBAR_PASSIVE COL_MENUCONTENT_PLUS_1
|
#define COL_PROGRESSBAR_ACTIVE_PLUS_0 COL_PROGRESSBAR_ACTIVE
|
||||||
//NI #define COL_PROGRESSBAR_PASSIVE_PLUS_0 COL_PROGRESSBAR_PASSIVE
|
#define COL_PROGRESSBAR_PASSIVE COL_MENUCONTENT_PLUS_1
|
||||||
|
#define COL_PROGRESSBAR_PASSIVE_PLUS_0 COL_PROGRESSBAR_PASSIVE
|
||||||
|
*/
|
||||||
|
|
||||||
int convertSetupColor2RGB(unsigned char r, unsigned char g, unsigned char b);
|
int convertSetupColor2RGB(unsigned char r, unsigned char g, unsigned char b);
|
||||||
int convertSetupAlpha2Alpha(unsigned char alpha);
|
int convertSetupAlpha2Alpha(unsigned char alpha);
|
||||||
|
@@ -79,11 +79,11 @@ class CComponentsScrollBar : public CComponentsFrmChain
|
|||||||
* usual paraemters:
|
* usual paraemters:
|
||||||
* @param[in] parent optional, exepts type pointer to a parent CComponentsForm object, default NULL
|
* @param[in] parent optional, exepts type pointer to a parent CComponentsForm object, default NULL
|
||||||
* @param[in] shadow_mode optional, exepts type int defined by shadow mode enums, default CC_SHADOW_OFF
|
* @param[in] shadow_mode optional, exepts type int defined by shadow mode enums, default CC_SHADOW_OFF
|
||||||
* @param[in] color_frame optional, exepts type fb_pixel_t, default COL_SCROLLBAR
|
* @param[in] color_frame optional, exepts type fb_pixel_t, default COL_SCROLLBAR_PLUS_0
|
||||||
* @param[in] color_body optional, exepts type fb_pixel_t, default COL_SCROLLBAR
|
* @param[in] color_body optional, exepts type fb_pixel_t, default COL_SCROLLBAR_PLUS_0
|
||||||
* @param[in] color_shadow optional, exepts type fb_pixel_t, default COL_SHADOW_PLUS_0
|
* @param[in] color_shadow optional, exepts type fb_pixel_t, default COL_SHADOW_PLUS_0
|
||||||
* @param[in] color_select optional, exepts type fb_pixel_t, default COL_SCROLLBAR_ACTIVE
|
* @param[in] color_select optional, exepts type fb_pixel_t, default COL_SCROLLBAR_ACTIVE_PLUS_0
|
||||||
* @param[in] color_passive optional, exepts type fb_pixel_t, default COL_SCROLLBAR_PASSIVE
|
* @param[in] color_passive optional, exepts type fb_pixel_t, default COL_SCROLLBAR_PASSIVE_PLUS_0
|
||||||
*/
|
*/
|
||||||
CComponentsScrollBar( const int &x_pos,
|
CComponentsScrollBar( const int &x_pos,
|
||||||
const int &y_pos,
|
const int &y_pos,
|
||||||
@@ -92,11 +92,11 @@ class CComponentsScrollBar : public CComponentsFrmChain
|
|||||||
const int& count = 1,
|
const int& count = 1,
|
||||||
CComponentsForm *parent = NULL,
|
CComponentsForm *parent = NULL,
|
||||||
int shadow_mode = CC_SHADOW_OFF,
|
int shadow_mode = CC_SHADOW_OFF,
|
||||||
fb_pixel_t color_frame = COL_SCROLLBAR,
|
fb_pixel_t color_frame = COL_SCROLLBAR_PLUS_0,
|
||||||
fb_pixel_t color_body = COL_SCROLLBAR,
|
fb_pixel_t color_body = COL_SCROLLBAR_PLUS_0,
|
||||||
fb_pixel_t color_shadow = COL_SHADOW_PLUS_0,
|
fb_pixel_t color_shadow = COL_SHADOW_PLUS_0,
|
||||||
fb_pixel_t color_select = COL_SCROLLBAR_ACTIVE,
|
fb_pixel_t color_select = COL_SCROLLBAR_ACTIVE_PLUS_0,
|
||||||
fb_pixel_t color_passive = COL_SCROLLBAR_PASSIVE);
|
fb_pixel_t color_passive = COL_SCROLLBAR_PASSIVE_PLUS_0);
|
||||||
// ~CComponentsScrollBar(); //inherited from CComponentsForm
|
// ~CComponentsScrollBar(); //inherited from CComponentsForm
|
||||||
|
|
||||||
/**Set current page number
|
/**Set current page number
|
||||||
@@ -158,11 +158,11 @@ class CComponentsScrollBar : public CComponentsFrmChain
|
|||||||
* usual paraemters:
|
* usual paraemters:
|
||||||
* @param[in] parent optional, exepts type pointer to a parent CComponentsForm object, default NULL
|
* @param[in] parent optional, exepts type pointer to a parent CComponentsForm object, default NULL
|
||||||
* @param[in] shadow_mode optional, exepts type int defined by shadow mode enums, default CC_SHADOW_OFF
|
* @param[in] shadow_mode optional, exepts type int defined by shadow mode enums, default CC_SHADOW_OFF
|
||||||
* @param[in] color_frame optional, exepts type fb_pixel_t, default COL_SCROLLBAR_ACTIVE_PLUS_0
|
* @param[in] color_frame optional, exepts type fb_pixel_t, default COL_SCROLLBAR_PLUS_0
|
||||||
* @param[in] color_body optional, exepts type fb_pixel_t, default COL_SCROLLBAR_PASSIVE_PLUS_0
|
* @param[in] color_body optional, exepts type fb_pixel_t, default COL_SCROLLBAR_PLUS_0
|
||||||
* @param[in] color_shadow optional, exepts type fb_pixel_t, default COL_SHADOW_PLUS_0
|
* @param[in] color_shadow optional, exepts type fb_pixel_t, default COL_SHADOW_PLUS_0
|
||||||
* @param[in] color_select optional, exepts type fb_pixel_t, default COL_SCROLLBAR_ACTIVE
|
* @param[in] color_select optional, exepts type fb_pixel_t, default COL_SCROLLBAR_ACTIVE_PLUS_0
|
||||||
* @param[in] color_passive optional, exepts type fb_pixel_t, default COL_SCROLLBAR_PASSIVE
|
* @param[in] color_passive optional, exepts type fb_pixel_t, default COL_SCROLLBAR_PASSIVE_PLUS_0
|
||||||
*/
|
*/
|
||||||
void paintScrollBar( const int &x_pos,
|
void paintScrollBar( const int &x_pos,
|
||||||
const int &y_pos,
|
const int &y_pos,
|
||||||
@@ -171,10 +171,10 @@ void paintScrollBar( const int &x_pos,
|
|||||||
const int& count,
|
const int& count,
|
||||||
const int& current_num,
|
const int& current_num,
|
||||||
int shadow_mode = CC_SHADOW_OFF,
|
int shadow_mode = CC_SHADOW_OFF,
|
||||||
fb_pixel_t color_frame = COL_SCROLLBAR,
|
fb_pixel_t color_frame = COL_SCROLLBAR_PLUS_0,
|
||||||
fb_pixel_t color_body = COL_SCROLLBAR,
|
fb_pixel_t color_body = COL_SCROLLBAR_PLUS_0,
|
||||||
fb_pixel_t color_shadow = COL_SHADOW_PLUS_0,
|
fb_pixel_t color_shadow = COL_SHADOW_PLUS_0,
|
||||||
fb_pixel_t color_select = COL_SCROLLBAR_ACTIVE,
|
fb_pixel_t color_select = COL_SCROLLBAR_ACTIVE_PLUS_0,
|
||||||
fb_pixel_t color_passive = COL_SCROLLBAR_PASSIVE);
|
fb_pixel_t color_passive = COL_SCROLLBAR_PASSIVE_PLUS_0);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -4,4 +4,4 @@
|
|||||||
* to luainstance.h changes
|
* to luainstance.h changes
|
||||||
*/
|
*/
|
||||||
#define LUA_API_VERSION_MAJOR 1
|
#define LUA_API_VERSION_MAJOR 1
|
||||||
#define LUA_API_VERSION_MINOR 72
|
#define LUA_API_VERSION_MINOR 73
|
||||||
|
@@ -175,6 +175,7 @@ static void set_lua_variables(lua_State *L)
|
|||||||
{ "MENUCONTENTINACTIVE", MAGIC_COLOR | (COL_MENUCONTENTINACTIVE) },
|
{ "MENUCONTENTINACTIVE", MAGIC_COLOR | (COL_MENUCONTENTINACTIVE) },
|
||||||
{ "MENUFOOT", MAGIC_COLOR | (COL_MENUFOOT) },
|
{ "MENUFOOT", MAGIC_COLOR | (COL_MENUFOOT) },
|
||||||
{ "FRAME", MAGIC_COLOR | (COL_FRAME) },
|
{ "FRAME", MAGIC_COLOR | (COL_FRAME) },
|
||||||
|
{ "SCROLLBAR", MAGIC_COLOR | (COL_SCROLLBAR) },
|
||||||
{ "SCROLLBAR_ACTIVE", MAGIC_COLOR | (COL_SCROLLBAR_ACTIVE) },
|
{ "SCROLLBAR_ACTIVE", MAGIC_COLOR | (COL_SCROLLBAR_ACTIVE) },
|
||||||
{ "SCROLLBAR_PASSIVE", MAGIC_COLOR | (COL_SCROLLBAR_PASSIVE) },
|
{ "SCROLLBAR_PASSIVE", MAGIC_COLOR | (COL_SCROLLBAR_PASSIVE) },
|
||||||
{ "PROGRESSBAR_ACTIVE", MAGIC_COLOR | (COL_PROGRESSBAR_ACTIVE_PLUS_0) }, //NI
|
{ "PROGRESSBAR_ACTIVE", MAGIC_COLOR | (COL_PROGRESSBAR_ACTIVE_PLUS_0) }, //NI
|
||||||
@@ -226,6 +227,7 @@ static void set_lua_variables(lua_State *L)
|
|||||||
{ "MENUCONTENTINACTIVE_PLUS_0", (lua_Unsigned) (COL_MENUCONTENTINACTIVE_PLUS_0) },
|
{ "MENUCONTENTINACTIVE_PLUS_0", (lua_Unsigned) (COL_MENUCONTENTINACTIVE_PLUS_0) },
|
||||||
{ "MENUFOOT_PLUS_0", (lua_Unsigned) (COL_MENUFOOT_PLUS_0) },
|
{ "MENUFOOT_PLUS_0", (lua_Unsigned) (COL_MENUFOOT_PLUS_0) },
|
||||||
{ "FRAME_PLUS_0", (lua_Unsigned) (COL_FRAME_PLUS_0) },
|
{ "FRAME_PLUS_0", (lua_Unsigned) (COL_FRAME_PLUS_0) },
|
||||||
|
{ "SCROLLBAR_PLUS_0", (lua_Unsigned) (COL_SCROLLBAR_PLUS_0) },
|
||||||
{ "SCROLLBAR_ACTIVE_PLUS_0", (lua_Unsigned) (COL_SCROLLBAR_ACTIVE_PLUS_0) },
|
{ "SCROLLBAR_ACTIVE_PLUS_0", (lua_Unsigned) (COL_SCROLLBAR_ACTIVE_PLUS_0) },
|
||||||
{ "SCROLLBAR_PASSIVE_PLUS_0", (lua_Unsigned) (COL_SCROLLBAR_PASSIVE_PLUS_0) },
|
{ "SCROLLBAR_PASSIVE_PLUS_0", (lua_Unsigned) (COL_SCROLLBAR_PASSIVE_PLUS_0) },
|
||||||
{ "PROGRESSBAR_ACTIVE_PLUS_0", (lua_Unsigned) (COL_PROGRESSBAR_ACTIVE_PLUS_0) },
|
{ "PROGRESSBAR_ACTIVE_PLUS_0", (lua_Unsigned) (COL_PROGRESSBAR_ACTIVE_PLUS_0) },
|
||||||
|
Reference in New Issue
Block a user