A custom theme for Picotron that tries to recreate the iconic colors of PICO-8's editors.
There are two ways to get this theme into your copy of Picotron. The first one is the more complicated manual process that I originally posted, and the second is just copy-pasting a command or two into the terminal:
Method 1: The manual way
Method 2: The copy-paste-into-the-terminal-way
Enjoy!
@merwok Not sure what exactly you mean by that, but if it helps, here is a single copy-paste terminal command that should do the job much faster than the multi-step process above:
store("/appdata/system/themes/pico8.theme",unpod("b64:bHo0AE0BAAACAgAA8BJ7ZGVza3RvcF9wYXR0ZXJuPXB4dQBDIAwMBEcQBxAHADcGADAQNwAGABFXEgBBBxAHkAIACAgA4YAsZG9yX2ZyYW1lPTEzDQCTYnV0dG9uPTUsYgAxMT01GABxdGl0bGU9NhcAc19zaGFkb3clAEQwPTE3LgAyMD0xRgBxb3JkZXI9Mg4ASG1hbnQSAAIrAARFAAMSAPEHMT0xNCxpY29uMT02LHRvb2xiYXI9NxIAEzKcAAFIAAKtABEyGQA1MD03GAACoAAkMzE8ABAxNQAAJQA1Mz0xJQAD3QAVMiYAAVsAAwwAxV9zZWxlY3RlZD0xNRQAAEIACCQAZWl0ZW09Mg8ApGJhY2s9OCx3aW7hABIxDQACaQAhMTMOAAO0ABE5DQACqQAQNwwANGRvdzcAFTAQAAOjAAQQAAI8ABQ4DwCQdGl0bGU9MTV9")) |
what I meant exactly was to upload the file /appdata/system/themes/pico8.theme :)
thanks for the code!
@Kaius: Love this theme, def gonna keep this in rotation.
Also, love how easy it is to share the theme with that one-liner.
Would you (or someone) mind telling me how you got the .theme file into a b64 string? I tried doing the encoding manually, but it failed - so pretty sure I'm missing something that's built into Picotron.
Thanks in advance.
@Liquidream You can use the pod
function to encode a POD, and then unpod
to decode. When encoding, the second argument determines how it gets encoded. 7
will get you the base64 text string that we're interested in. (Notably, it's already wrapped around an unpod("...")
call for you. Also, unpod
seems to be smart enough to figure out the format of the POD string all by itself.)
For example, foo=pod(fetch"/system/themes/aqua.theme",7)
will get a base64-encoded string of the default aqua theme into the variable foo
(.theme
files are really just .pod
files under a different name; try renaming a .theme
file into a .pod
file, and then double-click it in the filenav to open it in the podtree app). After that, you can then type print(foo)
into the terminal to see the string, and then copy it to your clipboard with set_clipboard(foo)
!
For more information, see the HTML document detailing PODs.
@Kaius:That's perfect - thanks for taking the time to provide that info.
I'd yet to start playing with POD files - this all sounds very cool. 👍
[Please log in to post a comment]