Skip to content

Commit

Permalink
Merge pull request #29604 from cl8n/mod-icon-misc
Browse files Browse the repository at this point in the history
Improve mod icon contrast and mod aconym readability
  • Loading branch information
peppy authored Aug 26, 2024
2 parents d93ca3d + 70d08b9 commit e6c0056
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions osu.Game/Rulesets/UI/ModIcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Framework.Localisation;
using osu.Framework.Utils;
using osu.Game.Configuration;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
Expand Down Expand Up @@ -139,7 +140,7 @@ private void load(TextureStore textures)
Origin = Anchor.Centre,
Anchor = Anchor.Centre,
Alpha = 0,
Font = OsuFont.Numeric.With(null, 22f),
Font = OsuFont.Numeric.With(size: 22f, weight: FontWeight.Black),
UseFullGlyphHeight = false,
Text = mod.Acronym
},
Expand Down Expand Up @@ -204,7 +205,7 @@ private void updateExtendedInformation()

private void updateColour()
{
modAcronym.Colour = modIcon.Colour = OsuColour.Gray(84);
modAcronym.Colour = modIcon.Colour = Interpolation.ValueAt<Colour4>(0.1f, Colour4.Black, backgroundColour, 0, 1);

extendedText.Colour = background.Colour = Selected.Value ? backgroundColour.Lighten(0.2f) : backgroundColour;
extendedBackground.Colour = Selected.Value ? backgroundColour.Darken(2.4f) : backgroundColour.Darken(2.8f);
Expand Down

0 comments on commit e6c0056

Please sign in to comment.