Replaced dolphins on all scenes accroding to new UI specs

This commit is contained in:
RebornedBrain 2023-11-30 22:19:24 +03:00
parent 810dfa1b79
commit f7de65684a
7 changed files with 8 additions and 15 deletions

View File

@ -9,9 +9,7 @@ void ibutton_scene_save_success_on_enter(void* context) {
iButton* ibutton = context; iButton* ibutton = context;
Popup* popup = ibutton->popup; Popup* popup = ibutton->popup;
popup_set_icon(popup, 32, 5, &I_DolphinNice_96x59); popup_set_icon(popup, 15, 5, &I_DolphinSaved_113x58);
popup_set_header(popup, "Saved!", 5, 7, AlignLeft, AlignTop);
popup_set_callback(popup, ibutton_scene_save_success_popup_callback); popup_set_callback(popup, ibutton_scene_save_success_popup_callback);
popup_set_context(popup, ibutton); popup_set_context(popup, ibutton);
popup_set_timeout(popup, 1500); popup_set_timeout(popup, 1500);

View File

@ -4,8 +4,7 @@ void infrared_scene_edit_rename_done_on_enter(void* context) {
InfraredApp* infrared = context; InfraredApp* infrared = context;
Popup* popup = infrared->popup; Popup* popup = infrared->popup;
popup_set_icon(popup, 32, 5, &I_DolphinNice_96x59); popup_set_icon(popup, 15, 5, &I_DolphinSaved_113x58);
popup_set_header(popup, "Saved!", 5, 7, AlignLeft, AlignTop);
popup_set_callback(popup, infrared_popup_closed_callback); popup_set_callback(popup, infrared_popup_closed_callback);
popup_set_context(popup, context); popup_set_context(popup, context);

View File

@ -4,12 +4,11 @@ void infrared_scene_learn_done_on_enter(void* context) {
InfraredApp* infrared = context; InfraredApp* infrared = context;
Popup* popup = infrared->popup; Popup* popup = infrared->popup;
popup_set_icon(popup, 32, 5, &I_DolphinNice_96x59);
if(infrared->app_state.is_learning_new_remote) { if(infrared->app_state.is_learning_new_remote) {
popup_set_icon(popup, 48, 6, &I_DolphinDone_80x58);
popup_set_header(popup, "New remote\ncreated!", 0, 0, AlignLeft, AlignTop); popup_set_header(popup, "New remote\ncreated!", 0, 0, AlignLeft, AlignTop);
} else { } else {
popup_set_header(popup, "Saved!", 5, 7, AlignLeft, AlignTop); popup_set_icon(popup, 15, 5, &I_DolphinSaved_113x58);
} }
popup_set_callback(popup, infrared_popup_closed_callback); popup_set_callback(popup, infrared_popup_closed_callback);

View File

@ -7,8 +7,7 @@ void lfrfid_scene_save_success_on_enter(void* context) {
// Clear state of data enter scene // Clear state of data enter scene
scene_manager_set_scene_state(app->scene_manager, LfRfidSceneSaveData, 0); scene_manager_set_scene_state(app->scene_manager, LfRfidSceneSaveData, 0);
popup_set_icon(popup, 32, 5, &I_DolphinNice_96x59); popup_set_icon(popup, 15, 5, &I_DolphinSaved_113x58);
popup_set_header(popup, "Saved!", 5, 7, AlignLeft, AlignTop);
popup_set_context(popup, app); popup_set_context(popup, app);
popup_set_callback(popup, lfrfid_popup_timeout_callback); popup_set_callback(popup, lfrfid_popup_timeout_callback);
popup_set_timeout(popup, 1500); popup_set_timeout(popup, 1500);

View File

@ -10,8 +10,7 @@ void nfc_scene_save_success_on_enter(void* context) {
// Setup view // Setup view
Popup* popup = nfc->popup; Popup* popup = nfc->popup;
popup_set_icon(popup, 32, 5, &I_DolphinNice_96x59); popup_set_icon(popup, 15, 5, &I_DolphinSaved_113x58);
popup_set_header(popup, "Saved!", 13, 22, AlignLeft, AlignBottom);
popup_set_timeout(popup, 1500); popup_set_timeout(popup, 1500);
popup_set_context(popup, nfc); popup_set_context(popup, nfc);
popup_set_callback(popup, nfc_scene_save_success_popup_callback); popup_set_callback(popup, nfc_scene_save_success_popup_callback);

View File

@ -11,8 +11,7 @@ void subghz_scene_save_success_on_enter(void* context) {
// Setup view // Setup view
Popup* popup = subghz->popup; Popup* popup = subghz->popup;
popup_set_icon(popup, 32, 5, &I_DolphinNice_96x59); popup_set_icon(popup, 15, 5, &I_DolphinSaved_113x58);
popup_set_header(popup, "Saved!", 13, 22, AlignLeft, AlignBottom);
popup_set_timeout(popup, 1500); popup_set_timeout(popup, 1500);
popup_set_context(popup, subghz); popup_set_context(popup, subghz);
popup_set_callback(popup, subghz_scene_save_success_popup_callback); popup_set_callback(popup, subghz_scene_save_success_popup_callback);

View File

@ -10,7 +10,7 @@ void bt_settings_scene_forget_dev_success_on_enter(void* context) {
BtSettingsApp* app = context; BtSettingsApp* app = context;
Popup* popup = app->popup; Popup* popup = app->popup;
popup_set_icon(popup, 32, 5, &I_DolphinNice_96x59); popup_set_icon(popup, 48, 6, &I_DolphinDone_80x58);
popup_set_header(popup, "Done", 14, 15, AlignLeft, AlignTop); popup_set_header(popup, "Done", 14, 15, AlignLeft, AlignTop);
popup_set_timeout(popup, 1500); popup_set_timeout(popup, 1500);
popup_set_context(popup, app); popup_set_context(popup, app);