Commit Graph

32 Commits

Author SHA1 Message Date
yellows8
422039f727
Use physfs instead of minizip for asset loading, etc. 2021-10-22 13:18:30 -04:00
yellows8
3f73855170
Added theme support for dirs and .zip via physfs. Closes #121. 2021-10-21 15:26:30 -04:00
yellows8
ec24d595d6
Updated the default highlightGradientEdgeColor. 2020-01-08 17:03:49 -05:00
yellows8
a4ad7b01b7
The icon sizes for theme-layout menuListIcon/menuActiveEntryIcon can now be controlled with the size field, with the internal imageSize field being used when size is invalid. When entering Theme Menu, the initially selected menu-entry is now the currently configured theme. Minor improvements. 2020-01-04 18:08:54 -05:00
yellows8
6ee5d36084
Removed hbmenuLogoImage from theme_t and just determine which AssetId to use for logo during rendering, imageSize from the asset is now used instead of from the layoutobj. Removed drawImageFromLayout since it's no longer used, and removed imageSize from the layout objects which don't need it anymore. 2020-01-03 17:49:08 -05:00
yellows8
981749cfb7
Added highlightGradientEdgeColor for theme config. 2020-01-03 11:47:49 -05:00
yellows8
9eda227d33
Added logoColor to the theme config. 2020-01-02 22:48:48 -05:00
yellows8
d11585589e
Added support for using themes with extension '.romfs', which contains '/theme.cfg', optionally '/icon.jpg' for the menu-entry in theme-menu, and any assets. Added 'assets' group to theme config, this is only used with .romfs themes. Added 'backgroundImage' to layout theme config, which requires assets.background_image to be setup. Various improvements. 2020-01-02 11:08:17 -05:00
yellows8
b40d558458
Fixed a crash in touch handling for star-button when the current directory is empty (no menu entries). Implemented layouts which can optionally be loaded from theme config, closes #83. 2019-12-26 01:40:54 -05:00
yellows8
e5d9851250
Actually fix the stringop warning. 2019-12-10 20:16:59 -05:00
yellows8
c2743dcdd5
Fixed a string warning with gcc 9.x (and added the same change for other lines). 2019-12-08 17:00:17 -05:00
fincs
ce35f40f31 Display "Applet Mode" indicator when running under an applet 2019-07-29 17:36:59 +02:00
friedkeenan
48a4819e67 Fix stars with custom themes 2019-07-09 15:33:42 -04:00
hippydave
d6c780256f Add starred favourites at start of list (#91)
* Add starred favourites at start of list
2019-07-09 13:33:21 -04:00
yellows8
bb53a8ac81 Load assets from a .zip in romfs (romfs/ dir for pc-build) using minizip, instead of embedding it in data/. Sync Makefile.nx with latest switch-examples Makefile, with romfs. Automatically build the assets .zip in Makefile. Moved data/ to assets/ and moved data/unused/ to assets_unused/. Use #error in nx_audio.c since it's not supported currently. 2018-10-29 00:30:09 -04:00
yellows8
d97eebc26f Display a progress bar for netloader in the msgbox. Adjusted the language.c netloader strings so that the total newlines for each StrId matches. Fixed GetTextXCoordinate with 'c'. Moved the menuMsgBoxSetNetloaderState call into menuUpdateNetloader and only pass netloaderState into menuUpdateNetloader, etc. Use theme colors in msgbox. Various msgbox adjustments. Added progressBarColor to theme. 2018-10-24 18:38:50 -04:00
yellows8
80e2e0aae7 Display '{button} {text}' for netloader. Added theme handling for this. StrId_NetLoader is used for this, with '3dslink' removed from the text. 2018-10-17 10:17:47 -04:00
yellows8
e01ca3150e Moved path init code from menuStartup() into new func menuStartupPath(), which now creates the config dirs if needed. Added menuGetRootBasePath(), which is now used for config paths and pc-build fonts. Changed some funcs from () to (void). Fixed broken button handling in pc_main for theme-menu. This fixes pc-build support for config/theme-menu. 2018-10-01 12:53:42 -04:00
yellows8
a9d7a47f2e Removed removeDriveFromPath() and store the theme filename in settings.cfg instead of the absolute path. 2018-09-29 11:58:29 -04:00
NightlyFox
992c4c482b Implemented a theme switcher feature (#62)
* Implemented Theme Menu.

* Minor adjustments.

* added two new theming attributes, borderColor, borderTextcolor, allows users to modify the boxes that surrounds the menu entries

* added theme info to config file, users can now add theme author, theme name, and theme version to a theme config file.

* tested building on mac osx, added to .gitignore and make clean for files generated on osx

* The path for the theme is now stored in a config string in settings.cfg, instead of a hard-coded theme.cfg path.

* added functions to create/modify settings config for hbmenu theme

* added Default theme entry that will always insert itself at the front of the list of themes

* added code for + and - button, using - button for theme menu now (button display for this is disabled).
2018-09-28 23:20:24 -04:00
friedkeenan
8909142fb4 Implement Theming (#57)
* Implement theming and fix spelling errors, fixes issue #6.

Now requires libconfig
"separator" was spelled "seperator"

* Added default case for when the system theme is not the values for light/dark.

The default case acts like the system theme is the dark one.
2018-09-13 15:16:33 -04:00
yellows8
c4d22af61e Use SharedFont for the A/B button icons. 2018-07-27 21:05:25 -04:00
Dave Murphy
e684bb1b71 fix old style initialisers 2018-03-14 23:49:03 +01:00
Adubbz
e93a484e86 Added basic message boxes 2018-03-05 20:41:42 +01:00
Sahin Habermann
f98d33ace2 Added back button 2018-02-26 23:52:13 +01:00
Adubbz
f23f133404 Changed icon highlight to flashing aqua 2018-02-26 23:52:13 +01:00
Adubbz
7a991f2f94 Switched font, changed the background colour 2018-02-26 23:52:13 +01:00
Adubbz
df8c215d43 Changed hbmenu logo 2018-02-26 23:52:13 +01:00
Adubbz
1bce371999 Added themed launch button description 2018-02-26 23:52:13 +01:00
Adubbz
d534aaa834 Fixed setting themes automatically 2018-02-26 23:52:13 +01:00
Adubbz
4ef5c0dd15 Added a subtle shadow to the icons 2018-02-26 23:52:13 +01:00
Adubbz
4653c32646 Added a light theme 2018-02-26 23:52:13 +01:00