GUI: status bar rendering. Power: battery indicator. (#207)
* Menu: animation. Irukagotchi: idle image. * Power: battery, usb activity widget * Power: tune battery max voltage and clamp overshoot * get initial charge state Co-authored-by: Aleksandr Kutuzov <aku@plooks.com> Co-authored-by: aanper <mail@s3f.ru>
This commit is contained in:
@@ -3,10 +3,24 @@
|
||||
#include "widget.h"
|
||||
#include "canvas.h"
|
||||
|
||||
#define GUI_DISPLAY_WIDTH 128
|
||||
#define GUI_DISPLAY_HEIGHT 64
|
||||
|
||||
#define GUI_STATUS_BAR_X 0
|
||||
#define GUI_STATUS_BAR_Y 0
|
||||
#define GUI_STATUS_BAR_WIDTH GUI_DISPLAY_WIDTH
|
||||
#define GUI_STATUS_BAR_HEIGHT 8
|
||||
|
||||
#define GUI_MAIN_X 0
|
||||
#define GUI_MAIN_Y 9
|
||||
#define GUI_MAIN_WIDTH GUI_DISPLAY_WIDTH
|
||||
#define GUI_MAIN_HEIGHT (GUI_DISPLAY_HEIGHT - GUI_MAIN_Y)
|
||||
|
||||
typedef enum {
|
||||
GuiLayerNone, /* Special layer for internal use only */
|
||||
|
||||
GuiLayerStatusBar, /* Status bar widget layer */
|
||||
GuiLayerStatusBarLeft, /* Status bar left-side widget layer, auto-layout */
|
||||
GuiLayerStatusBarRight, /* Status bar right-side widget layer, auto-layout */
|
||||
GuiLayerMain, /* Main widget layer, status bar is shown */
|
||||
GuiLayerFullscreen, /* Fullscreen widget layer */
|
||||
|
||||
|
Reference in New Issue
Block a user