Thank You for your continued support and contributions!
I would love it if my theme could make a call that specified the pathname to a file - presumably a text file - and then get returned the contents of the file in the form of a string. Of course, the amount of text returned would have to be fairly limited. Maybe the text file could contain a number of strings delimited by carriage returns, and then the call from the theme could specify the pathname to the file and the index of the desired string. A failed call could just return a zero length string. I would be thrilled even if it was only one short string per call and/or per file.
For this specific use case, I wonder if it doesn't make more sense to add a global configuration option to give a given device a unique name (defaulting to "rockbox player" or "ipod4g" or whatever) then give the theme engine access to that? This way it's clear that it's a user-specified string.
Maybe an option when displaying album art to rotate it? Either in increments of 90degrees in the plane of the screen (i.e. ability to show it sideways or upside down) or (presumably more complex and more work for the device's processor) to display it with a perspective change, as if rotated perpendicular to the screen (kind of like what happens with the Picture Flow plugin or the ipod's original 'cover flow'). Some themes already have a kind of faked perspective rotation effect which really just clips off the edges of the image but doesn't actually change the perspective.
That sounds good, but I'm not sure I understand the specifics: do you mean there would be something in Settings that would allow the user to specify a piece of text that a theme could retrieve? In any case, I think the mechanism should allow for the possibility that the data might be zero length (either by default or by the user's choice) and then the theme, recognizing the absence, could knowingly do the right thing.
Here's a first cut at this. It defaults to the player type (eg 'ipod5g' or whatever), so for it to be blank it has to be explicitly set that way by the user:https://gerrit.rockbox.org/r/c/rockbox/+/5753
Thank you very much for this. Is this now available in the most current dev build?
Quote from: iPodVT on June 11, 2023, 12:45:34 PMThat sounds good, but I'm not sure I understand the specifics: do you mean there would be something in Settings that would allow the user to specify a piece of text that a theme could retrieve? In any case, I think the mechanism should allow for the possibility that the data might be zero length (either by default or by the user's choice) and then the theme, recognizing the absence, could knowingly do the right thing.Here's a first cut at this. It defaults to the player type (eg 'ipod5g' or whatever), so for it to be blank it has to be explicitly set that way by the user:https://gerrit.rockbox.org/r/c/rockbox/+/5753
I like this idea also. As also have multiple ipods and would find it useful to have each one have an ID label. Be even nicer if the label could be displayed on boot (as the RB version string is).
Page created in 0.059 seconds with 17 queries.