mirror of
https://github.com/ish-app/ish.git
synced 2026-01-18 13:57:29 +00:00
53 lines
1.2 KiB
Objective-C
53 lines
1.2 KiB
Objective-C
//
|
|
// UserPreferences.h
|
|
// iSH
|
|
//
|
|
// Created by Charlie Melbye on 11/12/18.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
typedef NS_ENUM(NSInteger, CapsLockMapping) {
|
|
CapsLockMapNone = 0,
|
|
CapsLockMapControl,
|
|
CapsLockMapEscape,
|
|
};
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface Theme : NSObject
|
|
|
|
- (instancetype)initWithProperties:(NSDictionary<NSString *, id> *)props;
|
|
- (NSDictionary<NSString *, id> *)properties;
|
|
|
|
+ (instancetype)presetThemeNamed:(NSString *)name;
|
|
+ (NSArray<NSString *> *)presetNames;
|
|
- (NSString *)presetName;
|
|
|
|
@property (nonatomic, readonly) UIColor *foregroundColor;
|
|
@property (nonatomic, readonly) UIColor *backgroundColor;
|
|
@property (readonly) UIKeyboardAppearance keyboardAppearance;
|
|
@property (readonly) UIStatusBarStyle statusBarStyle;
|
|
|
|
@end
|
|
extern NSString *const kThemeForegroundColor;
|
|
extern NSString *const kThemeBackgroundColor;
|
|
|
|
@interface UserPreferences : NSObject
|
|
|
|
@property CapsLockMapping capsLockMapping;
|
|
@property (nonatomic) Theme *theme;
|
|
@property BOOL shouldDisableDimming;
|
|
@property NSNumber *fontSize;
|
|
@property NSArray<NSString *> *launchCommand;
|
|
@property NSArray<NSString *> *bootCommand;
|
|
@property BOOL bootEnabled;
|
|
|
|
+ (instancetype)shared;
|
|
|
|
- (BOOL)hasChangedLaunchCommand;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|