Gerold55 / laptop

Introducing the MineTest Laptop Mod
Other
26 stars 14 forks source link

Text colors in theme #44

Closed bell07 closed 6 years ago

bell07 commented 6 years ago

At the time all texts are displayed white on white background. I looked for a way to change the default text color to black but I failed. Help needed! Some certain elements have own color parameter, but not all, and not no general way possible that I can integrate to the framework :-(

Gerold55 commented 6 years ago

Maybe take a look at the colored chat mod. That could possibly help out.

Crosszover commented 6 years ago

another option could be changing to a black or blue page...

bell07 commented 6 years ago

Chat coloring is not the same as formspec. I think we need a "dark theme" by default till a solution is found

Gerold55 commented 6 years ago

https://forum.minetest.net/viewtopic.php?f=11&t=2736&hilit=Signs

How did they do it for signs or is that not the same thing?

Gerold55 commented 6 years ago

I've learned that colored font in formspec isn't supported unless we use textures for the font.

Gerold55 commented 6 years ago

I've made a request on the minetest github for the developers to add it into the game.

Gerold55 commented 6 years ago

@bell07 temporarily we can just make the backgrounds where you type the default gray so you are able to read the text.

Gerold55 commented 6 years ago

https://forum.minetest.net/viewtopic.php?f=47&t=18964

bell07 commented 6 years ago

I think I need to start smartfs like themed toolbox to get the formatting in a more easy way to the formspecs, at least for elements supporting colors.

bell07 commented 6 years ago

Added theme:get_button() and theme:get_label() to getting easy themed buttons and labels (using new theme attribute textcolor). Additional methods could be added on demand and if formspec engine supports them. Maybe for textlists or tables at the next.