XXIIVV
Varvara Applications
Varvara Applications15X09

Theme files are the interface customization standard for Varvara software.

A .theme file begins with 6 bytes equal to the RGB values of 4 colors.

0a6f 05cf 0caf

The three shorts above correspond to the four colors below:

RedGreenBlueHexadecimal
A000#000000
Ba5c#aa55cc
C6ca#66ccaa
Dfff#ffffff

Emulators for monochromatic screens do not support Varvara's colors, instead will display colors 0x00 and 0x02 as black, 0x01 and 0x03 as white.

You can use the following Uxntal routine to implement theme support to your application:

@load-theme ( -- )
	;&path .File/name DEO2
	#0002 .File/length DEO2
	[ LIT2 -System/debug -System/r ]
	&l
		;&buf .File/read DEO2
		[ LIT2 00 -File/success-lb ] DEI EQU ?{
			[ LIT2r &buf $2 ] STHk DEO2r
			INC INC NEQk ?&l }
	POP2 JMP2r
	&path ".theme $1
Four colors should be more than enough for any interface.

incoming roms nasu oekaki potato turye basic varvara 2025