Resolve DT Bluetooth text next to toggle not visible due to wrong color 41/304041/1
authorAnuj Kumar Singh <anujk.singh@samsung.com>
Tue, 9 Jan 2024 05:52:09 +0000 (11:22 +0530)
committerAnuj Kumar Singh <anujk.singh@samsung.com>
Tue, 9 Jan 2024 09:18:04 +0000 (14:48 +0530)
This patch:
 - Resolves https://jira.sec.samsung.net/browse/TNINE-392

Change-Id: Ie1eb61a7a05397bab79efe9f3b712a608bb22c02
Signed-off-by: Anuj Kumar Singh <anujk.singh@samsung.com>
SettingBluetooth/SettingBluetooth/View/BtMainView.cs
packaging/org.tizen.cssetting-bluetooth-1.9.0.rpk

index 29f9aed16575310422a15b4de546790384ac29c6..302bdbd7b94aec9a5257c330ff351674220bca0a 100644 (file)
@@ -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,
index e487e4cf876add2b44b2654220d53c4aed97ee76..74087c457d5c23c0d006de5e7f0337ead43d4621 100644 (file)
Binary files a/packaging/org.tizen.cssetting-bluetooth-1.9.0.rpk and b/packaging/org.tizen.cssetting-bluetooth-1.9.0.rpk differ