You've already forked pico-launcher
mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-01-09 16:28:48 -08:00
39 lines
1.5 KiB
C++
39 lines
1.5 KiB
C++
#pragma once
|
|
#include "common.h"
|
|
#include "ThemeType.h"
|
|
#include "core/String.h"
|
|
#include "core/math/Rgb.h"
|
|
|
|
class ThemeInfo
|
|
{
|
|
String<TCHAR, 64> _folderName;
|
|
ThemeType _type;
|
|
String<char16_t, 64> _name;
|
|
String<char16_t, 128> _description;
|
|
String<char16_t, 64> _author;
|
|
Rgb<8, 8, 8> _primaryColor;
|
|
bool _darkTheme;
|
|
public:
|
|
ThemeInfo(const TCHAR* folderName, ThemeType type, const char* name,
|
|
const char* description, const char* author, const Rgb<8, 8, 8>& primaryColor,
|
|
bool darkTheme)
|
|
: _folderName(folderName), _type(type), _name(name)
|
|
, _description(description), _author(author), _primaryColor(primaryColor)
|
|
, _darkTheme(darkTheme) { }
|
|
|
|
ThemeInfo(const TCHAR* folderName, ThemeType type, const char16_t* name,
|
|
const char16_t* description, const char16_t* author, const Rgb<8, 8, 8>& primaryColor,
|
|
bool darkTheme)
|
|
: _folderName(folderName), _type(type), _name(name)
|
|
, _description(description), _author(author), _primaryColor(primaryColor)
|
|
, _darkTheme(darkTheme) { }
|
|
|
|
constexpr const TCHAR* GetFolderName() const { return _folderName; }
|
|
constexpr ThemeType GetType() const { return _type; }
|
|
constexpr const char16_t* GetName() const { return _name; }
|
|
constexpr const char16_t* GetDescription() const { return _description; }
|
|
constexpr const char16_t* GetAuthor() const { return _author; }
|
|
constexpr const Rgb<8, 8, 8>& GetPrimaryColor() const { return _primaryColor; }
|
|
constexpr bool GetIsDarkTheme() const { return _darkTheme; }
|
|
};
|