mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Initial commit
This commit is contained in:
38
arm9/source/themes/ThemeInfo.h
Normal file
38
arm9/source/themes/ThemeInfo.h
Normal file
@@ -0,0 +1,38 @@
|
||||
#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; }
|
||||
};
|
||||
Reference in New Issue
Block a user