Tinderbox Forum

TextColor when switching between color schemes

I am a bit stuck. Sometimes I wish to set my Mac to work in Light Mode, and sometimes in Dark Mode. When I switch between the Tinderbox 7 color scheme and the Dark Coral color scheme to match, the TextColor of the text in my notes does not change. Everything else changes over correctly, except for the text color.

I have read the TB Ref page on TextColor, and see that inheritance breaks once there is text in the Text pane.

I have tried selecting the text and applying the ‘default’ text format from the Ruler bar above the text pane.

Is there a way to have the text change automatically, so as not to go note-by-note every time I wish to switch from Light Mode to Dark Mode or back?

Or, alternatively, can someone explain how $TextColor and the Text Inspector and ‘Default style’ all interact?

I’m not sure what changes happened post-v6 (other than more RTF richness) but my understanding is all $Text-related attributes are inherited in a not until any styling, even be it a bit of bolding is applied. At that point all $Text hard-encodes its values, even for runs of text that the user would presume as 'default styling. Why? I don’t know but I’m sure it seemed—some years pre OS light/dark mode—a sensible approach. Anyway, even if the ‘default’ text toggle text/background colours, what about the bold purple text on a lime green background you set in a moment of hilarity? Even if we don’t care about those edge cases, the developer has to - even if only to pragmatically ignore them. If tempted to say “But, Apple apps…” see Howard Oakley’s blog for even Apple can’t properly handle its own invention.

I too tend to switch, with the result I gave up on dark mode. Sure, it looks cools, but I don’t have the 20/20 vision of my youth and everything reversed out is either too contrasting or has not enough contrast. I found I’d run in dark OS mode ‘chrome’ but choosing to have a ‘light-style’ view and text background—pity the poor dev. So, I’m back in light mode. Meh.

I agree things could be better for (colour) swingers. So the question is, what do we expect to happen to the $Text pane on mode switch. My thinking is, if we users can’t easily describe it (in terms of current settings/attributes) it might just harder than we imagine. :slight_smile:

This is the point (and this isn’t a come-on) where @eastgate de-cloaks and points out my reasoning is flawed and this is easy to do. :thinking: (thuogh possibly ont in a tist of global pestilence).

These are all good points, Mark. As usual, I enquire because there is often a way to do things of which I am unaware.

In regards to your final question: what I expected to happen was that the text colour in the document would respect the text colour determined in the chosen color scheme. Upon exporting the default dark theme in order to make my own, I saw that it has values for textcolor. I expected this to (re-)set the color of $TextColor, upon switching to a different color scheme.

Personally, I would expect this to overwrite any existing colours in Text. I can, of course, see how this could be problematic to many other use cases, and I do understand the considerations raised above. If there is a way to do what I am looking for, however, I would be grateful to hear it.

Imagine having notes in which you have set text colors carefully — perhaps you’re a judge and use red for arguments from the prosecution and green for arguments from the defense.

Now, you apply a color theme and all your colors are gone.

But I agree that text in the old default $TextColor should change to the new default $TextColor, and I don’t believe this is done consistently.

1 Like

Yep, I get it. To be more precise, I think what I was expecting is that whatever was in the default old color swaps over to the new default TextColor as determined by the color scheme. Thinking about this more, if anything had its color changed, that color should be preserved, since it is not the default.

If some text had been put into green for defence argument, that would stay green whatever is happening with the default text. If judge can’t read the dark blue in a Dark Mode-friendly color scheme, they can just switch back to another light scheme, and the green stays the same.

But perhaps that is what you meant, more concisely, in your last line there.

1 Like