From: Anuj Kumar Singh Date: Tue, 9 Jan 2024 05:52:09 +0000 (+0530) Subject: Resolve DT Bluetooth text next to toggle not visible due to wrong color X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c46f7a65cec0e91cf77970c5c247d75a6a06122b;p=profile%2Fiot%2Fapps%2Fdotnet%2Fsetting-bluetooth.git Resolve DT Bluetooth text next to toggle not visible due to wrong color This patch: - Resolves https://jira.sec.samsung.net/browse/TNINE-392 Change-Id: Ie1eb61a7a05397bab79efe9f3b712a608bb22c02 Signed-off-by: Anuj Kumar Singh --- diff --git a/SettingBluetooth/SettingBluetooth/View/BtMainView.cs b/SettingBluetooth/SettingBluetooth/View/BtMainView.cs index 29f9aed..302bdbd 100644 --- a/SettingBluetooth/SettingBluetooth/View/BtMainView.cs +++ b/SettingBluetooth/SettingBluetooth/View/BtMainView.cs @@ -13,6 +13,7 @@ namespace SettingBluetooth { static View mMainView; static TextLabel mBtMessage = null; + private static bool isLightTheme => ThemeManager.PlatformThemeId == "org.tizen.default-light-theme"; public static void CreateBtMessageView(View view) { @@ -100,7 +101,7 @@ namespace SettingBluetooth { if (mMainView) { - return mMainView; + mMainView = null; } mMainView = new View() @@ -121,6 +122,15 @@ namespace SettingBluetooth }; onOffItem.Label.HorizontalAlignment = HorizontalAlignment.Begin; + if (isLightTheme) + { + onOffItem.Label.TextColor = Color.Black; + } + else + { + onOffItem.Label.TextColor = Color.White; + } + var onOffSwitch = new Switch() { IsSelected = BtModel.IsEnabled, diff --git a/packaging/org.tizen.cssetting-bluetooth-1.9.0.rpk b/packaging/org.tizen.cssetting-bluetooth-1.9.0.rpk index e487e4c..74087c4 100644 Binary files a/packaging/org.tizen.cssetting-bluetooth-1.9.0.rpk and b/packaging/org.tizen.cssetting-bluetooth-1.9.0.rpk differ