Beispiel #1
0
 public static MaterialLoadingDialogConfiguration GetThemeLoadiing()
 {
     return(new MaterialLoadingDialogConfiguration
     {
         BackgroundColor = (Color)ResourceColorUtil.GetResourceColor(ColorsEnum.DialogBackgroundColor).color,
         MessageTextColor = (Color)ResourceColorUtil.GetResourceColor(ColorsEnum.BackgroundTextColor).color,
         TintColor = (Color)ResourceColorUtil.GetResourceColor(ColorsEnum.PrimaryColor).color
     });
 }
Beispiel #2
0
 private static MaterialSnackbarConfiguration GetThemeSnack()
 {
     return(new MaterialSnackbarConfiguration
     {
         BackgroundColor = (Color)ResourceColorUtil.GetResourceColor(ColorsEnum.SnackBarColor).color,
         MessageTextColor = (Color)ResourceColorUtil.GetResourceColor(ColorsEnum.SnackBarTextColor).color,
         TintColor = (Color)ResourceColorUtil.GetResourceColor(ColorsEnum.PrimaryColor).color
     });
 }
Beispiel #3
0
 public static MaterialConfirmationDialogConfiguration GetThemeConfirm()
 {
     return(new MaterialConfirmationDialogConfiguration
     {
         BackgroundColor = (Color)ResourceColorUtil.GetResourceColor(ColorsEnum.DialogBackgroundColor).color,
         TextColor = (Color)ResourceColorUtil.GetResourceColor(ColorsEnum.BackgroundTextColor).color,
         TintColor = (Color)ResourceColorUtil.GetResourceColor(ColorsEnum.PrimaryColor).color,
         TitleTextColor = (Color)ResourceColorUtil.GetResourceColor(ColorsEnum.BackgroundTextColor).color
     });
 }
Beispiel #4
0
 private static MaterialInputDialogConfiguration GetThemeInput()
 {
     return(new MaterialInputDialogConfiguration
     {
         BackgroundColor = (Color)ResourceColorUtil.GetResourceColor(ColorsEnum.DialogBackgroundColor).color,
         MessageTextColor = (Color)ResourceColorUtil.GetResourceColor(ColorsEnum.BackgroundTextColor).color,
         InputTextColor = (Color)ResourceColorUtil.GetResourceColor(ColorsEnum.BackgroundTextColor).color,
         InputPlaceholderColor = (Color)ResourceColorUtil.GetResourceColor(ColorsEnum.PrimaryColor).color,
         TintColor = (Color)ResourceColorUtil.GetResourceColor(ColorsEnum.PrimaryColor).color,
         TitleTextColor = (Color)ResourceColorUtil.GetResourceColor(ColorsEnum.BackgroundTextColor).color
     });
 }
Beispiel #5
0
 private void CreateButtonsChoose()
 {
     ChooseCategories = new ObservableCollection <ChooseCategoryModel>
     {
         new ChooseCategoryModel
         {
             BackgroundColor     = (Color)ResourceColorUtil.GetResourceColor(ColorsEnum.PrimaryColor).color,
             PaddingButton       = new Thickness(0, 30, 0, 20),
             ChooseAnswerCommand = new RelayCommand <Button>(CategoryChosenAsync),
             TextButton          = CategoryEnum.Todas
         },
         CreateButtonGray(CategoryEnum.Arte),
         CreateButtonGray(CategoryEnum.Ciencia),
         CreateButtonGray(CategoryEnum.Esporte),
         CreateButtonGray(CategoryEnum.Geograria),
         CreateButtonGray(CategoryEnum.Historia)
     };
 }