mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
Merge branch 'master' of https://github.com/tuxbox-neutrino/gui-neutrino into ni/tuxbox
Origin commit data
------------------
Commit: 0267ee657f
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-12-04 (Sun, 04 Dec 2016)
This commit is contained in:
@@ -55,14 +55,14 @@ class CMovieHelp : public CMenuTarget
|
||||
helpbox.addLine("Standard functions", CTextBox::AUTO_WIDTH | CTextBox::AUTO_HIGH, 35, 10, g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]);
|
||||
helpbox.addLine(NEUTRINO_ICON_BUTTON_OKAY, g_Locale->getText(LOCALE_MOVIEBROWSER_HELP_BUTTON_OKAY), CTextBox::AUTO_WIDTH | CTextBox::AUTO_HIGH, 35, 30);
|
||||
helpbox.addLine(NEUTRINO_ICON_BUTTON_PLAY, g_Locale->getText(LOCALE_MOVIEBROWSER_HELP_BUTTON_PLAY), CTextBox::AUTO_WIDTH | CTextBox::AUTO_HIGH, 35, 30);
|
||||
helpbox.addLine(NEUTRINO_ICON_BUTTON_MUTE, g_Locale->getText(LOCALE_MOVIEBROWSER_HELP_BUTTON_MUTE), CTextBox::AUTO_WIDTH | CTextBox::AUTO_HIGH, 35, 30);
|
||||
helpbox.addLine(NEUTRINO_ICON_BUTTON_MUTE_SMALL, g_Locale->getText(LOCALE_MOVIEBROWSER_HELP_BUTTON_MUTE), CTextBox::AUTO_WIDTH | CTextBox::AUTO_HIGH, 35, 30);
|
||||
helpbox.addSeparatorLine();
|
||||
helpbox.addLine(NEUTRINO_ICON_BUTTON_RED, g_Locale->getText(LOCALE_MOVIEBROWSER_HELP_BUTTON_RED), CTextBox::AUTO_WIDTH | CTextBox::AUTO_HIGH, 35, 30);
|
||||
helpbox.addLine(NEUTRINO_ICON_BUTTON_GREEN, g_Locale->getText(LOCALE_MOVIEBROWSER_HELP_BUTTON_GREEN), CTextBox::AUTO_WIDTH | CTextBox::AUTO_HIGH, 35, 30);
|
||||
helpbox.addLine(NEUTRINO_ICON_BUTTON_YELLOW, g_Locale->getText(LOCALE_MOVIEBROWSER_HELP_BUTTON_YELLOW), CTextBox::AUTO_WIDTH | CTextBox::AUTO_HIGH, 35, 30);
|
||||
helpbox.addLine(NEUTRINO_ICON_BUTTON_BLUE, g_Locale->getText(LOCALE_MOVIEBROWSER_HELP_BUTTON_BLUE), CTextBox::AUTO_WIDTH | CTextBox::AUTO_HIGH, 35, 30);
|
||||
helpbox.addLine(NEUTRINO_ICON_BUTTON_MENU, g_Locale->getText(LOCALE_MOVIEBROWSER_HELP_BUTTON_MENU), CTextBox::AUTO_WIDTH | CTextBox::AUTO_HIGH, 35, 30);
|
||||
helpbox.addLine("+/- Change view", CTextBox::AUTO_WIDTH | CTextBox::AUTO_HIGH, 35, 30);
|
||||
helpbox.addLine("</> Change view", CTextBox::AUTO_WIDTH | CTextBox::AUTO_HIGH, 35, 30);
|
||||
#if 0
|
||||
helpbox.addPagebreak();
|
||||
#endif
|
||||
|
@@ -118,7 +118,7 @@ void Helpbox::addLine(const std::string& icon, const std::string& text, const in
|
||||
|
||||
|
||||
|
||||
void Helpbox::addSeparatorLine(const int& line_space, const int& line_indent, bool enable_gradient)
|
||||
void Helpbox::addSeparatorLine(const int& line_space, const int& line_indent)
|
||||
{
|
||||
CComponentsItem *pre_item = !ccw_body->empty() ? ccw_body->back() : NULL; //get the last current item
|
||||
|
||||
@@ -140,8 +140,11 @@ void Helpbox::addSeparatorLine(const int& line_space, const int& line_indent, bo
|
||||
CComponentsShapeSquare *sepline = new CComponentsShapeSquare (0, 0, line->getWidth(), 2);
|
||||
sepline->setYPos(line->getHeight()/2 - sepline->getHeight()/2);
|
||||
sepline->setColorBody(COL_MENUCONTENTINACTIVE_TEXT);
|
||||
sepline->enableColBodyGradient(enable_gradient);
|
||||
sepline->setColBodyGradient(CColorGradient::gradientLight2Dark, CFrameBuffer::gradientHorizontal, CColorGradient::light);
|
||||
if (g_settings.theme.menu_Separator_gradient_enable)
|
||||
{
|
||||
sepline->enableColBodyGradient(true);
|
||||
sepline->setColBodyGradient(CColorGradient::gradientLight2Dark, CFrameBuffer::gradientHorizontal, CColorGradient::light);
|
||||
}
|
||||
|
||||
line->addCCItem(sepline);
|
||||
|
||||
|
@@ -82,8 +82,7 @@ public:
|
||||
///arg 'line_indent' defines begin of line from left border within body object.
|
||||
///arg 'enable_gradient' enable/disable gradient, Note: default = true, but gradient is only effected, if global/theme gradient settings are enabled!
|
||||
void addSeparatorLine( const int& line_space = HELPBOX_DEFAULT_LINE_HEIGHT,
|
||||
const int& line_indent = HELPBOX_DEFAULT_LINE_INDENT,
|
||||
bool enable_gradient = true);
|
||||
const int& line_indent = HELPBOX_DEFAULT_LINE_INDENT);
|
||||
///adds a simple empty separator as horizontal space, arg 'line_space' defines the space of full separator height
|
||||
void addSeparator( const int& line_space = HELPBOX_DEFAULT_LINE_HEIGHT);
|
||||
|
||||
|
Reference in New Issue
Block a user