Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-145929

Actionbar text may be difficult to read without text background enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.13.2, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b, 1.14.4, 1.15.1, 20w20a, 20w51a, 1.16.5
    • None
    • Confirmed
    • Accessibility, UI
    • Important

      With the recent increase in focus towards accessibility features, I decided to report something which has never been seen as a problem, but might compromise the gameplay experience.

      Unlike most text that doesn't have a background by default, the action bar text isn't accompanied by a shadow. This compromises readability, especially when the background is similar to the text's color.

      Let's compare that, for example, against the bossbar, title, subtitle and item name bar. Out of all those slots, the action bar is the only one that doesn't contain a shadow. making it inconsistent. Notice in the following screenshot how, even with both the text and the background being white, all the other slots are somewhat readable, while the actionbar text practically disappears:

      Note that, while unshadowed text isn't illegal, as it DOES appear in other places throughout the game, in every occurrence they're accompanied by some sort of background to improve readability.

      • In the case of GUI titles, the text uses a dark color against a light background, which makes readability not a problem.
      • For text that is placed somewhere directly over the main rendered game, since the background may be the same color of the text, a dark, semi-transparent background is placed under it – that can be seen on the chat, the debug screen, the sidebar, subtitles, name tags of entities etc.

      Neither of those cases apply to the actionbar, however. For that reason, it lies in a weird part of the spectrum. It's neither accompanied by a background, nor includes a shadow, which may cause it to easily blend with the background in many circumstances. 

      This problem is aggravated by the fact that, since 1.11, the actionbar is used for way more applications than before. Not only is it used for vanilla warnings, e.g. when riding entities, playing discs, interacting with beds and placing blocks over the world limit, it can also be customized by mapmakers to show all sorts of information about gameplay. In short, the info that's displayed there is rather important in many aspects, yet it may be easily missed due to lack of contrast with the background. That's certainly not the goal for a game with an increasing focus in accessibility. Even though the text background setting may help remedy the readability issue, all game's text should certainly be readable without the feature enabled.

      Code analysis by __null in this comment.

        1. No shadow.png
          162 kB
          Bentroen
        2. pic.png
          61 kB
          Swekob

            slicedlime [Mojang] slicedlime
            Bentroen Bentroen
            Votes:
            12 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: