ironmansoftware / psedit

A terminal-based editor for PowerShell
MIT License
254 stars 17 forks source link

How to change the color theme? #48

Open ronascentes opened 1 year ago

ronascentes commented 1 year ago

I'm not sure if PSEdit use the current Terminal color theme but for me it's ineligible. Is there a way to change PSEdit color theme?

Screenshot 2023-05-03 133948

halvarsson commented 1 year ago

The color theme should be gray by default (we don't specify it)

Do you have any kind of color theme configured in your Terminal/Powershell session? If I could reproduce the issue we can probably explicitly set the colors on startup to fix it

ronascentes commented 1 year ago

@halvarsson - thanks for replying.

This is the color theme I use for my Terminal/ PowerShell session:

        {
            "background": "#1B1D1E",
            "black": "#222D3F",
            "blue": "#3167AC",
            "brightBlack": "#FFF688",
            "brightBlue": "#3C7DD2",
            "brightCyan": "#35B387",
            "brightGreen": "#2D9440",
            "brightPurple": "#8230A7",
            "brightRed": "#D4312E",
            "brightWhite": "#E7ECED",
            "brightYellow": "#E5BE0C",
            "cursorColor": "#E5BE0C",
            "cyan": "#2C9370",
            "foreground": "#2CC55D",
            "green": "#008000",
            "name": "Digon",
            "purple": "#781AA0",
            "red": "#A82320",
            "selectionBackground": "#792B9C",
            "white": "#B0B6BA",
            "yellow": "#E58D11"
        }
halvarsson commented 1 year ago

Thanks, it seems like the color is being overridden by the Terminal color scheme as it maps the colors that we use to different colors

I think the easiest fix to this would be to just add support for themes in psedit, and let users chose themselves if they want to use a different theme for psedit

I did a black theme on my local setup and tried it with your terminal theme, and it can look pretty good at least.. so I will have a look at adding support for changing themes in the future

image

ronascentes commented 1 year ago

Thank you @halvarsson

bjornasm commented 1 month ago

@halvarsson Is adding themes on the roadmap for psedit? Thx.