-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
theme: Adds very basic theme support. #112
base: master
Are you sure you want to change the base?
Conversation
bb58e9f
to
b9803f8
Compare
e21adb1
to
a504757
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks pretty good, rudimentary 1080i support may be a decent idea but doesn't have to be within the scope of this PR
|
||
std::ifstream themeFile(themeFilePath); | ||
nlohmann::json json; | ||
// FIXME: Once nxdk supports C++ Exceptions, this needs to be put in a try-catch block! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is supported now is it not?
public: | ||
struct MenuTheme { | ||
std::string font; | ||
// TODO: Actually support this in Font. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit: font not Font
{ "mount", nlohmann::json(o.mount) }, | ||
#ifdef NXDK | ||
{ "network", nlohmann::json(o.net) }, | ||
#endif | ||
{ "logging", nlohmann::json(o.logging) }, | ||
{ "homescreenConfig", nlohmann::json(o.homescreen) } }; | ||
{ "homescreen", nlohmann::json(o.homescreen) } }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: specific reason why this was changed? Listing it as config may make it easier for outside devs to understand.
Puts in the foundation for theme selection.
Resources/NeXThemes
and drops thenew_all
workaround by addingRESOURCES
toTARGET
.Theme
JSON parsing class.default
theme subdir and adds a .json definition file for them.Some nice followups would be:
Font
so the font color can be changed.HalQuickRebootRoutine
to return to dashboard XboxDev/nxdk#507 will need to be fixed)