Example #1
0
        private void InitButtonStyles(StyleRuleSet ruleSet)
        {
            StyleRuleSetBuilder builder = new StyleRuleSetBuilder(ruleSet);

            builder
            .Border(1.0, GUIState.Normal)
            .Border(1.0, GUIState.Hover)
            .Border(1.0, GUIState.Active)
            .Padding(5.0, GUIState.Normal)
            .Padding(5.0, GUIState.Hover)
            .Padding(5.0, GUIState.Active)
            .BorderColor(Color.Rgb(166, 166, 166), GUIState.Normal)
            .BorderColor(Color.Rgb(123, 123, 123), GUIState.Hover)
            .BorderColor(Color.Rgb(148, 148, 148), GUIState.Active)
            .BackgroundColor(Color.Rgb(0x65a9d7), GUIState.Normal)
            .BackgroundColor(Color.Rgb(0x28597a), GUIState.Hover)
            .BackgroundColor(Color.Rgb(0x1b435e), GUIState.Active)
            .BackgroundGradient(Gradient.TopBottom)
            .AlignmentVertical(Alignment.Center, GUIState.Normal)
            .AlignmentVertical(Alignment.Center, GUIState.Hover)
            .AlignmentVertical(Alignment.Center, GUIState.Active)
            .AlignmentHorizontal(Alignment.Center, GUIState.Normal)
            .AlignmentHorizontal(Alignment.Center, GUIState.Hover)
            .AlignmentHorizontal(Alignment.Center, GUIState.Active)
            .GradientTopDownColor(Color.Rgb(247, 247, 247), Color.Rgb(221, 221, 221), GUIState.Normal)
            .GradientTopDownColor(Color.Rgb(247, 247, 247), Color.Rgb(221, 221, 221), GUIState.Hover)
            .GradientTopDownColor(Color.Rgb(222, 222, 222), Color.Rgb(248, 248, 248), GUIState.Active);
        }
Example #2
0
        private void InitComboBoxStyles(StyleRuleSet ruleSet)
        {
            StyleRuleSetBuilder builder = new StyleRuleSetBuilder(ruleSet);

            builder
            .Border(1.0, GUIState.Normal)
            .Border(1.0, GUIState.Hover)
            .Border(1.0, GUIState.Active)
            .Padding(5.0, GUIState.Normal)
            .Padding(5.0, GUIState.Hover)
            .Padding(5.0, GUIState.Active)
            .BorderColor(new Color(0.26f, 0.59f, 0.98f, 0.40f), GUIState.Normal)
            .BorderColor(new Color(0.26f, 0.59f, 0.98f, 1.00f), GUIState.Hover)
            .BorderColor(new Color(0.06f, 0.53f, 0.98f, 1.00f), GUIState.Active)
            .BackgroundColor(Color.Rgb(0x65a9d7), GUIState.Normal)
            .BackgroundColor(Color.Rgb(0x28597a), GUIState.Hover)
            .BackgroundColor(Color.Rgb(0x1b435e), GUIState.Active)
            .BackgroundGradient(Gradient.TopBottom)
            .FontColor(Color.Black)
            .AlignmentVertical(Alignment.Center, GUIState.Normal)
            .AlignmentVertical(Alignment.Center, GUIState.Hover)
            .AlignmentVertical(Alignment.Center, GUIState.Active)
            .AlignmentHorizontal(Alignment.Center, GUIState.Normal)
            .AlignmentHorizontal(Alignment.Center, GUIState.Hover)
            .AlignmentHorizontal(Alignment.Center, GUIState.Active)
            .GradientTopDownColor(Color.Rgb(247, 247, 247), Color.Rgb(221, 221, 221), GUIState.Normal)
            .GradientTopDownColor(Color.Rgb(247, 247, 247), Color.Rgb(221, 221, 221), GUIState.Hover)
            .GradientTopDownColor(Color.Rgb(222, 222, 222), Color.Rgb(248, 248, 248), GUIState.Active);
        }
Example #3
0
        private void InitImageStyles(StyleRuleSet ruleSet)
        {
            var builder = new StyleRuleSetBuilder(ruleSet);

            builder
            .Border(1.0)
            .BorderColor(Color.Black);
        }
Example #4
0
        private void InitBoxStyles(StyleRuleSet ruleSet)
        {
            StyleRuleSetBuilder builder = new StyleRuleSetBuilder(ruleSet);

            builder
            .Border(1.0)
            .Padding(5.0)
            .BorderColor(Color.Black)
            .BackgroundColor(Color.White)
            .AlignmentVertical(Alignment.Center)
            .AlignmentHorizontal(Alignment.Center);
        }
Example #5
0
        private void InitTextBoxStyles(StyleRuleSet ruleSet)
        {
            StyleRuleSetBuilder builder = new StyleRuleSetBuilder(ruleSet);

            builder
            .Border(1.0)
            .Padding(3.0)
            .BorderColor(Color.Rgb(112), GUIState.Normal)
            .BorderColor(Color.Rgb(23), GUIState.Hover)
            .BorderColor(Color.Rgb(0, 120, 215), GUIState.Active);
            ruleSet.OverflowY = OverflowPolicy.Scroll;
        }