Esempio n. 1
0
            public UserDropdownHeader()
            {
                Foreground.Padding = new MarginPadding {
                    Left = 10, Right = 10
                };
                Margin = new MarginPadding {
                    Bottom = 5
                };
                Masking      = true;
                CornerRadius = 5;
                EdgeEffect   = new EdgeEffectParameters
                {
                    Type   = EdgeEffectType.Shadow,
                    Colour = Color4.Black.Opacity(0.25f),
                    Radius = 4,
                };

                Icon.Size   = new Vector2(14);
                Icon.Margin = new MarginPadding(0);

                Foreground.Add(statusIcon = new SpriteIcon
                {
                    Anchor = Anchor.CentreLeft,
                    Origin = Anchor.CentreLeft,
                    Icon   = FontAwesome.Regular.Circle,
                    Size   = new Vector2(14),
                });

                Text.Margin = new MarginPadding {
                    Left = LABEL_LEFT_MARGIN
                };
            }
Esempio n. 2
0
                public UserDropdownHeader()
                {
                    Foreground.Padding = new MarginPadding {
                        Left = 10, Right = 10
                    };
                    Margin = new MarginPadding {
                        Bottom = 5
                    };
                    Masking      = true;
                    CornerRadius = 5;
                    EdgeEffect   = new EdgeEffect
                    {
                        Type   = EdgeEffectType.Shadow,
                        Colour = Color4.Black.Opacity(0.25f),
                        Radius = 4,
                    };

                    Icon.TextSize = 14;
                    Icon.Margin   = new MarginPadding(0);

                    Foreground.Add(statusIcon = new TextAwesome
                    {
                        Anchor   = Anchor.CentreLeft,
                        Origin   = Anchor.CentreLeft,
                        Icon     = FontAwesome.fa_circle_o,
                        TextSize = 14,
                    });

                    Text.Margin = new MarginPadding {
                        Left = LABEL_LEFT_MARGIN
                    };
                }