{
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;
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;
}
internal static Button GetInfoButton()
{
int buttonSize = 25;
+ String icon;
ButtonStyle style = new ButtonStyle()
{
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,
};