phoenix3200 / libstatusbar Goto Github PK
View Code? Open in Web Editor NEWCompatibility layer for the statusbar under 4.0
Compatibility layer for the statusbar under 4.0
Libstatusbar: pwning the statusbar for you. Libstatusbar is chiefly a compatibility library for 3.x-like statusbar icon support under 4.x++, but allows for a more advanced API for custom time strings and icon swapping. All icons should be placed in either: 3.x style, does not support retina icons: Silver statusbar: /System/Library/CoreServices/SpringBoard/Default_<name>.png Black statusbar: /System/Library/CoreServices/SpringBoard/FSO_<name>.png 4.x style, supports retina (@2x) icons: Silver statusbar: /System/Library/Frameworks/UIKit.framework/Silver_<name>.png Black statusbar: /System/Library/Frameworks/UIKit.framework/Black_<name>.png 5.x style, additionally supports notification center icons: Silver statusbar: /System/Library/Frameworks/UIKit.framework/ColorOnGrayShadow_<name>.png Black statusbar: /System/Library/Frameworks/UIKit.framework/WhiteOnBlackEtch_<name>.png Notif. statusbar: /System/Library/Frameworks/UIKit.framework/WhiteOnBlackShadow_<name>.png 6.x style: Same as 5.x, but the silver statusbar went poof. 7.x style: Take a completely black icon and tint it to the appropriate shade. /System/Library/Frameworks/UIKit.framework/LockScreen_<name>.png /System/Library/Frameworks/UIKit.framework/Black_<name>.png To support color icons, use the following naming conventions: /System/Library/Frameworks/UIKit.framework/LockScreen_<name>_Color.png /System/Library/Frameworks/UIKit.framework/Black_<name>_Color.png /System/Library/Frameworks/UIKit.framework/White_<name>_Color.png 3.x-6.x styles are cross compatible; 7.x is not. Blame Apple for royally screwing the pooch by using overlapping names with different meanings (black statusbar vs black icon) vs. the 4.x convention. So, for 7.x, please change over/update your icons for the new style. --- BASIC API --- 3.x-style, simply add/remove items. These will appear in the right list. [UIApp addStatusBarImageNamed: (NSString*) name]; [UIApp removeStatusBarImageNamed: (NSString*) name]; --- ADVANCED API --- Libstatusbar also supports the ability to swap out icons, temporarily hide them, and change the statusbar string. See LSStatusBarItem.h for the API and Testing.mm for example usage Additionally, Libstatusbar now supports the ability to add and remove icons from daemons. Use with care.
Hi Phoenix3200,
I know you have lots on, and one of the main reasons you open sourced this so that other users could contribute to ensure it was Compatible for newer jailbreaks, but the current build (0.9.9.0-1) is not compatible and its causing a few tweaks to misbehave :(
Could you please take a look at this?
Forever grateful,
Jordan :)
Please could you tell me what files to include when targeting 5.1.1, 6.0 and 7.0.
I have the icons appearing on 7.0 but can't get them to appear on 6.0. I included:
LockScreen_InsomniaPro.png
WhiteOnBlackEtch_InsomniaPro.png
ColorOnGrayShadow_InsomniaPro.png
Black_InsomniaPro.png
All in the UIKit folder and also all the @2x versions.
Thanks
Support for 5.0, wondering if you could work a solution for IOS5? Crashs Mobile Substrate currently.
It looks like can only create a static image named /System/Library/Frameworks/UIKit.framework/***
How to make a animation item?
Thanks.
UIImage kitImageNamed returns null and kCFCoreFoundationVersionNumbers are needed for iOS 8.x versions.
As a quick fix, in UIStatusBarCustomItemView.mm, I have been using:
UIImage* image_color = [$UIImage imageWithContentsOfFile: [NSString stringWithFormat: @"/System/Library/Frameworks/UIKit.framework/%@_%@_Color.png", isLockscreen? @"LockScreen" : isBlack ? @"Black" : @"White", itemName]];
UIImage* image_base = image_color ? 0 : [$UIImage imageWithContentsOfFile: [NSString stringWithFormat: @"/System/Library/Frameworks/UIKit.framework/%@.png", expandedName_default]];
Currently running 7.0.4. I updated statusnotifier and now the time and strange number (9,0) alternate display in the status bar. Only way to get the time to remain constant is to uninstall libstatusbar. Any ideas what that strange number is? Seems to increment each time I uninstall and reinstall libstatusbar
Icon disappears at Safari and so on but stay at Home screen.
hi guys,
I have intelliscreen x installed on my iPhone 6+ running 8.4.
I have a problem where I don't get any email alert sounds and my screen doesn't wake to alert me of a new email.
This has happened on iOS 7 and intelliborn told me to install libstatusbar which dos fix the issue. However this has happened again and libstatusbar hasn't fixed the issue. Intelliborn say it is because libstatusbar hasn't been updated. Just wondering if there was any patches coming. Up or if your aware of this issue
I got reports that the latest update of libStatusBar causes SpringBoard crashes while using LockInfo and MuteIcon
Thanks
the libstatusbar may conflict with assistive touch.
please fix it
Would it be possible to create stickable icons?
I've noticed a few bugs/problems since iOS 9.0.x:
I noticed there were comments in the open pull request regarding some of these issues. I decided to open the issue to provide a better place to discuss.
Cannot boot into iOS 6.1 on a jailbroken iPad 3 since two previous versions of libstatusbar as of Sunday feb 10th 2013 from cydia. Have tested booting with the libstatusbar mobilesubstrate extension disabled from within sbsettings and the device will boot fine. Otherwise hangs on startup forever.
If you need logs or something I can try and get them for you.
Hi,
would be cool if you could check for an @2x image in your view file like noticed here:
http://atastypixel.com/blog/uiimage-resolution-independence-and-the-iphone-4s-retina-display/
The new update for iOS 9 crashes the springboard for iOS 8.3 and 8.4 devices. Temporary downgrade available at http://elijahandandrew.com/repo.
Libstatusbar isn't supported in 7.1 yet.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.