mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
CComponentsFrmClock: Add member setTextColor()
- Add member refresh() for (re)calculate clock dimensions
Origin commit data
------------------
Commit: 39704b72c0
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-06-01 (Sat, 01 Jun 2013)
Origin message was:
------------------
* CComponentsFrmClock: Add member setTextColor()
- Add member refresh() for (re)calculate clock dimensions
This commit is contained in:
@@ -66,6 +66,7 @@ void CComponentsFrmClock::initVarClock()
|
||||
|
||||
cl_font_type = SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO;
|
||||
cl_font = NULL;
|
||||
cl_col_text = COL_MENUCONTENT;
|
||||
cl_format_str = "%H:%M";
|
||||
cl_align = CC_ALIGN_VER_CENTER | CC_ALIGN_HOR_CENTER;
|
||||
// cl_force_segment_paint = false;
|
||||
@@ -164,7 +165,8 @@ void CComponentsFrmClock::initCCLockItems()
|
||||
|
||||
//set size, text, color of current item
|
||||
lbl->setDimensionsAll(cl_x, cl_y, wtmp, cl_h);
|
||||
lbl->setTextColor(COL_MENUCONTENT);
|
||||
lbl->setTextColor(cl_col_text);
|
||||
lbl->setColorAll(col_frame, col_body, col_shadow);
|
||||
lbl->setText(stmp, CTextBox::CENTER, cl_font);
|
||||
|
||||
//use matching height for digits for better vertical centerring into form
|
||||
|
Reference in New Issue
Block a user