You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 24, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 24, 2026. It is now read-only.
OCGV: Configurable background color for Out-ConsoleGridView #129
Can you share more details of what looks good and doesn't on your system?
Terminal.Gui, on which ocgv is based supports multiple color themes. One solution would be to add a switch to ocgv that lets the user choose these:
Base:
TopLevel:
Dialog:
Error:
Finding color schemes that work well cross-platform is a real challenge. We do have the ability to tweak the defaults across some platforms so if there's something in one of the defaults that looks awful on, say Linux, we have some control.
Yes maybe a general theme setting for all terminal.gui applications or/and a specific command to set ocgv theme like set-ocgvColors and passing a hash table with colors like we do with Set-PSReadLineOption -Colors $myTheme.
I reckon some colors of ocgv don’t match. ocgv use darkcyan for title and the last focus line on blue bg. What a weird choice.
Here it is with the built-in campbell theme for wt.
Here was my personal theme for wt.
Adjusting my theme, I can get a better contrast.
However we definitely need a way to custom ocgv colors.
I'll add my vote on this. In Windows Terminal, the only way you can adjust the display is to modify the color scheme definition for values like Blue and Cyan.
tui-cs/Terminal.Gui#1773 has been fixed and will be in Terminal.Gui v1.7.2 which I plan on launching in the next day. It will be incorporated into the next GraphicalTools release.
It's not a dramatic change, but does make the not-focused but selected listview item easier to read.
changed the title [-]Configurable background color for Out-ConsoleGridView[/-][+]OCGV: Configurable background color for Out-ConsoleGridView[/+]on Aug 24, 2022
Activity
[-]Configurable background color[/-][+]Configurable background color for Out-ConsoleGridView[/+]tig commentedon Jan 22, 2021
Can you share more details of what looks good and doesn't on your system?
Terminal.Gui, on whichocgvis based supports multiple color themes. One solution would be to add a switch toocgvthat lets the user choose these:Base:

TopLevel:

Dialog:

Error:

Finding color schemes that work well cross-platform is a real challenge. We do have the ability to tweak the defaults across some platforms so if there's something in one of the defaults that looks awful on, say Linux, we have some control.
Fred-Vatin commentedon Jun 6, 2021
Yes maybe a general theme setting for all terminal.gui applications or/and a specific command to set ocgv theme like
set-ocgvColorsand passing a hash table with colors like we do withSet-PSReadLineOption -Colors $myTheme.I reckon some colors of ocgv don’t match. ocgv use darkcyan for title and the last focus line on blue bg. What a weird choice.

Here it is with the built-in campbell theme for wt.
Here was my personal theme for wt.


Adjusting my theme, I can get a better contrast.

However we definitely need a way to custom ocgv colors.
jdhitsolutions commentedon Feb 3, 2022
I'll add my vote on this. In Windows Terminal, the only way you can adjust the display is to modify the color scheme definition for values like Blue and Cyan.
tig commentedon Jun 3, 2022
Question for Roey Darwish Dror (@r-darwish), Jeff Hicks (@jdhitsolutions), and Fremea:
I think there are two issues here:
Does this accurately reflect your take?
Fred-Vatin commentedon Jun 3, 2022
Yes
tig commentedon Jun 7, 2022
Ok. Thank you for the feedback!
For 1. see tui-cs/Terminal.Gui#1773
For 2. see tui-cs/Terminal.Gui#29
tig commentedon Aug 4, 2022
tui-cs/Terminal.Gui#1773 has been fixed and will be in Terminal.Gui v1.7.2 which I plan on launching in the next day. It will be incorporated into the next
GraphicalToolsrelease.It's not a dramatic change, but does make the not-focused but selected listview item easier to read.
Providing customizable colors is a future item...
tig commentedon Aug 24, 2022
Andy Jordan (@andschwa) please prefix title with "OCGV: ".
[-]Configurable background color for Out-ConsoleGridView[/-][+]OCGV: Configurable background color for Out-ConsoleGridView[/+]tig commentedon Apr 28, 2023
Terminal.Gui v2.x will fix this.
See tui-cs/Terminal.Gui#2181
I plan on a re-write of OCGV using Terminal.Gui v2 in the next few months.
HotCakeX commentedon Feb 16, 2024
Really need a way to customize background color...