mirror of
https://github.com/ppy/osu
synced 2025-01-18 20:10:49 +00:00
Remove unneeded search_bar_width and more
This commit is contained in:
parent
4967d03606
commit
7c459faaf0
@ -10,7 +10,6 @@ using osu.Framework.Bindables;
|
|||||||
using osu.Framework.Extensions;
|
using osu.Framework.Extensions;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Effects;
|
|
||||||
using osu.Framework.Graphics.Shapes;
|
using osu.Framework.Graphics.Shapes;
|
||||||
using osu.Framework.Localisation;
|
using osu.Framework.Localisation;
|
||||||
using osu.Framework.Screens;
|
using osu.Framework.Screens;
|
||||||
@ -30,8 +29,7 @@ namespace osu.Game.Overlays.Dashboard
|
|||||||
{
|
{
|
||||||
internal class CurrentlyPlayingDisplay : CompositeDrawable
|
internal class CurrentlyPlayingDisplay : CompositeDrawable
|
||||||
{
|
{
|
||||||
private const float search_bar_height = 40;
|
private const float SEARCHBAR_HEIGHT = 40;
|
||||||
private const float search_bar_width = 250;
|
|
||||||
|
|
||||||
private readonly IBindableList<int> playingUsers = new BindableList<int>();
|
private readonly IBindableList<int> playingUsers = new BindableList<int>();
|
||||||
|
|
||||||
@ -53,7 +51,7 @@ namespace osu.Game.Overlays.Dashboard
|
|||||||
searchBarBackground = new Box
|
searchBarBackground = new Box
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Height = 10*2 + search_bar_height,
|
Height = 10*2 + SEARCHBAR_HEIGHT,
|
||||||
Colour = colourProvider.Background4,
|
Colour = colourProvider.Background4,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -68,7 +66,7 @@ namespace osu.Game.Overlays.Dashboard
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
Height = search_bar_height,
|
Height = SEARCHBAR_HEIGHT,
|
||||||
|
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
|
|
||||||
@ -81,7 +79,7 @@ namespace osu.Game.Overlays.Dashboard
|
|||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
Padding = new MarginPadding {
|
Padding = new MarginPadding {
|
||||||
Top = 10*3 + search_bar_height,
|
Top = 10*3 + SEARCHBAR_HEIGHT,
|
||||||
Bottom = 10,
|
Bottom = 10,
|
||||||
Right = 10,
|
Right = 10,
|
||||||
Left = 10,
|
Left = 10,
|
||||||
|
Loading…
Reference in New Issue
Block a user