- rename SHADOW_OFFSET -> OFFSET_SHADOW

This commit is contained in:
svenhoefer
2016-10-10 14:19:55 +02:00
parent d77858683b
commit 5d450c60d3
19 changed files with 78 additions and 78 deletions

View File

@@ -49,7 +49,7 @@ CCDraw::CCDraw() : COSDFader(g_settings.theme.menu_Content_alpha)
corner_rad = corner_rad_old = 0;
shadow = CC_SHADOW_OFF;
shadow_w = shadow_w_old = SHADOW_OFFSET;
shadow_w = shadow_w_old = OFFSET_SHADOW;
shadow_force = false;
cc_paint_cache = false;

View File

@@ -52,7 +52,7 @@ CComponentsForm::CComponentsForm( const int x_pos, const int y_pos, const int w,
cc_yr = y;
shadow = shadow_mode;
shadow_w = SHADOW_OFFSET;
shadow_w = OFFSET_SHADOW;
corner_rad = RADIUS_LARGE;
corner_type = CORNER_ALL;
cc_item_index = 0;

View File

@@ -100,7 +100,7 @@ void CComponentsButton::initVarButton( const int& x_pos, const int& y_pos, const
width = w;
height = h;
shadow = shadow_mode;
shadow_w = shadow ? SHADOW_OFFSET/2 : 0; //buttons are mostly small elements, so these elements should have a reasonable shadow width
shadow_w = shadow ? OFFSET_SHADOW/2 : 0; //buttons are mostly small elements, so these elements should have a reasonable shadow width
cc_body_gradient_enable = CC_COLGRAD_OFF/*g_settings.gradiant*/; //TODO: gradient is prepared for use but disabled at the moment till some other parts of gui parts are provide gradient
setColBodyGradient(cc_body_gradient_enable/*CColorGradient::gradientLight2Dark*/, CFrameBuffer::gradientVertical, CColorGradient::light);

View File

@@ -61,7 +61,7 @@ CComponentsFrmClock::CComponentsFrmClock( const int& x_pos,
y = y_pos;
shadow = shadow_mode;
shadow_w = SHADOW_OFFSET;
shadow_w = OFFSET_SHADOW;
col_frame = color_frame;
col_body = color_body;
col_shadow = color_shadow;

View File

@@ -78,7 +78,7 @@ void CComponentsPicture::init( const int &x_pos, const int &y_pos, const int &w,
height = dy = dyc = h;
pic_name = pic_name_old = image_name;
shadow = shadow_mode;
shadow_w = SHADOW_OFFSET;
shadow_w = OFFSET_SHADOW;
col_frame = color_frame;
col_body = color_background;
col_shadow = color_shadow;

View File

@@ -48,7 +48,7 @@ CComponentsShapeSquare::CComponentsShapeSquare( const int x_pos, const int y_pos
width = width_old = w;
height = height_old = h;
shadow = shadow_mode;
shadow_w = SHADOW_OFFSET;
shadow_w = OFFSET_SHADOW;
col_frame = color_frame;
col_body = color_body;
col_shadow = color_shadow;
@@ -76,7 +76,7 @@ CComponentsShapeCircle::CComponentsShapeCircle( int x_pos, int y_pos, int diam,
y = y_pos;
//width = height = d = diam;
shadow = shadow_mode;
shadow_w = SHADOW_OFFSET;
shadow_w = OFFSET_SHADOW;
col_frame = color_frame;
col_body = color_body;
col_shadow = color_shadow;

View File

@@ -60,7 +60,7 @@ CComponentsPIP::CComponentsPIP( const int x_pos, const int y_pos, const int perc
width = percent*screen_w/100;
height = percent*screen_h/100;
shadow = shadow_mode;
shadow_w = SHADOW_OFFSET;
shadow_w = OFFSET_SHADOW;
col_frame = color_frame;
col_body = color_body;
col_shadow = color_shadow;