[ios] fix: replace NightMode with Appearance

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
Kiryl Kaveryn 2024-02-12 11:55:55 +04:00 committed by Alexander Borsuk
parent 2f9ab5f8a6
commit 702f4aff2c
2 changed files with 4 additions and 4 deletions

View file

@ -168,12 +168,12 @@ using namespace power_management;
case MWMThemeVehicleDay:
NSAssert(false, @"Invalid case");
case MWMThemeDay:
nightMode = L(@"off");
nightMode = L(@"pref_appearance_light");
break;
case MWMThemeVehicleNight:
NSAssert(false, @"Invalid case");
case MWMThemeNight:
nightMode = L(@"on");
nightMode = L(@"pref_appearance_dark");
break;
case MWMThemeAuto:
nightMode = L(@"auto");

View file

@ -674,7 +674,7 @@
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="on"/>
<userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="pref_appearance_dark"/>
</userDefinedRuntimeAttributes>
</label>
</subviews>
@ -702,7 +702,7 @@
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="off"/>
<userDefinedRuntimeAttribute type="string" keyPath="localizedText" value="pref_appearance_light"/>
</userDefinedRuntimeAttributes>
</label>
</subviews>