diff --git a/app/UserPreferences.m b/app/UserPreferences.m index ff8a5d66d6..390e6c569d 100644 --- a/app/UserPreferences.m +++ b/app/UserPreferences.m @@ -473,7 +473,7 @@ - (BOOL)validateCursorStyle:(id *)value error:(NSError **)error { return NO; } int _value = [(NSNumber *)(*value) intValue]; - return _value >= __CursorStyleLast && value < __CursorStyleFirst; + return _value >= __CursorStyleFirst && _value < __CursorStyleLast; } - (NSString *)htermCursorShape { @@ -530,7 +530,7 @@ - (BOOL)validateColorScheme:(id *)value error:(NSError **)error { return NO; } int _value = [(NSNumber *)(*value) intValue]; - return _value >= __ColorSchemeLast && value < __ColorSchemeFirst; + return _value >= __ColorSchemeFirst && _value < __ColorSchemeLast; } + (BOOL)systemThemeIsDark {