Support and General Use > Theming and Appearance Customization
Attempting to Alter USB Screen of a Pre-Existing Theme
(1/1)
bisqwik:
Hello, Rockbox forums!
I've been a lurker around these parts for a while, but this is the first time I feel like I need help with something directly.
For a good while now, one of my favorite themes has been InfoMatrix-Classic (found here: https://themes.rockbox.org/index.php?themeid=3072&target=ipod6g). But there were a few small areas where pixels were missing, so I took it upon myself to manually correct them with GIMP, which worked fine for the most part.
But now I've been trying to fix another gripe of mine with this theme, which is the USB Mode icon. I'm not that big a fan of the default Rockbox USB icon, and I've been wanting to change it now to a "custom-made" icon that I made which would sit right in the middle of the screen, similarly to this mock-up I created:
But I'm just not exactly sure how it's done. I've seen it executed well in other themes, but I don't know what tools would be required for me to get this to work.
Likewise, I had another question regarding USB Mode. A wide variety of Rockbox themes have some sort of message displayed on the top bar when plugged in, typically something akin to "USB Connected" or "Sync". I've noticed that when plugged in, InfoMatrix-Classic doesn't display any message. I don't know if this is some sort of toggle, or if it's something else at play that's stopping this from showing up.
I don't know if all of this is overly ambitious for someone like me, but I just want to have the most comfortable and polished experience possible with Rockbox. 8) If anyone has any sort of idea how I could do this (and where I could get software that lets me build and edit themes easier, such as the Rockbox emulator for iPod 6th gen), I would appreciate it greatly. ;D
chronicallyoffline:
So, you're going to want to look in the SBS file of the theme, rather than the CFG or WPS files. in the SBS (Statusbar-Screen) you should find a line with a conditional along the lines of
--- Code: ---%?if(%cs, =, 21)<%VI(clearScreen)%Vd(usb)|%VI(menu)%Vd(info)>
--- End code ---
In the CustomWPS docs, 21 is the USB screen, so this conditional is saying
IF the Current Screen (%cs is USB Screen (21,) then Load Viewport (clearscreen) then Display Viewport (usb.) | IF NOT, do this other thing, etc.
If the theme doesn't have a USB screen section in the SBS file, you'll need to create it, define it, then point it to the USB image.
Up top, you would want to pre-load the image
--- Code: ---%xl(usb,usb,0,0)
--- End code ---
From there I would look through the naming conventions in the theme to make sure you aren't accidentally calling something else twice. I took a look and it doesn't appear to have a USB screen implemented into it.
Edit: After looking further into the code, it seems VERY reliant on conditionals and info viewports. I'm taking a crack at it now, I'll post again if I get anything good haha.
Navigation
[0] Message Index
Go to full version