Fork of Tangara with customizations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tangara-fw/src/ui/include/screen_settings.hpp

75 lines
1.1 KiB

/*
* Copyright 2023 jacqueline <me@jacqueline.id.au>
*
* SPDX-License-Identifier: GPL-3.0-only
*/
#pragma once
#include <cstdint>
#include <memory>
#include <vector>
#include "display.hpp"
#include "index.hpp"
#include "lvgl.h"
#include "nvs.hpp"
#include "screen.hpp"
namespace ui {
namespace screens {
class Settings : public MenuScreen {
public:
Settings();
};
class Bluetooth : public MenuScreen {
public:
Bluetooth();
};
class Headphones : public MenuScreen {
public:
Headphones();
};
class Appearance : public MenuScreen {
public:
Appearance(drivers::NvsStorage* nvs, drivers::Display* display);
auto ChangeBrightness(uint_fast8_t) -> void;
auto CommitBrightness() -> void;
private:
drivers::NvsStorage* nvs_;
drivers::Display* display_;
lv_obj_t* current_brightness_label_;
uint_fast8_t current_brightness_;
};
class InputMethod : public MenuScreen {
public:
InputMethod();
};
class Storage : public MenuScreen {
public:
Storage();
};
class FirmwareUpdate : public MenuScreen {
public:
FirmwareUpdate();
};
class About : public MenuScreen {
public:
About();
};
} // namespace screens
} // namespace ui