From 4ea8495c610cd91d66f0afce8cf00edd74d95ad1 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Sun, 23 Jul 2023 14:12:37 +0900 Subject: [PATCH] Adjust metrics of editor menu spacers (and make visible) --- .../Screens/Edit/Components/Menus/EditorMenuBar.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/osu.Game/Screens/Edit/Components/Menus/EditorMenuBar.cs b/osu.Game/Screens/Edit/Components/Menus/EditorMenuBar.cs index b9385ff0c3..fb0ae2df73 100644 --- a/osu.Game/Screens/Edit/Components/Menus/EditorMenuBar.cs +++ b/osu.Game/Screens/Edit/Components/Menus/EditorMenuBar.cs @@ -4,6 +4,7 @@ using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; +using osu.Framework.Graphics.Shapes; using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Textures; using osu.Framework.Graphics.UserInterface; @@ -200,7 +201,17 @@ namespace osu.Game.Screens.Edit.Components.Menus public DrawableSpacer(MenuItem item) : base(item) { - Scale = new Vector2(1, 0.3f); + Scale = new Vector2(1, 0.6f); + + AddInternal(new Box + { + Anchor = Anchor.Centre, + Origin = Anchor.Centre, + Colour = BackgroundColourHover, + RelativeSizeAxes = Axes.X, + Height = 2f, + Width = 0.8f, + }); } protected override bool OnHover(HoverEvent e) => true;