Cosmetics

This commit is contained in:
3djc
2021-04-06 18:20:26 +02:00
parent 979a498093
commit 463216ebca
3 changed files with 17 additions and 5 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ void ScreenMenu::updateTabs()
{
removeAllTabs();
addTab(new ScreenUserPage());
addTab(new ScreenUserInterfacePage());
for (int index = 0; index < MAX_CUSTOM_SCREENS; index++) {
if (customScreens[index]) {
+14 -2
View File
@@ -26,14 +26,26 @@
#define SET_DIRTY() storageDirty(EE_MODEL)
ScreenUserPage::ScreenUserPage():
ScreenUserInterfacePage::ScreenUserInterfacePage():
PageTab(STR_USER_INTERFACE, ICON_THEME_SETUP)
{
}
void ScreenUserPage::build(FormWindow * window)
void ScreenUserInterfacePage::build(FormWindow * window)
{
FormGridLayout grid;
// Theme choice
new StaticText(window, grid.getLabelSlot(), STR_THEME, 0, 0);
// TODO: Theme picklist
grid.nextLine();
// Theme options ?
// Top Bar
new StaticText(window, grid.getLabelSlot(), STR_TOP_BAR, 0, 0);
// TODO: enable settings topbar widgets
grid.nextLine();
}
ScreenAddPage::ScreenAddPage(ScreenMenu * menu, uint8_t pageIndex):
+2 -2
View File
@@ -22,9 +22,9 @@
#include "layout.h"
#include "datastructs.h"
class ScreenUserPage: public PageTab {
class ScreenUserInterfacePage: public PageTab {
public:
ScreenUserPage();
ScreenUserInterfacePage();
void build(FormWindow * window) override;