-
Notifications
You must be signed in to change notification settings - Fork 17
Badges
CoolStar edited this page Feb 13, 2017
·
7 revisions
Anemone supports theming badges on the home screen.
In the SpringBoard bundle (com.apple.springboard), Anemone checks for SBBadgeBG(@2x/@3x).png. If found, Anemone will load that image as the badge background instead of letting iOS render it as a solid red color.
Image sizes are 29x31 (non-retina) and 58x62 (retina). See the ModernBadges theme for an example.
To your Info.plist, add the key "BadgeSettings" (as a dictionary). You may then use the standard Label Settings Keys to theme the badge labels.
The following is an example Info.plist from the "Modern Badges" theme by coolstar.
<?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>BadgeSettings</key>
<dict>
<key>FontName</key>
<string>Helvetica Bold</string>
<key>FontSize</key>
<real>16</real>
<key>HeightChange</key>
<real>0</real>
<key>WidthChange</key>
<real>4</real>
<key>TextXoffset</key>
<real>2.0</real>
<key>TextYoffset</key>
<real>-2.0</real>
</dict>
</dict>
</plist>