theme: Remove unused parameters
This commit is contained in:
parent
056b0f5b3f
commit
7aa215fcfa
|
@ -236,20 +236,14 @@ static void basic_init() {
|
||||||
* @param font_title pointer to a extra large font
|
* @param font_title pointer to a extra large font
|
||||||
* @return a pointer to reference this theme later
|
* @return a pointer to reference this theme later
|
||||||
*/
|
*/
|
||||||
lv_theme_t* lv_pinetime_theme_init(lv_color_t color_primary,
|
lv_theme_t* lv_pinetime_theme_init() {
|
||||||
lv_color_t color_secondary,
|
theme.color_primary = LV_COLOR_WHITE;
|
||||||
uint32_t flags,
|
theme.color_secondary = LV_COLOR_GRAY;
|
||||||
const lv_font_t* font_small,
|
theme.font_small = &jetbrains_mono_bold_20;
|
||||||
const lv_font_t* font_normal,
|
theme.font_normal = &jetbrains_mono_bold_20;
|
||||||
const lv_font_t* font_subtitle,
|
theme.font_subtitle = &jetbrains_mono_bold_20;
|
||||||
const lv_font_t* font_title) {
|
theme.font_title = &jetbrains_mono_bold_20;
|
||||||
theme.color_primary = color_primary;
|
theme.flags = 0;
|
||||||
theme.color_secondary = color_secondary;
|
|
||||||
theme.font_small = font_small;
|
|
||||||
theme.font_normal = font_normal;
|
|
||||||
theme.font_subtitle = font_subtitle;
|
|
||||||
theme.font_title = font_title;
|
|
||||||
theme.flags = flags;
|
|
||||||
|
|
||||||
basic_init();
|
basic_init();
|
||||||
|
|
||||||
|
|
|
@ -24,10 +24,4 @@ namespace Colors {
|
||||||
* @param font_title pointer to a extra large font
|
* @param font_title pointer to a extra large font
|
||||||
* @return a pointer to reference this theme later
|
* @return a pointer to reference this theme later
|
||||||
*/
|
*/
|
||||||
lv_theme_t* lv_pinetime_theme_init(lv_color_t color_primary,
|
lv_theme_t* lv_pinetime_theme_init();
|
||||||
lv_color_t color_secondary,
|
|
||||||
uint32_t flags,
|
|
||||||
const lv_font_t* font_small,
|
|
||||||
const lv_font_t* font_normal,
|
|
||||||
const lv_font_t* font_subtitle,
|
|
||||||
const lv_font_t* font_title);
|
|
||||||
|
|
|
@ -195,13 +195,7 @@ bool LittleVgl::GetTouchPadInfo(lv_indev_data_t* ptr) {
|
||||||
|
|
||||||
void LittleVgl::InitTheme() {
|
void LittleVgl::InitTheme() {
|
||||||
|
|
||||||
lv_theme_t* th = lv_pinetime_theme_init(LV_COLOR_WHITE,
|
lv_theme_t* th = lv_pinetime_theme_init();
|
||||||
LV_COLOR_SILVER,
|
|
||||||
0,
|
|
||||||
&jetbrains_mono_bold_20,
|
|
||||||
&jetbrains_mono_bold_20,
|
|
||||||
&jetbrains_mono_bold_20,
|
|
||||||
&jetbrains_mono_bold_20);
|
|
||||||
|
|
||||||
lv_theme_set_act(th);
|
lv_theme_set_act(th);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue