Resolve DT Wrong bluetooth icons, info, color and look issues 37/304037/1 accepted/tizen_unified_riscv accepted/tizen/unified/20240110.154139 accepted/tizen/unified/20240111.074629 accepted/tizen/unified/riscv/20240111.042743
authorAnuj Kumar Singh <anujk.singh@samsung.com>
Tue, 9 Jan 2024 08:11:19 +0000 (13:41 +0530)
committerAnuj Kumar Singh <anujk.singh@samsung.com>
Tue, 9 Jan 2024 08:31:54 +0000 (14:01 +0530)
This patch resolve following issues:
- DT Wrong look of icons bluetooth and info (https://jira.sec.samsung.net/browse/TNINE-411)
- DT Wrong look and color of toggle (https://jira.sec.samsung.net/browse/TNINE-356)

Change-Id: Ie03ee3d146fed7362b38237de370013b389006fa
Signed-off-by: Anuj Kumar Singh <anujk.singh@samsung.com>
SettingBluetooth/SettingBluetooth/View/BtDeviceView.cs
SettingBluetooth/SettingBluetooth/res/allowed/SettingBluetooth/images/bluetooth_icon_dark.svg [new file with mode: 0644]
SettingBluetooth/SettingBluetooth/res/allowed/SettingBluetooth/images/bluetooth_info_icon_dark.svg [new file with mode: 0644]
packaging/org.tizen.cssetting-bluetooth-1.9.0.rpk

index ffe1b401bf4f242af18ca686e39b977ae7329e4d..b23660f12a71e93c7901f549e370f7e663b8e688 100644 (file)
@@ -16,6 +16,7 @@ namespace SettingBluetooth
     {
         private string mResourcePath = Resources.GetPath();
         //private string mResourcePath = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
+        private static bool isLightTheme => ThemeManager.PlatformThemeId == "org.tizen.default-light-theme";
         private string mIconDir;
         private string mAddress;
         private string mName;
@@ -45,7 +46,15 @@ namespace SettingBluetooth
             mBtDevice = btDevice;
             mRssi = btDevice.Rssi;
             string icon;
-            icon = "/images/bluetooth_icon.svg";
+            if (isLightTheme)
+            {
+                icon = "/images/bluetooth_icon.svg";
+            }
+            else
+            {
+                icon = "/images/bluetooth_icon_dark.svg";
+            }
+
             mIconDir = mResourcePath + icon;
         }
 
@@ -463,6 +472,7 @@ namespace SettingBluetooth
         internal static Button GetInfoButton()
         {
             int buttonSize = 25;
+            String icon;
 
             ButtonStyle style = new ButtonStyle()
             {
@@ -471,11 +481,20 @@ namespace SettingBluetooth
                 BackgroundColor = isLightTheme ? new Color("#FAFAFA") : new Color("#1D1A21"),
             };
 
+            if (isLightTheme)
+            {
+                icon = "/images/bluetooth_info_icon.svg";
+            }
+            else
+            {
+                icon = "/images/bluetooth_info_icon_dark.svg";
+            }
+
             Button infoButton = new Button(style)
             {
                 WidthSpecification = buttonSize,
                 HeightSpecification = buttonSize,
-                IconURL = Resources.GetPath() + "/images/bluetooth_info_icon.svg",
+                IconURL = Resources.GetPath() + icon,
                 IsSelectable = false,
             };
 
diff --git a/SettingBluetooth/SettingBluetooth/res/allowed/SettingBluetooth/images/bluetooth_icon_dark.svg b/SettingBluetooth/SettingBluetooth/res/allowed/SettingBluetooth/images/bluetooth_icon_dark.svg
new file mode 100644 (file)
index 0000000..916bb37
--- /dev/null
@@ -0,0 +1,3 @@
+<svg width="16" height="24" viewBox="0 0 16 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M2 7L14 17L8 22V2L14 7L2 17" stroke="#FF8A00" stroke-width="2.66667" stroke-linecap="round" stroke-linejoin="round"/>
+</svg>
diff --git a/SettingBluetooth/SettingBluetooth/res/allowed/SettingBluetooth/images/bluetooth_info_icon_dark.svg b/SettingBluetooth/SettingBluetooth/res/allowed/SettingBluetooth/images/bluetooth_info_icon_dark.svg
new file mode 100644 (file)
index 0000000..05b9433
--- /dev/null
@@ -0,0 +1,4 @@
+<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
+<circle cx="14" cy="14" r="11" stroke="#FF8A00" stroke-width="2"/>
+<path d="M14 12.5V19.5M14 11V9" stroke="#FF8A00" stroke-width="2"/>
+</svg>
index aac274abeba6f40c7d6b8356afdfdeef133cda66..d9f1a0e788a2e0cb842f20b20d87eb1a062b87ae 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