using SettingCore.TextResources;
+using SettingCore.Views;
using SettingMainGadget.Display;
using System.Linq;
using Tizen.NUI;
for (int i = 0; i < themeList.Count; i++)
{
- RadioButton radioButton = new RadioButton()
- {
- ThemeChangeSensitive = true,
- Text = themeList[i],
- IsSelected = i.Equals(DisplayThemeManager.GetThemeIndex()),
- Margin = new Extents(24, 0, 0, 0).SpToPx(),
- };
-
- radioButtonGroup.Add(radioButton);
- content.Add(radioButton);
+ RadioButtonListItem item = new RadioButtonListItem(themeList[i]);
+ item.RadioButton.IsSelected = i.Equals(DisplayThemeManager.GetThemeIndex());
+
+ radioButtonGroup.Add(item.RadioButton);
+ content.Add(item);
}
radioButtonGroup.SelectedChanged += (o, e) =>