123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #import "CCGlobal.h"
- NSString *const appApplicationSupport = @"Library/Application Support";
- NSString *const appDatabase = @"Library/Application Support/Crypto Cloud";
- NSString *const appCertificates = @"Library/Application Support/Certificates";
- NSString *const webDAV = @"/remote.php/webdav";
- NSString *const dav = @"/remote.php/dav";
- @implementation CCAspect
- + (void)aspectNavigationControllerBar:(UINavigationBar *)nav encrypted:(BOOL)encrypted online:(BOOL)online hidden:(BOOL)hidden
- {
- nav.translucent = NO;
- nav.barTintColor = COLOR_NAVIGATIONBAR;
- nav.tintColor = COLOR_NAVIGATIONBAR_TEXT;
- [nav setTitleTextAttributes:@{NSForegroundColorAttributeName : COLOR_NAVIGATIONBAR_TEXT}];
- if (encrypted)
- [nav setTitleTextAttributes:@{NSForegroundColorAttributeName : COLOR_CRYPTOCLOUD}];
-
- if (!online)
- [nav setTitleTextAttributes:@{NSForegroundColorAttributeName : COLOR_TEXT_NO_CONNECTION}];
- nav.hidden = hidden;
-
- [nav setAlpha:1];
- }
- + (void)aspectTabBar:(UITabBar *)tab hidden:(BOOL)hidden
- {
- tab.translucent = NO;
- tab.barTintColor = COLOR_TABBAR;
- tab.tintColor = COLOR_TABBAR_TEXT;
-
- tab.hidden = hidden;
-
- [tab setAlpha:1];
- }
- @end
|