Support and General Use > Theming and Appearance Customization
[Solveded]"Browse Themes" menu display folders as well
GodEater:
I think psycho_maniac meant having your own "Themes" shortcut - which would contain shortcuts to all the subfolders under the Themes directory.
You clearly wouldn't access it from the "Browse Themes" menu entry any more, but it would still provide quick access to a sub-foldered themes folder.
Rincewind:
--- Quote from: Llorean on October 15, 2007, 06:27:09 AM ---You mean, completely ignoring the existing shortcut feature, which would in no way make folders available (shortcuts would be just as not-shown as actual folders).
--- End quote ---
Sorry, I confused something here. I didn't think about the existing shortcut plugin.
Job Van Dam:
The Shortcuts thing is ok but I started looking around the source code and by referencing the Commits since 4 weeks back I was able to find out where the Themes menu was (apps\menus\theme-menu.c, :-[) and started messing around with a single line.
I started messing around with this line (currently line 172):
--- Code: ---static struct browse_folder_info themes = {THEME_DIR, SHOW_CFG};
--- End code ---
and after a few tries changed it into this:
--- Code: ---static struct browse_folder_info themes = {THEME_DIR, ""};
--- End code ---
It does exactly what I wanted it to do now, the Browse Themes menu displays folders. At compilation it displays a small error but it still works though.
Thanks to everyone in this thread for there help, Jonathan Gordon for putting together the Themes menu and all the Rockbox developers for making the code so flexible and easy to read. ;D
Navigation
[0] Message Index
[*] Previous page
Go to full version