Revert readme and fix formatting

This commit is contained in:
friedkeenan 2018-09-09 21:28:08 -05:00 committed by GitHub
parent 20221d6b0d
commit 43af1fc96f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 104 additions and 104 deletions

View File

@ -1,11 +1,8 @@
#### Theming
See the [example](https://github.com/friedkeenan/nx-hbmenu/releases/download/2.0.1/hbtheme.cfg) in the releases for the correct structure. In short, there are two seperate entries for the dark and light system themes, but you only need to make a them for one of them for it to work. If there are any colors missing, the missing color is set to #800080 (purple), and if anything else is wrong the theme won't take effect. You place the hbtheme.cfg file on the root of the SD card and then you should be good to go.
#### Usage #### Usage
See [Homebrew_Applications](http://switchbrew.org/index.php?title=Homebrew_Applications) for SD layout and applications, etc. See [Switchbrew](http://switchbrew.org/index.php?title=Homebrew_Menu) for hbmenu docs. See [Homebrew_Applications](http://switchbrew.org/index.php?title=Homebrew_Applications) for SD layout and applications, etc. See [Switchbrew](http://switchbrew.org/index.php?title=Homebrew_Menu) for hbmenu docs.
#### Download #### Download
The latest release is available from the [releases](https://github.com/friedkeenan/nx-hbmenu/releases/latest) page. The latest release is available from the [releases](https://github.com/switchbrew/nx-hbmenu/releases/latest) page.
#### Building #### Building
Build with ```make nx``` or just run ```make```. Build with ```make nx``` or just run ```make```.
@ -14,3 +11,4 @@ Build with ```make nx``` or just run ```make```.
* This uses code based on 3DS [new-hbmenu](https://github.com/fincs/new-hbmenu). * This uses code based on 3DS [new-hbmenu](https://github.com/fincs/new-hbmenu).
* [nanojpeg](https://svn.emphy.de/nanojpeg/trunk/nanojpeg/nanojpeg.c) is used for handling JPEG icons. This library doesn't support lossless JPEG. * [nanojpeg](https://svn.emphy.de/nanojpeg/trunk/nanojpeg/nanojpeg.c) is used for handling JPEG icons. This library doesn't support lossless JPEG.

View File

@ -11,6 +11,7 @@ color_t colorFromSetting(config_setting_t *rgba) {
return MakeColor(128,0,128,255); return MakeColor(128,0,128,255);
return MakeColor(config_setting_get_int_elem(rgba, 0), config_setting_get_int_elem(rgba, 1), config_setting_get_int_elem(rgba, 2), config_setting_get_int_elem(rgba, 3)); return MakeColor(config_setting_get_int_elem(rgba, 0), config_setting_get_int_elem(rgba, 1), config_setting_get_int_elem(rgba, 2), config_setting_get_int_elem(rgba, 3));
} }
void themeStartup(ThemePreset preset) { void themeStartup(ThemePreset preset) {
config_t *cfg = NULL; config_t *cfg = NULL;
cfg = (config_t *) malloc(sizeof(config_t)); cfg = (config_t *) malloc(sizeof(config_t));

View File

@ -28,6 +28,7 @@ typedef enum
} ThemePreset; } ThemePreset;
color_t colorFromSetting(config_setting_t *rgba); color_t colorFromSetting(config_setting_t *rgba);
void themeStartup(ThemePreset preset); void themeStartup(ThemePreset preset);
theme_t themeCurrent; theme_t themeCurrent;