Example #1
0
        public AddPluginWidget(PluginType type)
        {
            PluginType = type;
            HeightRequest = PluginWidget.Size.Height;
            WidthRequest = PluginWidget.Size.Width;

            Margin = PluginWidget.Margin;

            Cursor = CursorType.Hand;

            Label l = new Label("Add new " + type.GetName());
            //l.TextColor = type.GetColor();

            l.TextAlignment = Alignment.Center;

            AddChild(l, new Rectangle(0, 0, PluginWidget.Size.Width, PluginWidget.Size.Height));

            BackgroundColor = type.GetBGColor();

            if (App.InitDropShadow != null)
                App.InitDropShadow(this);

            if (App.InitOpacityAnimation != null)
            {
                Opacity = 0;
                App.InitOpacityAnimation(this);
            }
        }
Example #2
0
        public PluginTitleWidget(PluginType type)
        {
            PluginType = type;

            label = new Label()
            {
                Text = type.GetName(),
                TextColor = type.GetColor(),
                Font = Font.WithScaledSize(2d),
                HeightRequest = 30,
                WidthRequest = 400,
            };

            MarginTop = 8;

            HeightRequest = 30;
            WidthRequest = 400;

            AddChild(label, 0, 0);

            if (App.InitOpacityAnimation != null)
            {
                Opacity = 0;
                App.InitOpacityAnimation(this);
            }
        }
Example #3
0
        public AddPluginWidget(PluginType type, string title = null)
        {
            PluginType = type;

            Cursor = CursorType.Hand;

            Label l = new Label(title ?? "Add new " + type.GetName());
            //l.TextColor = type.GetColor();

            l.TextAlignment = Alignment.Center;

            AddChild(l, new Rectangle(0, 0, WidthRequest, HeightRequest));

            //BackgroundColor = type.GetBGColor();

            HasBorder = false;
            HasBorderLineDash = true;
        }
Example #4
0
        public PluginTitleWidget(PluginType type)
        {
            PluginType = type;

            label = new Label()
            {
                Text = type.GetName(),
                TextColor = type.GetColor(),
                Font = Xwt.Drawing.Font.FromName("Segoe UI Light 30"), // Font.WithScaledSize(2d),
                HeightRequest = 40,
                WidthRequest = 400,
            };

            MarginTop = 8;

            MarginBottom = -8;

            HeightRequest = 40;
            WidthRequest = 400;

            AddChild(label, 0, 0);
        }