microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
95.63k stars 8.32k forks source link

Rainbow Frame #12950

Closed zadjii-msft closed 1 year ago

zadjii-msft commented 2 years ago

Posted here so that we don't totally forget about this.

rainbow-FRAME

dev/migrie/fhl/rgb-rainbow-window-frame. I've got it hooked up to moving the window, obviously, that's contrived, so a 1/60th second timer somewhere would work well enough.

I dunno what exactly this is, but we need it in the Terminal. Probably a special case of window.frameColor in #3327?

Jayonics commented 2 years ago

Important? 👎 Cool? 💯🌟🌈😲

6H075T2 commented 11 months ago

how to do this?

zadjii-msft commented 11 months ago

@6H075T2 See: https://learn.microsoft.com/en-us/windows/terminal/customize-settings/themes#experimental-rainbow-window-border

6H075T2 commented 11 months ago

image It doesn't work for me can you enlighten me please?

zadjii-msft commented 11 months ago

Ah, the rainbow frame setting isn't a global, it's a theme setting. You need to make a new theme, and enable it for the theme.

Try adding the following to the globals:


{
    // "profiles": { ... }
    // "schemes": [ ... ] 
    // "defaultProfile": ...
    // etc
    // etc

    "theme": "rainbow",
    "themes":
    [
        {
            "name": "rainbow",
            "window": 
            {
                "experimental.rainbowFrame": true,
            },
            "tab": {
                "background": "terminalBackground",
                "unfocusedBackground": "#00000000"
            },
        },
    ]
}