-
Notifications
You must be signed in to change notification settings - Fork 17
Custom Blurs
Anemone supports overriding the styles of blurs, which allows theming many aspects of iOS 7 & 8. iOS uses a set of blur styles throughout the system.
Blur settings, just like images, stack up as themes are enabled so you can feel free to include multiple sub-themes that have different blur settings and they'll add up.
Key: "policy"
Type: String
Default: blacklist
The blur policy specifies whether blur settings 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 blur policy setting.
Key: "BlurSettings" Type: Dictionary
A dictionary with the values as integers to specify the style to override a system blur. The key is the class or superclass of the desired UIView that contains the backdrop view (blur). Example classes are listed below.
Note: More specific class definitions override less-specific class definitions, regardless of theme ordering.
Class | Description |
---|---|
UIView | Everything. May be easily overridden though. |
Global | An alias for UIView. |
PUPhotosSectionHeaderView | The header views in the photos app. |
_UIDimmingKnockoutBackdropView | Alert Views. |
SBControlCenterContentContainerView | Control Center |
SBBulletinWindow | Notification Center |
The blur styles are available on the iPhone Dev Wiki but we have mirrored it below for your convenience.
Blur Style | Description |
---|---|
-2 | No Blur. |
0, 1000, 1003, 2020, 10090, 10100 | Light Blurs. |
1, 1001, 1100, 2030, 11050, 11060 | Dark Blurs (E.G. Notification Center). |
2 | Blur Only. |
2010 | Ultralight Blurs. |
2050, 11070 | Ultradark Blurs. |
2060 | Adaptive Light Blurs (E.g. Control Center). |
2070 | Semi-Light Blurs. |
2071 | Flat Semi-Light Blurs. |
2080 | Ultra Colored Blurs. |
3900 | Passcode Paddle Style Blurs (iOS 7.1+). |
3901 | Light Keyboard Blurs (iOS 7.1+). |
An example night mode theme for the photos app is available below. It uses Custom Blurs and 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></string>
<string>com.apple.mobileslideshow</string>
</array>
<key>policy</key>
<string>whitelist</string>
</dict>
<key>OverrideColors</key>
<dict>
<key>BarBackgroundColor</key>
<string>black</string>
<key>BlackColor</key>
<string>white</string>
<key>DarkTextColor</key>
<string>#FAFAFA</string>
<key>SystemWhiteColor</key>
<string>#212121</string>
<key>TableBackground</key>
<string>#212121</string>
<key>TableCellBackground</key>
<string>#424242</string>
<key>TableCellSelectionBackground</key>
<string>#757575</string>
<key>WhiteColor</key>
<string>#424242</string>
</dict>
<key>TintColors</key>
<dict>
<key>Global</key>
<string>#00E5FF</string>
<key>UIStatusBar</key>
<string>#EEEEEE</string>
</dict>
<key>TintFilter</key>
<dict>
<key>BundleIdentifiers</key>
<array>
<string>com.apple.mobileslideshow</string>
</array>
<key>policy</key>
<string>whitelist</string>
</dict>
<key>BlurFilter</key>
<dict>
<key>BundleIdentifiers</key>
<array>
<string>com.apple.mobileslideshow</string>
</array>
<key>policy</key>
<string>whitelist</string>
</dict>
<key>BlurSettings</key>
<dict>
<key>PUPhotosSectionHeaderView</key>
<string>2080</string>
</dict>
</dict>
</plist>