Giter VIP home page Giter VIP logo

libstatusbar's Introduction

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.




libstatusbar's People

Contributors

phoenix3200 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

libstatusbar's Issues

Support for 5.0

Support for 5.0, wondering if you could work a solution for IOS5? Crashs Mobile Substrate currently.

Time and strange number alternating in statusbar

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

Not sure what icons to include

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

conflict issues

the libstatusbar may conflict with assistive touch.
please fix it

LockInfo and MuteIcon crash

I got reports that the latest update of libStatusBar causes SpringBoard crashes while using LockInfo and MuteIcon

Thanks

Icon disappears

Icon disappears at Safari and so on but stay at Home screen.

No email alert sounds

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

iOS 9.3.3 Compatibility

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 :)

How to make a animation item?

It looks like can only create a static image named /System/Library/Frameworks/UIKit.framework/***

How to make a animation item?
Thanks.

[iOS 9.0.x] Icons not appearing on lock screen and disappearing when changing apps

I've noticed a few bugs/problems since iOS 9.0.x:

  • The master branch does not have the latest code pushed to it
    • An update came out through the repo but there is no update here.
    • This hurts developers from investigating what the problem is and trying to fix it.
  • Icons do not appear on lock screen
    • Seems to affect all graphic icons (versus custom text)
    • Once the entire status bar was gone
  • Icons sometimes disappear when switching apps
    • Seems to affect any non-standard icons or custom text
  • Enabling Protean sometimes prevents other icons from appearing
    • Seems like it is an issue with Protean and not libstatusbar but mentioning for good measure

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.

iOS 8.x Support Needed

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]];

Crashes iOS 6.1 on iPad 3 since two versions on cydia

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.