some small updates

This commit is contained in:
sharandac
2020-07-30 08:30:59 +02:00
parent 8e088ba4e6
commit 77a014bb74
10 changed files with 29 additions and 9 deletions

View File

@@ -27,6 +27,7 @@
lv_app_entry_t app_entry[ MAX_APPS_ICON ];
static lv_obj_t *app_cont = NULL;
static lv_obj_t *app_label = NULL;
static lv_style_t *style;
static lv_style_t appstyle;
@@ -39,8 +40,15 @@ void app_tile_setup( void ) {
style = mainbar_get_style();
lv_style_copy( &appstyle, style);
lv_style_set_text_opa( &appstyle, LV_OBJ_PART_MAIN, LV_OPA_30);
lv_style_set_text_font( &appstyle, LV_STATE_DEFAULT, &Ubuntu_72px);
app_label = lv_label_create( app_cont, NULL);
lv_label_set_text( app_label, "apps");
lv_obj_reset_style_list( app_label, LV_OBJ_PART_MAIN );
lv_obj_add_style( app_label, LV_OBJ_PART_MAIN, &appstyle );
lv_obj_align( app_label, NULL, LV_ALIGN_CENTER, 0, 0);
for ( int app = 0 ; app < MAX_APPS_ICON ; app++ ) {
// set x, y and mark it as inactive
app_entry[ app ].x = APP_FIRST_X_POS + ( ( app % MAX_APPS_ICON_HORZ ) * ( APP_ICON_X_SIZE + APP_ICON_X_CLEARENCE ) );

View File

@@ -39,6 +39,7 @@ void note_tile_setup( void ) {
style = mainbar_get_style();
lv_style_copy( &notestyle, style);
lv_style_set_text_opa( &notestyle, LV_OBJ_PART_MAIN, LV_OPA_30);
lv_style_set_text_font( &notestyle, LV_STATE_DEFAULT, &Ubuntu_72px);
notelabel = lv_label_create( note_cont, NULL);

View File

@@ -42,7 +42,7 @@ uint64_t update_check_new_version( void ) {
"Connection: close\r\n"
"Pragma: no-cache\r\n"
"Cache-Control: no-cache\r\n"
"User-Agent: ESP32\r\n"
"User-Agent: ESP32-" __FIRMWARE__ "\r\n"
"Accept: text/html,application/json\r\n\r\n", FIRMWARE_HOST );
uint64_t startMillis = millis();