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); } }
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); }