コード例 #1
0
 private void InitThemeDropDown(CGRect rect)
 {
     themeDropDown.InitSource(
         ThemeTypes.ThemeCollection,
         (theme) =>
     {
         _circleMenu.GetThemeProvider().SetCurrentTheme(theme);
         _circleMenu.ResetCustomization();
         ResetFields();
         InitSources(rect);
         UpdateAppearance();
     },
         Fields.Theme,
         rect);
     themeDropDown.SetTextFieldText(_circleMenu.GetThemeProvider().GetCurrentTheme() is LightEOSTheme ? "Light" : "Dark");
 }
コード例 #2
0
 private void ResetCustomValues()
 {
     _circleMenu.ResetCustomization();
     _mainColorDropDown.SetSpinnerSelection(0);
     _focusedMainColorDropDown.SetSpinnerSelection(0);
     _focusedButtonColorDropDown.SetSpinnerSelection(0);
     _unfocusedButtonColorDropDown.SetSpinnerSelection(0);
     _circleMenuItemsDropDown.SetSpinnerSelection(0);
     _circleMenu.CircleMenuItems = GenerateSource(9);
 }