Component with WHITE text color has weird MiniMessage serialization
See original GitHub issueSay I have these components:
Component parent = Component.text("Parent").color(NamedTextColor.DARK_RED);
Component child = Component.text("Child").color(NamedTextColor.WHITE);
Component both = parent.append(child);
I believe that a component with WHITE
text color is essentially being treated as just a component with no text color since white is the default color. Therefore, the child
component inherits the color from the parent
component since the child technically has no color given. In my testing, changing the child
component’s color to anything else yields the desired result: the parent color is not inherited.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
How to use Custom Color in text components | SpigotMC
Hi, im trying to make a text component with custom colors but for some reason it is turning back to normal colors in...
Read more >Format - Adventure Documentation (v4.12.0)
The MiniMessage Web Viewer allows testing MiniMessage text locally, without having to spin up a Minecraft instance. It can be helpful to put...
Read more >Visual Studio Code - All white text? - Stack Overflow
Recently my visual studio code's text has all been white and I cannot change it with the 'File > Preferences > Color Theme'...
Read more >Message background and font color changed on its own
You have mentioned wanting to use White text on blue background - highly unusual, but do you want to read all incoming plain...
Read more >White text on a black background with text() - MATLAB Answers
textColor = 'white';. There is white text over a black background in my MATLAB figure, but NOT in the PNG. ... The strange...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
One has been submitted.
I ran into this issue also, i tried fixing it by rewriting the serializer. If you want to see the rewritten serializer it’s hosted here https://github.com/Ehhthan/adventure-text-minimessage/commit/fac4fc037c7f89082767f6adbbf091a0628dd06c?w=1