static GuiSkin()
        {
            DefaultSkin = new GuiSkin
            {
                InnerBorderColorMouseOver    = Color.Aquamarine,
                InnerBorderColor             = Color.LightBlue,
                InnerBorderColorMousePressed = Color.DarkBlue,
                InnerBorderThickness         = 3,
                OuterBorderColor             = Color.Black,
                OuterBorderColorMouseOver    = Color.Black,
                OuterBorderThickness         = 1,
                Font                = Library.FontVerdana,
                TextColor           = Color.Black,
                TextColorMouseOver  = Color.Black,
                GreyBackgroundColor =
                    Color.FromNonPremultiplied(Color.CornflowerBlue.R + 20, Color.CornflowerBlue.G + 20,
                                               Color.CornflowerBlue.B + 20, 255),
                GreyBackgroundColorMouseOver =
                    Color.FromNonPremultiplied(Color.CornflowerBlue.R + 26, Color.CornflowerBlue.G + 26,
                                               Color.CornflowerBlue.B + 26, 255),
                WhiteBackgroundColor  = Color.White,
                DialogBackgroundColor =
                    Color.FromNonPremultiplied(Color.CornflowerBlue.R + 45, Color.CornflowerBlue.G + 45,
                                               Color.CornflowerBlue.B + 45, 255),
                ListItemHeight = 25,
                ItemSelectedBackgroundColor  = Color.PowderBlue,
                ItemMouseOverBackgroundColor = Color.LightYellow
            };

            SimplisticSkin = DefaultSkin.Clone();
            SimplisticSkin.InnerBorderColor     = Color.MediumAquamarine;
            SimplisticSkin.InnerBorderThickness = 1;
        }
Exemple #2
0
        /// <summary>
        /// Creates a deep copy of this skin.
        /// </summary>
        public GuiSkin Clone()
        {
            GuiSkin newSkin  = new GuiSkin();
            Type    skinType = this.GetType();

            FieldInfo[] fields = skinType.GetFields(BindingFlags.Public | BindingFlags.Instance);
            foreach (FieldInfo fi in fields)
            {
                fi.SetValue(newSkin, fi.GetValue(this));
            }
            return(newSkin);
        }
Exemple #3
0
 /// <summary>
 /// Sets the skin to the default skin.
 /// </summary>
 protected UIElement()
 {
     Skin = GuiSkin.DefaultSkin;
 }