-
Notifications
You must be signed in to change notification settings - Fork 17
Override Colors
Anemone supports overriding commonly used system colors, which allows theming many aspects of iOS 7 & 8. Just like tint colors, a special set of colors are system colors in iOS and used in many views on the system.
Color Override settings, just like images, stack up as themes are enabled so you can feel free to include multiple sub-themes that have different color override settings and they'll add up.
Key: "policy"
Type: String
Default: blacklist
The color policy specifies whether Tints should be allowed on a whitelist or blacklist basis. Set to "whitelist" to whitelist individual apps.
Key: "BundleIdentifiers" Type: Array
An array of bundle id's to whitelist or blacklist based on the color policy setting.
Key: "OverrideColors" Type: Dictionary
A dictionary with the values as CSS-compatible color strings to specify the color to override a system color. The key is the name of the desired system color to change. Example colors are listed below.
Color | Description |
---|---|
TableBackground | Change the background of table views. |
TableCellBackground | Change the background of table view cells. |
TableCellSelectionBackground | Change the background of selected table view cells. |
DarkTextColor | Change the color of dark text. |
SystemWhiteColor | Change the colors that are normally white. |
SectionHeaderBackgroundColor | Change the background of section headers. |
BlackColor | Change colors that are normally black (e.g. text) |
BarBackgroundColor | Change the background of toolbars & nav bars. |
An example night mode theme for the settings app is available below. It uses Override Colors with Tint Colors to achieve the effect.
<?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>ColorFilter</key>
<dict>
<key>BundleIdentifiers</key>
<array>
<string>com.apple.Preferences</string>
</array>
<key>policy</key>
<string>whitelist</string>
</dict>
<key>OverrideColors</key>
<dict>
<key>BarBackgroundColor</key>
<string>black</string>
<key>TableCellBackground</key>
<string>#424242</string>
<key>TableCellSelectionBackground</key>
<string>#757575</string>
<key>TableBackground</key>
<string>#212121</string>
<key>DarkTextColor</key>
<string>#FAFAFA</string>
<key>BlackColor</key>
<string>white</string>
</dict>
<key>TintColors</key>
<dict>
<key>Global</key>
<string>#00E5FF</string>
</dict>
<key>TintFilter</key>
<dict>
<key>BundleIdentifiers</key>
<array>
<string>com.apple.Preferences</string>
</array>
<key>policy</key>
<string>whitelist</string>
</dict>
</dict>
</plist>