mirror of
https://github.com/luxfi/wallet.git
synced 2026-10-30 15:13:19 +00:00
Copies apps/extension, apps/mobile and 10 pkgs (wallet, ui, config, utilities, sessions, gating, notifications, analytics, eslint-config, prices) into a standalone pnpm workspace. Resolves merge conflict markers in extension and mobile package.json files, strips build artifacts (.wxt, .output, Pods).
27 lines
678 B
Objective-C
27 lines
678 B
Objective-C
#import "RCTThemeModule.h"
|
|
#import <React/RCTConvert.h>
|
|
|
|
@implementation ThemeModule
|
|
|
|
RCT_EXPORT_MODULE();
|
|
|
|
RCT_EXPORT_METHOD(setColorScheme : (NSString *)style) {
|
|
UIUserInterfaceStyle userInterfaceStyle;
|
|
|
|
if ([style isEqualToString:@"dark"]) {
|
|
userInterfaceStyle = UIUserInterfaceStyleDark;
|
|
} else if ([style isEqualToString:@"light"]) {
|
|
userInterfaceStyle = UIUserInterfaceStyleLight;
|
|
} else {
|
|
userInterfaceStyle = UIUserInterfaceStyleUnspecified;
|
|
}
|
|
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
for (UIWindow *window in [UIApplication sharedApplication].windows) {
|
|
window.overrideUserInterfaceStyle = userInterfaceStyle;
|
|
}
|
|
});
|
|
}
|
|
|
|
@end
|