Ejemplo n.º 1
0
 protected async override Task <View> BuildContent()
 {
     colorEditor = new ColorPickerMixer()
     {
         TextColor               = settings.TextColor,
         EditorsColor            = settings.EditorsColor,
         ColorPreviewBorderColor = settings.ColorPreviewBorderColor,
         SliderWidth             = settings.SliderWidth,
         ARGBEditorsWidth        = settings.ARGBEditorsWidth,
         ColorEditorWidth        = settings.ColorEditorWidth,
         EditAlpha               = settings.EditAlfa,
     };
     colorEditor.Color = originalColor;
     return(colorEditor);
 }
Ejemplo n.º 2
0
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously
        /// <summary>
        /// Init the color mixer
        /// </summary>
        /// <returns>Color mixer view</returns>
        protected async override Task <View> BuildContent()
#pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously
        {
            colorEditor = new ColorPickerMixer()
            {
                TextColor               = settings.TextColor,
                EditorsColor            = settings.EditorsColor,
                ColorPreviewBorderColor = settings.ColorPreviewBorderColor,
                SliderWidth             = settings.SliderWidth,
                ARGBEditorsWidth        = settings.ARGBEditorsWidth,
                ColorEditorWidth        = settings.ColorEditorWidth,
                EditAlpha               = settings.EditAlfa,
            };
            colorEditor.Color = originalColor;
            return(colorEditor);
        }