Exemplo n.º 1
0
 public void SetViewTheme(IViewTheme theme)
 {
     InvokeOnMainThread(() =>
     {
         _rootView.SetTheme(theme);
     });
 }
Exemplo n.º 2
0
 public void SetBackgroundTheme(IViewTheme theme)
 {
     Application.SynchronizationContext.Post(_ =>
     {
         this.SetTheme(theme);
     }, null);
 }
Exemplo n.º 3
0
        public void SetEnableCell(int index, IViewTheme viewTheme, ITextViewTheme labelTheme)
        {
            var indexPath = NSIndexPath.FromRowSection(index, 0);
            var cell      = (ToolViewCell)_toolsCollectionView.CellAt(indexPath);

            cell?.SetThemes(viewTheme, labelTheme);
        }
Exemplo n.º 4
0
 public void SetViewTheme(IViewTheme theme)
 {
     (Context as Activity)?.RunOnUiThread(() =>
     {
         this.SetTheme(theme);
     });
 }
 public EditProfileStylesHolderDroid(ThemeParser <T> themeParser)
 {
     LabelsTheme        = themeParser.GetThemeByName <ITextViewTheme>(_labelsTheme);
     EditTextsTheme     = themeParser.GetThemeByName <IEditTextTheme>(_editTextsTheme);
     EditTextsFailTheme = themeParser.GetThemeByName <IEditTextTheme>(_editTextsFailTheme);
     ViewTheme          = themeParser.GetThemeByName <IViewTheme>(_viewTheme);
     SaveButtonTheme    = themeParser.GetThemeByName <IButtonTheme>(_saveButtonTheme);
     CancelButtonTheme  = themeParser.GetThemeByName <IButtonTheme>(_cancelButtonTheme);
 }
Exemplo n.º 6
0
        public void SetCellTheme(IViewTheme viewTheme, ITextViewTheme textViewTheme, int index)
        {
            _selectedCell = index;

            var holder = RecyclerView.FindViewHolderForAdapterPosition(index) as ToolsViewHolder; // TODO: problem in indecies

            // TODO: while searching after click on item holder is null -> NullRefException
            SetCellTheme(holder, viewTheme, textViewTheme);
        }
Exemplo n.º 7
0
        public void SetEnableCell(int index, IViewTheme viewTheme, ITextViewTheme textViewTheme)
        {
            if (index == -1)
            {
                return;
            }

            _adapter.SetCellTheme(viewTheme, textViewTheme, index);
        }
Exemplo n.º 8
0
        //==================================================================================
        public static void SetTheme(this UIView view, IViewTheme theme)
        {
            if (theme.BackgroundColor != null)
            {
                view.BackgroundColor = (UIColor)theme.BackgroundColor;
            }

            if (theme.TintColor != null)
            {
                view.TintColor = (UIColor)theme.TintColor;
            }
        }
Exemplo n.º 9
0
        //====== TODO

        public static void SetTheme(this View view, IViewTheme theme)
        {
            if (theme.BackgroundColor == null)
            {
                return;
            }

            if (theme.BackgroundColor is Color backgroundColor)
            {
                view.SetBackgroundColor(backgroundColor);
            }
        }
 public ToolBarBackStylesHolderDroid(ThemeParser <T> themeParser)
 {
     BackButtonTheme  = themeParser.GetThemeByName <IImageButtonTheme>(_backButtonTheme);
     TitleTheme       = themeParser.GetThemeByName <ITextViewTheme>(_titleTheme);
     ToolbarViewTheme = themeParser.GetThemeByName <IViewTheme>(_toolbarViewTheme);
 }
Exemplo n.º 11
0
 public OptionsCellStylesHolderIOS(ThemeParser <T> themeParser)
 {
     TextTheme       = themeParser.GetThemeByName <ITextViewTheme>(_textTheme);
     ImageViewTheme  = themeParser.GetThemeByName <IImageViewTheme>(_imageViewTheme);
     BackgroundTheme = themeParser.GetThemeByName <IViewTheme>(_backgroundTheme);
 }
Exemplo n.º 12
0
 public void SetViewTheme(IViewTheme theme)
 {
     _navigationBar.Translucent  = false;
     _navigationBar.BarTintColor = (UIColor)theme.BackgroundColor;
 }
Exemplo n.º 13
0
 public void SetBackgroundTheme(IViewTheme theme)
 {
     this.SetTheme(theme);
 }
Exemplo n.º 14
0
 private void SetCellTheme(ToolsViewHolder viewHolder, IViewTheme viewTheme, ITextViewTheme textViewTheme)
 {
     viewHolder.ToolRelLayouot.SetTheme(viewTheme);
     viewHolder.ToolTextView.SetTheme(textViewTheme);
 }
Exemplo n.º 15
0
 public void SetViewTheme(IViewTheme theme)
 {
     this.SetTheme(theme);
 }