public StreamGameTooltip() { AutoSizeEasing = Easing.OutQuint; CornerRadius = 5; Masking = true; EdgeEffect = new EdgeEffectParameters { Type = EdgeEffectType.Shadow, Colour = Color4.Black.Opacity(40), Radius = 5, }; Children = new Drawable[] { background = new Box { RelativeSizeAxes = Axes.Both, Alpha = 0.9f, Colour = StreamToolColors.FromHex("1f1f1f") }, text = new SpriteText { Padding = new MarginPadding(5), Font = GetFont(size: 25) } }; }
public PlayButton(Track track) { Preview = track; Add(icon = new SpriteIcon { Anchor = Anchor.Centre, Origin = Anchor.Centre, FillMode = FillMode.Fit, RelativeSizeAxes = Axes.Both, Icon = FontAwesome.Solid.Play, }); Playing.ValueChanged += playingStateChanged; hoverColour = StreamToolColors.FromHex("FFC634"); }