termusic icon indicating copy to clipboard operation
termusic copied to clipboard

UI is very hard to read when using light themes

Open arirei opened this issue 1 month ago • 1 comments

Environment & Versions

  • System: Endeavour OS, Arch-based
  • Termusic version: v0.12.0[c] from arch repos

Description of the Problem

Some UI elements are very hard to read when using light themes in a terminal. Screenshot attached.

Image

arirei avatar Dec 07 '25 20:12 arirei

For testing, what theme is that?

hasezoey avatar Dec 08 '25 08:12 hasezoey

Right, sorry for the delay, it's rose piné dawn in wezterm,

here's my config snippet with the color scheme:

local custom = {
	colors = {
		dawn = {
			base = "#faf4ed",
			text = "#575279",
			love = "#b4637a",
			gold = "#ea9d34",
			rose = "#d7827e",
			pine = "#286983",
			foam = "#56949f",
			iris = "#907aa9",
		}
	},
}

arirei avatar Dec 10 '25 13:12 arirei

Thanks for the response, but i dont know how those colors would apply, i am only aware of ANSI color names. Is this the theme you are using, or do you have it customized?

hasezoey avatar Dec 10 '25 14:12 hasezoey

The palette is the same, yes! Sorry about the confusion

arirei avatar Dec 10 '25 14:12 arirei

I forgot to ask more explicitly earlier and just remembered, what is the termusic theme set to? If you cant tell due to the colors, it is also listed in the config (tui.toml). Also if it is anything other than Native, could you try the native theme (via the theme selector)?

hasezoey avatar Dec 11 '25 09:12 hasezoey

Right, it was set to Termusic Default. Native is much better. Maybe it should be the default?

Image

arirei avatar Dec 11 '25 22:12 arirei

We should do this, as it'll support pywal theme update as well.

tramhao avatar Dec 12 '25 00:12 tramhao

Right, it was set to Termusic Default. Native is much better. Maybe it should be the default?

Thanks for the feedback. The problem with the default Termusic Default theme is that is uses a bunch of Color::Reset for background colors, which practically requires the terminal's theme to be compatible, which it was not in this case.

@tramhao While we are at changing the default to the Native Theme, should be remove the Termusic Default theme (a rename would be required anyway), or could you update it so that it does not use Color::Reset? (i am not too great with color matching / selection)

hasezoey avatar Dec 12 '25 10:12 hasezoey

While investigating #624 for #631 compatibility, i found that the following issues have come up in addition to the already fixed sections:

  • Config editor "inactive" borders dont have a foreground colors set, defaulting to "Reset"
    • due to that, Inputs seemingly fallback to the Paragraph's style's foreground color
  • Config editor title colors are not consistent: Key pages use foreground color, whereas non-key pages use the border's color
  • On Theme change, the music library does not reload anymore (likely because i removed remounting and forgot this case)

I am not quite sure what to do about the title colors, but i have some proposals: Use Border Color (easiest and most common currently: Image

Use Foreground color for title text (would require we either vendor all components, or try to change tuirealm upstream, https://github.com/veeso/tui-realm-stdlib/issues/45): Image

Use Highlight Color for title text (would also require we either vendor all components or try to change tuirealm upstream, https://github.com/veeso/tui-realm-stdlib/issues/45): Image


Also what border color and title color should we use for the inactive style? This should likely also require a new style configuration field. I personally would keep inactive border color and title color the same and set it to something like bright_black by default.

My recommendation for all the above would look something like the following, what do you all think? ("Use Highlight Color for title text" + "inactive border color = title color" + "inactive color = bright_black"): Image And it would look something like the following in a light theme: Image

hasezoey avatar Dec 15 '25 14:12 hasezoey