Chanmges:

Add CopyOtherTheme
Add Mor Stuff to ThemeEditor
This commit is contained in:
2024-06-05 22:34:00 +02:00
parent 0626231b45
commit f399f032e7
5 changed files with 103 additions and 12 deletions

View File

@ -28,7 +28,7 @@
#define UNPACK_BGRA(col) (uint8_t)(col >> 8), (col >> 16), (col >> 24), (col)
inline uint32_t RGBA8(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255) {
#define ISIMPLEPAK(x, y) (((x) & 0xff) << y)
#define ISIMPLEPAK(x, y) (((x)&0xff) << y)
return (ISIMPLEPAK(r, 0) | ISIMPLEPAK(g, 8) | ISIMPLEPAK(b, 16) |
ISIMPLEPAK(a, 24));
}
@ -101,6 +101,9 @@ class Theme {
using Ref = std::shared_ptr<Theme>;
static Ref New() { return std::make_shared<Theme>(); }
// Loader method
void CopyOther(Theme::Ref theme);
private:
struct change {
change(RD7Color a, unsigned int f, unsigned int t)

View File

@ -38,5 +38,10 @@ class ThemeEditor : public RenderD7::Scene {
mutable bool cm;
mutable std::string inpt;
mutable int menu = 0;
// Keyboard
mutable RD7KeyboardState kbd_state;
mutable std::string kbd_text;
mutable std::vector<std::string> theme_list;
};
} // namespace RenderD7