diff options
author | Uros Majstorovic <majstor@majstor.org> | 2021-02-28 21:00:13 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2021-02-28 21:00:13 +0100 |
commit | 82a6206422ed658a99716fbd18e33942cebc833b (patch) | |
tree | f849699cd7a31175c57c3d9583d2162786138e3c /fw/fe310/test/phone.c | |
parent | 6a4c8a1f11f6a7bd57b0fd618f455bcdecbfe538 (diff) |
font property moved to widget base
Diffstat (limited to 'fw/fe310/test/phone.c')
-rw-r--r-- | fw/fe310/test/phone.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/fw/fe310/test/phone.c b/fw/fe310/test/phone.c index 2832fc4..b3a08b1 100644 --- a/fw/fe310/test/phone.c +++ b/fw/fe310/test/phone.c @@ -14,6 +14,7 @@ #include <eve/eve.h> #include <eve/eve_kbd.h> +#include <eve/eve_font.h> #include <eve/screen/screen.h> #include <eve/screen/window.h> @@ -28,8 +29,6 @@ #include "status.h" #include "phone.h" -extern EVEFont *_app_font_default; - #define ABUF_SIZE 512 #define MIC_WM 128 @@ -88,17 +87,11 @@ static void cell_voice_handler(unsigned char type, unsigned char *buffer, uint16 } void app_phone(EVEWindow *window, EVEViewStack *stack) { - char *title = "Phone:"; - uint16_t w = eve_font_str_w(_app_font_default, title) + 10; - APPWidgetSpec spec[] = { + EVEWidgetSpec spec[] = { { - .label.g.w = w, - .label.font = _app_font_default, - .label.title = title, + .label.title = "Phone:", .widget.type = EVE_WIDGET_TYPE_STR, - .widget.g.w = APP_SCREEN_W - w, - .widget.spec.str.font = _app_font_default, .widget.spec.str.str_size = 128, }, }; |