mirror of
https://github.com/D4C1-Labs/Flipper-ARF.git
synced 2026-03-30 09:49:51 +00:00
Compare commits
2 Commits
dev-03897a
...
dev-9f89d9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f89d933da | ||
|
|
43b86fc17b |
@@ -1,4 +1,5 @@
|
||||
#include <storage/storage.h>
|
||||
#include <gui/gui.h>
|
||||
|
||||
#include "../desktop_i.h"
|
||||
#include "../views/desktop_view_slideshow.h"
|
||||
@@ -14,6 +15,7 @@ void desktop_scene_slideshow_on_enter(void* context) {
|
||||
Desktop* desktop = (Desktop*)context;
|
||||
DesktopSlideshowView* slideshow_view = desktop->slideshow_view;
|
||||
|
||||
gui_set_hide_status_bar(desktop->gui, true);
|
||||
desktop_view_slideshow_set_callback(slideshow_view, desktop_scene_slideshow_callback, desktop);
|
||||
|
||||
view_dispatcher_switch_to_view(desktop->view_dispatcher, DesktopViewIdSlideshow);
|
||||
@@ -46,5 +48,6 @@ bool desktop_scene_slideshow_on_event(void* context, SceneManagerEvent event) {
|
||||
|
||||
void desktop_scene_slideshow_on_exit(void* context) {
|
||||
Desktop* desktop = context;
|
||||
gui_set_hide_status_bar(desktop->gui, false);
|
||||
storage_common_remove(desktop->storage, SLIDESHOW_FS_PATH);
|
||||
}
|
||||
|
||||
@@ -260,7 +260,9 @@ static void gui_redraw(Gui* gui) {
|
||||
if(!gui_redraw_window(gui)) {
|
||||
gui_redraw_desktop(gui);
|
||||
}
|
||||
gui_redraw_status_bar(gui, false);
|
||||
if(!gui->hide_status_bar) {
|
||||
gui_redraw_status_bar(gui, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -512,6 +514,16 @@ bool gui_is_lockdown(const Gui* gui) {
|
||||
return gui->lockdown && !gui->lockdown_inhibit;
|
||||
}
|
||||
|
||||
void gui_set_hide_status_bar(Gui* gui, bool hide) {
|
||||
furi_check(gui);
|
||||
|
||||
gui_lock(gui);
|
||||
gui->hide_status_bar = hide;
|
||||
gui_unlock(gui);
|
||||
|
||||
gui_update(gui);
|
||||
}
|
||||
|
||||
Canvas* gui_direct_draw_acquire(Gui* gui) {
|
||||
furi_check(gui);
|
||||
|
||||
|
||||
@@ -127,6 +127,16 @@ void gui_set_lockdown_inhibit(Gui* gui, bool inhibit);
|
||||
*/
|
||||
bool gui_is_lockdown(const Gui* gui);
|
||||
|
||||
/** Set hide status bar mode
|
||||
*
|
||||
* When enabled, the status bar is not drawn on top of the desktop layer.
|
||||
* Used by the slideshow to show fullscreen content without the status bar overlay.
|
||||
*
|
||||
* @param gui Gui instance
|
||||
* @param hide bool, true to hide status bar
|
||||
*/
|
||||
void gui_set_hide_status_bar(Gui* gui, bool hide);
|
||||
|
||||
/** Acquire Direct Draw lock and get Canvas instance
|
||||
*
|
||||
* This method return Canvas instance for use in monopoly mode. Direct draw lock
|
||||
|
||||
@@ -53,6 +53,7 @@ struct Gui {
|
||||
bool lockdown;
|
||||
bool lockdown_inhibit;
|
||||
bool direct_draw;
|
||||
bool hide_status_bar;
|
||||
ViewPortArray_t layers[GuiLayerMAX];
|
||||
Canvas* canvas;
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.6 KiB |
@@ -1,5 +1,5 @@
|
||||
entry,status,name,type,params
|
||||
Version,+,87.8,,
|
||||
Version,+,87.9,,
|
||||
Header,+,applications/drivers/subghz/cc1101_ext/cc1101_ext_interconnect.h,,
|
||||
Header,+,applications/services/applications.h,,
|
||||
Header,+,applications/services/bt/bt_service/bt.h,,
|
||||
@@ -2088,6 +2088,7 @@ Function,+,gui_get_framebuffer_size,size_t,const Gui*
|
||||
Function,+,gui_is_lockdown,_Bool,const Gui*
|
||||
Function,+,gui_remove_framebuffer_callback,void,"Gui*, GuiCanvasCommitCallback, void*"
|
||||
Function,+,gui_remove_view_port,void,"Gui*, ViewPort*"
|
||||
Function,+,gui_set_hide_status_bar,void,"Gui*, _Bool"
|
||||
Function,+,gui_set_lockdown,void,"Gui*, _Bool"
|
||||
Function,+,gui_set_lockdown_inhibit,void,"Gui*, _Bool"
|
||||
Function,-,gui_view_port_send_to_back,void,"Gui*, ViewPort*"
|
||||
|
||||
|
Reference in New Issue
Block a user