mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
CComponentsFrmClock: disable digit height
Using of digit height is not really required here. eg. better centering
This commit is contained in:
@@ -262,12 +262,12 @@ void CComponentsFrmClock::initCCLockItems()
|
|||||||
lbl->doPaintTextBoxBg(paint_bg);
|
lbl->doPaintTextBoxBg(paint_bg);
|
||||||
bool save_txt_screen = cc_txt_save_screen || (!paint_bg || cc_body_gradient_enable);
|
bool save_txt_screen = cc_txt_save_screen || (!paint_bg || cc_body_gradient_enable);
|
||||||
lbl->enableTboxSaveScreen(save_txt_screen);
|
lbl->enableTboxSaveScreen(save_txt_screen);
|
||||||
|
#if 0
|
||||||
//use matching height for digits for better vertical centerring into form
|
//use matching height for digits for better vertical centerring into form
|
||||||
CTextBox* ctb = lbl->getCTextBoxObject();
|
CTextBox* ctb = lbl->getCTextBoxObject();
|
||||||
if (ctb)
|
if (ctb)
|
||||||
ctb->setFontUseDigitHeight();
|
ctb->setFontUseDigitHeight();
|
||||||
#if 0
|
|
||||||
//ensure paint of text and label bg on changed text or painted form background
|
//ensure paint of text and label bg on changed text or painted form background
|
||||||
bool force_txt_and_bg = (lbl->textChanged() || this->paint_bg);
|
bool force_txt_and_bg = (lbl->textChanged() || this->paint_bg);
|
||||||
lbl->forceTextPaint(force_txt_and_bg);
|
lbl->forceTextPaint(force_txt_and_bg);
|
||||||
|
Reference in New Issue
Block a user