Possibility to set font background color #10864

Closed
opened 2026-01-31 02:32:17 +00:00 by claunia · 11 comments
Owner

Originally created by @kabukimurder on GitHub (Oct 2, 2020).

The customization lacks possibility to change font background color. When using custom image backgrounds it's often crucial to make your text visible no matter how the background looks. Just changing font color with "foreground" is often not enough to make the text visible and the current "background"-setting is actually a "windowBackground"-property. You should be able to change the font background color to not get your text lost in the colors from your mondo cool background gifs.

Renaming of "foreground" to "fontForeground" and "background" to "windowBackground" and implementation of a correct font foreground setting.

Originally created by @kabukimurder on GitHub (Oct 2, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> The customization lacks possibility to change font background color. When using custom image backgrounds it's often crucial to make your text visible no matter how the background looks. Just changing font color with "foreground" is often not enough to make the text visible and the current "background"-setting is actually a "windowBackground"-property. You should be able to change the font background color to not get your text lost in the colors from your mondo cool background gifs. <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> Renaming of "foreground" to "fontForeground" and "background" to "windowBackground" and implementation of a correct font foreground setting. <!-- A clear and concise description of what you want to happen. -->
Author
Owner

@DHowett commented on GitHub (Oct 2, 2020):

Sorry -- the actual text colors, both background and foreground, are inevitably controlled by the connected client application.

Is there a specific issue you're seeing? It might help to have illustrative examples.

@DHowett commented on GitHub (Oct 2, 2020): Sorry -- the actual text colors, both background and foreground, are inevitably controlled by the connected client application. Is there a specific issue you're seeing? It might help to have illustrative examples.
Author
Owner

@LuanVSO commented on GitHub (Oct 3, 2020):

I think he's asking for a text outline option

@LuanVSO commented on GitHub (Oct 3, 2020): I think he's asking for a text outline option
Author
Owner

@kabukimurder commented on GitHub (Oct 5, 2020):

I'm looking for the equivalent of System.Console.BackgroundColor in C#.

@kabukimurder commented on GitHub (Oct 5, 2020): I'm looking for the equivalent of System.Console.BackgroundColor in C#.
Author
Owner

@zadjii-msft commented on GitHub (Oct 5, 2020):

@kabukimurder You should still be able to use that API in the Terminal - could you elaborate more on exactly how that isn't working in the Terminal?

@zadjii-msft commented on GitHub (Oct 5, 2020): @kabukimurder You should still be able to use that API in the Terminal - could you elaborate more on exactly how that _isn't_ working in the Terminal?
Author
Owner

@ghost commented on GitHub (Oct 9, 2020):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Oct 9, 2020): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Author
Owner

@hc970 commented on GitHub (Oct 9, 2020):

I agree with this feature request. It would be great to just add a property to the settings.json such as:

fontColor: “#[colorValueInHex]

I have a light colored gif as the background and have experimented with changing the color scheme to make the text visible. I was only partially successful (the color scheme changes but the text is still to light). A new configuration such as that above would be a simpler solution.

Thanks.

@hc970 commented on GitHub (Oct 9, 2020): I agree with this feature request. It would be great to just add a property to the settings.json such as: fontColor: “#[colorValueInHex] I have a light colored gif as the background and have experimented with changing the color scheme to make the text visible. I was only partially successful (the color scheme changes but the text is still to light). A new configuration such as that above would be a simpler solution. Thanks.
Author
Owner

@DHowett commented on GitHub (Oct 9, 2020):

it is already possible to set the font color; please read our docs

@DHowett commented on GitHub (Oct 9, 2020): _it is already possible to set the font color; please read our docs_
Author
Owner

@LuanVSO commented on GitHub (Oct 9, 2020):

yeah, every profile has a "foreground" :"#xxxxxx" which is exactly that.
furthermore, you can override select colors from a default color scheme by:

  1. adding a scheme with the same name on your user settings file.
  2. provide only the colors that you want changed.
  3. set the profile's "colorScheme": "" setting accordingly.
@LuanVSO commented on GitHub (Oct 9, 2020): yeah, every profile has a `"foreground" :"#xxxxxx" ` which is exactly that. furthermore, you can override select colors from a default color scheme by: 1. adding a scheme with the same name on your user settings file. 2. provide only the colors that you want changed. 3. set the profile's ` "colorScheme": ""` setting accordingly.
Author
Owner

@hc970 commented on GitHub (Oct 12, 2020):

it is already possible to set the font color; please read our docs

yeah, every profile has a "foreground" :"#xxxxxx" which is exactly that.
furthermore, you can override select colors from a default color scheme by:

  1. adding a scheme with the same name on your user settings file.
  2. provide only the colors that you want changed.
  3. set the profile's "colorScheme": "" setting accordingly.

Excellent; many thanks to you both for this information. I didn't create this ticket but I believe it can be closed.

@hc970 commented on GitHub (Oct 12, 2020): > _it is already possible to set the font color; please read our docs_ > yeah, every profile has a `"foreground" :"#xxxxxx" ` which is exactly that. > furthermore, you can override select colors from a default color scheme by: > > 1. adding a scheme with the same name on your user settings file. > 2. provide only the colors that you want changed. > 3. set the profile's ` "colorScheme": ""` setting accordingly. Excellent; many thanks to you both for this information. I didn't create this ticket but I believe it can be closed.
Author
Owner

@kabukimurder commented on GitHub (Oct 13, 2020):

@kabukimurder You should still be able to use that API in the Terminal - could you elaborate more on exactly how that isn't working in the Terminal?

Let me put it this way. Today the connected client application can control the font foreground and font background. But Windows Terminal can only set its own font foreground, not font background!
This is not an issue if you are controlling the connected client application.. but often you aren't, and it would be nice to let the Windows Terminal API set the font background color just like you can today with the font foreground color.

@kabukimurder commented on GitHub (Oct 13, 2020): > @kabukimurder You should still be able to use that API in the Terminal - could you elaborate more on exactly how that _isn't_ working in the Terminal? Let me put it this way. Today the connected client application can control the font foreground and font background. But Windows Terminal can only set its own font foreground, not font background! This is not an issue if you are controlling the connected client application.. but often you aren't, and it would be nice to let the Windows Terminal API set the font background color just like you can today with the font foreground color.
Author
Owner

@zadjii-msft commented on GitHub (Oct 13, 2020):

That's just the thing though - the System.Console.BackgroundColor API should work exactly the same in the Terminal as it does in the vintage console window. If that's not the case for your application, could you provide a minimal repro of the issue you're seeing?

@zadjii-msft commented on GitHub (Oct 13, 2020): That's just the thing though - the `System.Console.BackgroundColor` API should work exactly the same in the Terminal as it does in the vintage console window. If that's not the case for your application, could you provide a minimal repro of the issue you're seeing?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10864