mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
cc_frm_button: remove offset between icon and text
Text object has an own internal offset. Therefore, I think it
is not required. Possible side effects are not to be ruled out and
remains to be seen.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4a10ed1bdc
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-11-14 (Sun, 14 Nov 2021)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -201,7 +201,7 @@ void CComponentsButton::initCaption()
|
||||
Font *tmp_font = cc_btn_font;
|
||||
int h_cap = min(cc_btn_text_obj->getHeight(), tmp_font->getHeight());
|
||||
int w_cap = tmp_font->getRenderWidth(cc_btn_text);
|
||||
int dx_tmp = x_offset + dx_icon_obj + x_offset + w_cap - frame;
|
||||
int dx_tmp = x_offset + dx_icon_obj + w_cap - frame;
|
||||
|
||||
/* If the required sum for space of icon, text, frame and offsets is too small then adapt font size.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user