formatting, text fixes

This commit is contained in:
MX
2026-02-12 18:50:03 +03:00
parent 17fa36b7d7
commit 3f0f90e0a3
4 changed files with 11 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
#include "bt_api.h" #include "bt_api.h"
FuriHalBleProfileBase* bt_profile_start( FuriHalBleProfileBase* bt_profile_start(
Bt* bt, Bt* bt,

View File

@@ -2,4 +2,4 @@
#include "bt_i.h" #include "bt_i.h"
#include <profiles/serial_profile.h> #include <profiles/serial_profile.h>
extern void bt_set_settings(Bt* bt, const BtSettings* settings); extern void bt_set_settings(Bt* bt, const BtSettings* settings);

View File

@@ -42,10 +42,7 @@ void desktop_lock_menu_set_stealth_mode_state(DesktopLockMenuView* lock_menu, bo
void desktop_lock_menu_set_bt_mode_state(DesktopLockMenuView* lock_menu, bool bt_mode) { void desktop_lock_menu_set_bt_mode_state(DesktopLockMenuView* lock_menu, bool bt_mode) {
with_view_model( with_view_model(
lock_menu->view, lock_menu->view, DesktopLockMenuViewModel * model, { model->bt_mode = bt_mode; }, true);
DesktopLockMenuViewModel * model,
{ model->bt_mode = bt_mode; },
true);
} }
void desktop_lock_menu_set_idx(DesktopLockMenuView* lock_menu, uint8_t idx) { void desktop_lock_menu_set_idx(DesktopLockMenuView* lock_menu, uint8_t idx) {
@@ -68,9 +65,9 @@ void desktop_lock_menu_draw_callback(Canvas* canvas, void* model) {
//if(i == DesktopLockMenuIndexLock) { //if(i == DesktopLockMenuIndexLock) {
if(i == DesktopLockMenuIndexBt) { if(i == DesktopLockMenuIndexBt) {
if(m->bt_mode) { if(m->bt_mode) {
str = "Bluetooth OFF"; str = "Bluetooth Off";
} else { } else {
str = "Bluetooth ON"; str = "Bluetooth On";
} }
} else if(i == DesktopLockMenuIndexStealth) { } else if(i == DesktopLockMenuIndexStealth) {
if(m->stealth_mode) { if(m->stealth_mode) {
@@ -144,11 +141,11 @@ bool desktop_lock_menu_input_callback(InputEvent* event, void* context) {
if(event->type == InputTypeShort) { if(event->type == InputTypeShort) {
lock_menu->callback(DesktopLockMenuEventBt, lock_menu->context); lock_menu->callback(DesktopLockMenuEventBt, lock_menu->context);
} }
// old use case // old use case
// } else if(idx == DesktopLockMenuIndexLock) { // } else if(idx == DesktopLockMenuIndexLock) {
// if(event->type == InputTypeShort) { // if(event->type == InputTypeShort) {
// lock_menu->callback(DesktopLockMenuEventLock, lock_menu->context); // lock_menu->callback(DesktopLockMenuEventLock, lock_menu->context);
// } // }
} else if(idx == DesktopLockMenuIndexStealth) { } else if(idx == DesktopLockMenuIndexStealth) {
if((stealth_mode == false) && (event->type == InputTypeShort)) { if((stealth_mode == false) && (event->type == InputTypeShort)) {
lock_menu->callback(DesktopLockMenuEventStealthModeOn, lock_menu->context); lock_menu->callback(DesktopLockMenuEventStealthModeOn, lock_menu->context);

View File

@@ -25,7 +25,7 @@ void power_settings_scene_power_off_on_enter(void* context) {
if(!settings.happy_mode) { if(!settings.happy_mode) {
dialog_ex_set_text( dialog_ex_set_text(
dialog, " I will be\nwaiting for\n you here...", 78, 14, AlignLeft, AlignTop); dialog, " I will be\nwaiting for\n you here...", 78, 14, AlignLeft, AlignTop);
dialog_ex_set_icon(dialog, 14, 10, &I_dolph_cry_49x54); dialog_ex_set_icon(dialog, 24, 10, &I_dolph_cry_49x54);
} }
dialog_ex_set_left_button_text(dialog, "Settings"); dialog_ex_set_left_button_text(dialog, "Settings");
dialog_ex_set_right_button_text(dialog, "Power Off"); dialog_ex_set_right_button_text(dialog, "Power Off");