public SimpleNotification() { IconContent.Add(new Drawable[] { IconBackgound = new Box { RelativeSizeAxes = Axes.Both, ColourInfo = ColourInfo.GradientVertical(OsuColour.Gray(0.2f), OsuColour.Gray(0.6f)) }, iconDrawable = new TextAwesome { Anchor = Anchor.Centre, Origin = Anchor.Centre, Icon = icon, TextSize = 20 } }); Content.Add(textDrawable = new OsuSpriteText { TextSize = 16, Colour = OsuColour.Gray(128), AutoSizeAxes = Axes.Y, RelativeSizeAxes = Axes.X, Text = text }); }
public ProgressNotification() { IconContent.Add(new Box { RelativeSizeAxes = Axes.Both, }); Content.Add(textDrawable = new OsuTextFlowContainer(t => { t.TextSize = 16; }) { Colour = OsuColour.Gray(128), AutoSizeAxes = Axes.Y, RelativeSizeAxes = Axes.X, }); NotificationContent.Add(progressBar = new ProgressBar { Origin = Anchor.BottomLeft, Anchor = Anchor.BottomLeft, RelativeSizeAxes = Axes.X, }); State = ProgressNotificationState.Queued; // don't close on click by default. Activated = () => false; }
private void load(OsuColour colours) { IconContent.Add(new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, ColourInfo = ColourInfo.GradientVertical(colours.YellowDark, colours.Yellow) }, new TextAwesome { Anchor = Anchor.Centre, Icon = FontAwesome.fa_upload, Colour = Color4.White, } }); }
public ProgressNotification() { IconContent.Add(new Box { RelativeSizeAxes = Axes.Both, }); Content.Add(textDrawable = new OsuSpriteText { TextSize = 16, Colour = OsuColour.Gray(128), AutoSizeAxes = Axes.Y, RelativeSizeAxes = Axes.X, }); NotificationContent.Add(progressBar = new ProgressBar { Origin = Anchor.BottomLeft, Anchor = Anchor.BottomLeft, RelativeSizeAxes = Axes.X, }); State = ProgressNotificationState.Queued; }