mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
CComponentsButton: disable gradient
Not necessary as long not all or most gui buttons can provide gradient
Origin commit data
------------------
Commit: 47b37d4405
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-03-28 (Sat, 28 Mar 2015)
This commit is contained in:
@@ -101,12 +101,12 @@ void CComponentsButton::initVarButton( const int& x_pos, const int& y_pos, const
|
||||
height = h;
|
||||
shadow = has_shadow;
|
||||
shadow_w = SHADOW_OFFSET;
|
||||
col_frame = color_frame;
|
||||
col_body = color_body;
|
||||
col_shadow = color_shadow;
|
||||
|
||||
col_body_gradient = g_settings.gradiant;
|
||||
col_body_gradient = false/*g_settings.gradiant*/; //gradient is prepared for use but disabled at the moment till some other parts of gui parts are provide gradient
|
||||
setColBodyGradient(CColorGradient::gradientLight2Dark, CFrameBuffer::gradientVertical, CColorGradient::light);
|
||||
col_frame = color_frame;
|
||||
col_body = col_body_gradient? COL_DARK_GRAY : color_body;
|
||||
col_shadow = color_shadow;
|
||||
|
||||
cc_item_enabled = enabled;
|
||||
cc_item_selected = selected;
|
||||
|
@@ -35,7 +35,7 @@
|
||||
#include <driver/neutrinofonts.h>
|
||||
#include <driver/rcinput.h>
|
||||
|
||||
#define COL_BUTTON_BODY COL_DARK_GRAY
|
||||
#define COL_BUTTON_BODY COL_INFOBAR_SHADOW_PLUS_1
|
||||
#define COL_BUTTON_TEXT_ENABLED COL_BLACK
|
||||
#define COL_BUTTON_TEXT_DISABLED COL_LIGHT_GRAY
|
||||
|
||||
|
Reference in New Issue
Block a user