hbang / libcephei

Useful functions for tweak developers
https://hbang.github.io/libcephei
Other
207 stars 34 forks source link

Fix broken navbar #30

Closed Muirey03 closed 5 years ago

Muirey03 commented 5 years ago

HBAppearanceSettings inits all its default values in - (instancetype)init (including the crucial _translucentNavigationBar, in fact, that's the only thing it inits). However, for most HBListControllers, hb_appearanceSettings is never set, so when PSListController+HBTintAdditions.x accesses self.hb_appearanceSettings.translucentNavigationBar on line 96, hb_appearanceSettings is nil so self.hb_appearanceSettings.translucentNavigationBar is NO even though its default should be YES. The fix for this is just to set hb_appearanceSettings to a new instance of HBAppearanceSettings in HBListController's init so that self.hb_appearanceSettings is never nil and all the default values are read correctly.