some small updates
This commit is contained in:
@@ -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 ) );
|
||||
|
||||
@@ -39,6 +39,7 @@ void note_tile_setup( void ) {
|
||||
style = mainbar_get_style();
|
||||
|
||||
lv_style_copy( ¬estyle, style);
|
||||
lv_style_set_text_opa( ¬estyle, LV_OBJ_PART_MAIN, LV_OPA_30);
|
||||
lv_style_set_text_font( ¬estyle, LV_STATE_DEFAULT, &Ubuntu_72px);
|
||||
|
||||
notelabel = lv_label_create( note_cont, NULL);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user