示例#1
0
		private void UpdateColors()
		{
			FlatColors colors = Helpers.GetColors(this);

			_ProgressColor = colors.Flat;
		}
示例#2
0
        private void UpdateColors()
        {
            FlatColors colors = Helpers.GetColors(this);

            _BaseColor = colors.Flat;
        }
示例#3
0
 private void UpdateColors()
 {
     FlatColors colors = Helpers.GetColors(this);
 }
示例#4
0
        private void UpdateColors()
        {
            FlatColors colors = Helpers.GetColors(this);

            _selectedColor = colors.Flat;
        }
示例#5
0
        private void UpdateColors()
        {
            FlatColors colors = Helpers.GetColors(this);

            _BaseColor = Color.FromArgb(164, 66, 244);            //colors.Flat;
        }
示例#6
0
        private void UpdateColors()
        {
            FlatColors colors = Helpers.GetColors(this);

            _SelectedColor = Color.FromArgb(35, 168, 109);
        }
示例#7
0
		/// <summary>
		/// Get the colorscheme of a Control from a parent FormSkin.
		/// </summary>
		/// <param name="control">Control</param>
		/// <returns>Colors</returns>
		/// <exception cref="System.ArgumentNullException"></exception>
		public static FlatColors GetColors(Control control)
		{
			if (control == null)
				throw new ArgumentNullException();

			FlatColors colors = new FlatColors();

			while(control != null && (control.GetType() !=  typeof(FormSkin)))
			{
				control = control.Parent;
			}

			if(control != null)
			{
				FormSkin skin = (FormSkin)control;
				colors.Flat = skin.FlatColor;
			}

			return colors;
		}