Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Theme Interface

Adam Demasi edited this page Aug 8, 2016 · 3 revisions

FlagPaint 2.4 and newer allow themes to pick their own colors for icons, instead of having FlagPaint pick one on its own (which might not work well for all themes).

The interface is really simple – create a plist at the root of your theme called FlagPaint.plist (eg, /Library/Themes/Flirb.theme/FlagPaint.plist), and in there create a key called Tints. This is a dictionary of bundle IDs as keys, and either a hexadecimal color as a string, or an array containing integers of red, green, and blue values between 0 and 255.

Here is an example:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Tints</key>
	<dict>
		<!-- Method 1: CSS-style hex code. -->
		<key>com.apple.MobileSMS</key>
		<string>#ff0000</string>

		<!-- Method 2: Array of red, green, and blue values. -->
		<key>com.tapbots.Tweetbot4</key>
		<array>
			<integer>128</integer>
			<integer>0</integer>
			<integer>255</integer>
		</array>
	</dict>
</dict>
</plist>

For consistency, pick only one of the two methods.

If you have any issues, you can always get in touch with us through the Email Support button in the FlagPaint settings.

Clone this wiki locally