mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
fix(dark-mode): tslint errors
This commit is contained in:
@ -2,11 +2,11 @@ import { ios } from "../utils/utils";
|
|||||||
|
|
||||||
const majorVersion = ios.MajorVersion;
|
const majorVersion = ios.MajorVersion;
|
||||||
|
|
||||||
export const activityIndicatorViewStyle = () => { return majorVersion <= 12 ? UIActivityIndicatorViewStyle.Gray : UIActivityIndicatorViewStyle.Medium };
|
export const activityIndicatorViewStyle = () => majorVersion <= 12 ? UIActivityIndicatorViewStyle.Gray : UIActivityIndicatorViewStyle.Medium;
|
||||||
|
|
||||||
// UI Element Colors
|
// UI Element Colors
|
||||||
export const backgroundColor = () => { return majorVersion <= 12 ? UIColor.whiteColor : UIColor.systemBackgroundColor };
|
export const backgroundColor = () => majorVersion <= 12 ? UIColor.whiteColor : UIColor.systemBackgroundColor;
|
||||||
export const labelColor = () => { return majorVersion <= 12 ? UIColor.blackColor : UIColor.labelColor };
|
export const labelColor = () => majorVersion <= 12 ? UIColor.blackColor : UIColor.labelColor;
|
||||||
|
|
||||||
// Standard Colors
|
// Standard Colors
|
||||||
export const blueColor = () => { return majorVersion <= 12 ? UIColor.blueColor : UIColor.systemBlueColor };
|
export const blueColor = () => majorVersion <= 12 ? UIColor.blueColor : UIColor.systemBlueColor;
|
||||||
|
Reference in New Issue
Block a user