colorScheme.background is (again) ignored #6270

Closed
opened 2026-01-31 00:34:19 +00:00 by claunia · 5 comments
Owner

Originally created by @sztomi on GitHub (Feb 4, 2020).

Environment

Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.8.10261.0


Any other software? n/a

Steps to reproduce

I'm experiencing https://github.com/microsoft/terminal/issues/2883 with the exact same behavior and workaround. That issue was fixed and closed, so I figured this is a regression in this newer build of Windows Terminal - so I'm filing it again.

Expected behavior

I would expect selecting a colorscheme to overwrite the values in the profile part, not the other way around.

Actual behavior

The profile value for background overwrites the value from the color scheme. Doing as little customization as selecting a color scheme by name from the defaults results in partially applied colors (with the background staying the default).

Originally created by @sztomi on GitHub (Feb 4, 2020). # Environment ```none Windows build number: 10.0.18362.0 Windows Terminal version (if applicable): 0.8.10261.0 Any other software? n/a ``` # Steps to reproduce I'm experiencing https://github.com/microsoft/terminal/issues/2883 with the exact same behavior and workaround. That issue was fixed and closed, so I figured this is a regression in this newer build of Windows Terminal - so I'm filing it again. # Expected behavior I would expect selecting a colorscheme to overwrite the values in the profile part, not the other way around. # Actual behavior The profile value for background overwrites the value from the color scheme. Doing as little customization as selecting a color scheme by name from the defaults results in partially applied colors (with the background staying the default).
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 00:34:19 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Feb 4, 2020):

@sztomi Could you share your profiles.json file with us? That'll make debugging this issue infinitely easier ☺️

@zadjii-msft commented on GitHub (Feb 4, 2020): @sztomi Could you share your `profiles.json` file with us? That'll make debugging this issue infinitely easier ☺️
Author
Owner

@sztomi commented on GitHub (Feb 4, 2020):

Of course. This is pretty much the default config; my changes were:

  • fontFace to JetBrains Mono everywhere
  • Color scheme to One Half Dark in the powershell tab
  • background to null as a workaround for the issue. If I change that value to a concrete color, that will overwrite the selected color scheme.
{
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "globals" : 
    {
        "alwaysShowTabs" : true,
        "defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
        "initialCols" : 120,
        "initialRows" : 30,
        "keybindings" : 
        [
            {
                "command" : "closeTab",
                "keys" : 
                [
                    "ctrl+w"
                ]
            },
            {
                "command" : "newTab",
                "keys" : 
                [
                    "ctrl+t"
                ]
            },
            {
                "command" : "newTabProfile0",
                "keys" : 
                [
                    "ctrl+shift+1"
                ]
            },
            {
                "command" : "newTabProfile1",
                "keys" : 
                [
                    "ctrl+shift+2"
                ]
            },
            {
                "command" : "newTabProfile2",
                "keys" : 
                [
                    "ctrl+shift+3"
                ]
            },
            {
                "command" : "newTabProfile3",
                "keys" : 
                [
                    "ctrl+shift+4"
                ]
            },
            {
                "command" : "newTabProfile4",
                "keys" : 
                [
                    "ctrl+shift+5"
                ]
            },
            {
                "command" : "newTabProfile5",
                "keys" : 
                [
                    "ctrl+shift+6"
                ]
            },
            {
                "command" : "newTabProfile6",
                "keys" : 
                [
                    "ctrl+shift+7"
                ]
            },
            {
                "command" : "newTabProfile7",
                "keys" : 
                [
                    "ctrl+shift+8"
                ]
            },
            {
                "command" : "newTabProfile8",
                "keys" : 
                [
                    "ctrl+shift+9"
                ]
            },
            {
                "command" : "nextTab",
                "keys" : 
                [
                    "ctrl+tab"
                ]
            },
            {
                "command" : "openSettings",
                "keys" : 
                [
                    "ctrl+,"
                ]
            },
            {
                "command" : "prevTab",
                "keys" : 
                [
                    "ctrl+shift+tab"
                ]
            },
            {
                "command" : "scrollDown",
                "keys" : 
                [
                    "ctrl+shift+down"
                ]
            },
            {
                "command" : "scrollDownPage",
                "keys" : 
                [
                    "ctrl+shift+pgdn"
                ]
            },
            {
                "command" : "scrollUp",
                "keys" : 
                [
                    "ctrl+shift+up"
                ]
            },
            {
                "command" : "scrollUpPage",
                "keys" : 
                [
                    "ctrl+shift+pgup"
                ]
            },
            {
                "command" : "switchToTab0",
                "keys" : 
                [
                    "alt+1"
                ]
            },
            {
                "command" : "switchToTab1",
                "keys" : 
                [
                    "alt+2"
                ]
            },
            {
                "command" : "switchToTab2",
                "keys" : 
                [
                    "alt+3"
                ]
            },
            {
                "command" : "switchToTab3",
                "keys" : 
                [
                    "alt+4"
                ]
            },
            {
                "command" : "switchToTab4",
                "keys" : 
                [
                    "alt+5"
                ]
            },
            {
                "command" : "switchToTab5",
                "keys" : 
                [
                    "alt+6"
                ]
            },
            {
                "command" : "switchToTab6",
                "keys" : 
                [
                    "alt+7"
                ]
            },
            {
                "command" : "switchToTab7",
                "keys" : 
                [
                    "alt+8"
                ]
            },
            {
                "command" : "switchToTab8",
                "keys" : 
                [
                    "alt+9"
                ]
            }
        ],
        "requestedTheme" : "system",
        "showTabsInTitlebar" : true,
        "showTerminalTitleInTitlebar" : true,
        "wordDelimiters" : " ./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}~?\u2502"
    },
    "profiles" : 
    [
      {
        "acrylicOpacity": 0.5,
        "background": null,
        "closeOnExit": true,
        "colorScheme": "One Half Dark",
        "commandline": "powershell.exe",
        "cursorColor": "#FFFFFF",
        "cursorShape": "bar",
        "fontFace": "JetBrains Mono",
        "fontSize": 10,
        "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
        "historySize": 9001,
        "icon": "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png",
        "name": "Windows PowerShell",
        "padding": "0, 0, 0, 0",
        "snapOnInput": true,
        "startingDirectory": "%USERPROFILE%",
        "useAcrylic": false
      },
        {
            "acrylicOpacity" : 0.75,
            "closeOnExit" : true,
            "colorScheme" : "Campbell",
            "commandline" : "cmd.exe",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "JetBrains Mono",
            "fontSize" : 10,
            "guid" : "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
            "historySize" : 9001,
            "icon" : "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png",
            "name" : "cmd",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : "%USERPROFILE%",
            "useAcrylic" : true
        },
        {
            "acrylicOpacity" : 0.5,
            "closeOnExit" : true,
            "colorScheme" : "Campbell",
            "commandline" : "wsl.exe -d Ubuntu",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "JetBrains Mono",
            "fontSize" : 10,
            "guid" : "{2c4de342-38b7-51cf-b940-2309a097f518}",
            "historySize" : 9001,
            "icon" : "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png",
            "name" : "Ubuntu",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "useAcrylic" : false
        },
        {
            "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
            "hidden": false,
            "name": "Azure Cloud Shell",
            "source": "Windows.Terminal.Azure"
        }
    ],
    "schemes" : 
    [
        {
            "background" : "#0C0C0C",
            "black" : "#0C0C0C",
            "blue" : "#0037DA",
            "brightBlack" : "#767676",
            "brightBlue" : "#3B78FF",
            "brightCyan" : "#61D6D6",
            "brightGreen" : "#16C60C",
            "brightPurple" : "#B4009E",
            "brightRed" : "#E74856",
            "brightWhite" : "#F2F2F2",
            "brightYellow" : "#F9F1A5",
            "cyan" : "#3A96DD",
            "foreground" : "#CCCCCC",
            "green" : "#13A10E",
            "name" : "Campbell",
            "purple" : "#881798",
            "red" : "#C50F1F",
            "white" : "#CCCCCC",
            "yellow" : "#C19C00"
        },
        {
            "background" : "#282C34",
            "black" : "#282C34",
            "blue" : "#61AFEF",
            "brightBlack" : "#5A6374",
            "brightBlue" : "#61AFEF",
            "brightCyan" : "#56B6C2",
            "brightGreen" : "#98C379",
            "brightPurple" : "#C678DD",
            "brightRed" : "#E06C75",
            "brightWhite" : "#DCDFE4",
            "brightYellow" : "#E5C07B",
            "cyan" : "#56B6C2",
            "foreground" : "#DCDFE4",
            "green" : "#98C379",
            "name" : "One Half Dark",
            "purple" : "#C678DD",
            "red" : "#E06C75",
            "white" : "#DCDFE4",
            "yellow" : "#E5C07B"
        },
        {
            "background" : "#FAFAFA",
            "black" : "#383A42",
            "blue" : "#0184BC",
            "brightBlack" : "#4F525D",
            "brightBlue" : "#61AFEF",
            "brightCyan" : "#56B5C1",
            "brightGreen" : "#98C379",
            "brightPurple" : "#C577DD",
            "brightRed" : "#DF6C75",
            "brightWhite" : "#FFFFFF",
            "brightYellow" : "#E4C07A",
            "cyan" : "#0997B3",
            "foreground" : "#383A42",
            "green" : "#50A14F",
            "name" : "One Half Light",
            "purple" : "#A626A4",
            "red" : "#E45649",
            "white" : "#FAFAFA",
            "yellow" : "#C18301"
        },
        {
            "background" : "#002B36",
            "black" : "#073642",
            "blue" : "#268BD2",
            "brightBlack" : "#002B36",
            "brightBlue" : "#839496",
            "brightCyan" : "#93A1A1",
            "brightGreen" : "#586E75",
            "brightPurple" : "#6C71C4",
            "brightRed" : "#CB4B16",
            "brightWhite" : "#FDF6E3",
            "brightYellow" : "#657B83",
            "cyan" : "#2AA198",
            "foreground" : "#839496",
            "green" : "#859900",
            "name" : "Solarized Dark",
            "purple" : "#D33682",
            "red" : "#DC322F",
            "white" : "#EEE8D5",
            "yellow" : "#B58900"
        },
        {
            "background" : "#FDF6E3",
            "black" : "#073642",
            "blue" : "#268BD2",
            "brightBlack" : "#002B36",
            "brightBlue" : "#839496",
            "brightCyan" : "#93A1A1",
            "brightGreen" : "#586E75",
            "brightPurple" : "#6C71C4",
            "brightRed" : "#CB4B16",
            "brightWhite" : "#FDF6E3",
            "brightYellow" : "#657B83",
            "cyan" : "#2AA198",
            "foreground" : "#657B83",
            "green" : "#859900",
            "name" : "Solarized Light",
            "purple" : "#D33682",
            "red" : "#DC322F",
            "white" : "#EEE8D5",
            "yellow" : "#B58900"
        }
    ]
}
@sztomi commented on GitHub (Feb 4, 2020): Of course. This is pretty much the default config; my changes were: * fontFace to JetBrains Mono everywhere * Color scheme to One Half Dark in the powershell tab * background to `null` as a workaround for the issue. If I change that value to a concrete color, that will overwrite the selected color scheme. ``` { "$schema": "https://aka.ms/terminal-profiles-schema", "globals" : { "alwaysShowTabs" : true, "defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "initialCols" : 120, "initialRows" : 30, "keybindings" : [ { "command" : "closeTab", "keys" : [ "ctrl+w" ] }, { "command" : "newTab", "keys" : [ "ctrl+t" ] }, { "command" : "newTabProfile0", "keys" : [ "ctrl+shift+1" ] }, { "command" : "newTabProfile1", "keys" : [ "ctrl+shift+2" ] }, { "command" : "newTabProfile2", "keys" : [ "ctrl+shift+3" ] }, { "command" : "newTabProfile3", "keys" : [ "ctrl+shift+4" ] }, { "command" : "newTabProfile4", "keys" : [ "ctrl+shift+5" ] }, { "command" : "newTabProfile5", "keys" : [ "ctrl+shift+6" ] }, { "command" : "newTabProfile6", "keys" : [ "ctrl+shift+7" ] }, { "command" : "newTabProfile7", "keys" : [ "ctrl+shift+8" ] }, { "command" : "newTabProfile8", "keys" : [ "ctrl+shift+9" ] }, { "command" : "nextTab", "keys" : [ "ctrl+tab" ] }, { "command" : "openSettings", "keys" : [ "ctrl+," ] }, { "command" : "prevTab", "keys" : [ "ctrl+shift+tab" ] }, { "command" : "scrollDown", "keys" : [ "ctrl+shift+down" ] }, { "command" : "scrollDownPage", "keys" : [ "ctrl+shift+pgdn" ] }, { "command" : "scrollUp", "keys" : [ "ctrl+shift+up" ] }, { "command" : "scrollUpPage", "keys" : [ "ctrl+shift+pgup" ] }, { "command" : "switchToTab0", "keys" : [ "alt+1" ] }, { "command" : "switchToTab1", "keys" : [ "alt+2" ] }, { "command" : "switchToTab2", "keys" : [ "alt+3" ] }, { "command" : "switchToTab3", "keys" : [ "alt+4" ] }, { "command" : "switchToTab4", "keys" : [ "alt+5" ] }, { "command" : "switchToTab5", "keys" : [ "alt+6" ] }, { "command" : "switchToTab6", "keys" : [ "alt+7" ] }, { "command" : "switchToTab7", "keys" : [ "alt+8" ] }, { "command" : "switchToTab8", "keys" : [ "alt+9" ] } ], "requestedTheme" : "system", "showTabsInTitlebar" : true, "showTerminalTitleInTitlebar" : true, "wordDelimiters" : " ./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}~?\u2502" }, "profiles" : [ { "acrylicOpacity": 0.5, "background": null, "closeOnExit": true, "colorScheme": "One Half Dark", "commandline": "powershell.exe", "cursorColor": "#FFFFFF", "cursorShape": "bar", "fontFace": "JetBrains Mono", "fontSize": 10, "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "historySize": 9001, "icon": "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png", "name": "Windows PowerShell", "padding": "0, 0, 0, 0", "snapOnInput": true, "startingDirectory": "%USERPROFILE%", "useAcrylic": false }, { "acrylicOpacity" : 0.75, "closeOnExit" : true, "colorScheme" : "Campbell", "commandline" : "cmd.exe", "cursorColor" : "#FFFFFF", "cursorShape" : "bar", "fontFace" : "JetBrains Mono", "fontSize" : 10, "guid" : "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "historySize" : 9001, "icon" : "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png", "name" : "cmd", "padding" : "0, 0, 0, 0", "snapOnInput" : true, "startingDirectory" : "%USERPROFILE%", "useAcrylic" : true }, { "acrylicOpacity" : 0.5, "closeOnExit" : true, "colorScheme" : "Campbell", "commandline" : "wsl.exe -d Ubuntu", "cursorColor" : "#FFFFFF", "cursorShape" : "bar", "fontFace" : "JetBrains Mono", "fontSize" : 10, "guid" : "{2c4de342-38b7-51cf-b940-2309a097f518}", "historySize" : 9001, "icon" : "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png", "name" : "Ubuntu", "padding" : "0, 0, 0, 0", "snapOnInput" : true, "useAcrylic" : false }, { "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden": false, "name": "Azure Cloud Shell", "source": "Windows.Terminal.Azure" } ], "schemes" : [ { "background" : "#0C0C0C", "black" : "#0C0C0C", "blue" : "#0037DA", "brightBlack" : "#767676", "brightBlue" : "#3B78FF", "brightCyan" : "#61D6D6", "brightGreen" : "#16C60C", "brightPurple" : "#B4009E", "brightRed" : "#E74856", "brightWhite" : "#F2F2F2", "brightYellow" : "#F9F1A5", "cyan" : "#3A96DD", "foreground" : "#CCCCCC", "green" : "#13A10E", "name" : "Campbell", "purple" : "#881798", "red" : "#C50F1F", "white" : "#CCCCCC", "yellow" : "#C19C00" }, { "background" : "#282C34", "black" : "#282C34", "blue" : "#61AFEF", "brightBlack" : "#5A6374", "brightBlue" : "#61AFEF", "brightCyan" : "#56B6C2", "brightGreen" : "#98C379", "brightPurple" : "#C678DD", "brightRed" : "#E06C75", "brightWhite" : "#DCDFE4", "brightYellow" : "#E5C07B", "cyan" : "#56B6C2", "foreground" : "#DCDFE4", "green" : "#98C379", "name" : "One Half Dark", "purple" : "#C678DD", "red" : "#E06C75", "white" : "#DCDFE4", "yellow" : "#E5C07B" }, { "background" : "#FAFAFA", "black" : "#383A42", "blue" : "#0184BC", "brightBlack" : "#4F525D", "brightBlue" : "#61AFEF", "brightCyan" : "#56B5C1", "brightGreen" : "#98C379", "brightPurple" : "#C577DD", "brightRed" : "#DF6C75", "brightWhite" : "#FFFFFF", "brightYellow" : "#E4C07A", "cyan" : "#0997B3", "foreground" : "#383A42", "green" : "#50A14F", "name" : "One Half Light", "purple" : "#A626A4", "red" : "#E45649", "white" : "#FAFAFA", "yellow" : "#C18301" }, { "background" : "#002B36", "black" : "#073642", "blue" : "#268BD2", "brightBlack" : "#002B36", "brightBlue" : "#839496", "brightCyan" : "#93A1A1", "brightGreen" : "#586E75", "brightPurple" : "#6C71C4", "brightRed" : "#CB4B16", "brightWhite" : "#FDF6E3", "brightYellow" : "#657B83", "cyan" : "#2AA198", "foreground" : "#839496", "green" : "#859900", "name" : "Solarized Dark", "purple" : "#D33682", "red" : "#DC322F", "white" : "#EEE8D5", "yellow" : "#B58900" }, { "background" : "#FDF6E3", "black" : "#073642", "blue" : "#268BD2", "brightBlack" : "#002B36", "brightBlue" : "#839496", "brightCyan" : "#93A1A1", "brightGreen" : "#586E75", "brightPurple" : "#6C71C4", "brightRed" : "#CB4B16", "brightWhite" : "#FDF6E3", "brightYellow" : "#657B83", "cyan" : "#2AA198", "foreground" : "#657B83", "green" : "#859900", "name" : "Solarized Light", "purple" : "#D33682", "red" : "#DC322F", "white" : "#EEE8D5", "yellow" : "#B58900" } ] } ```
Author
Owner

@DHowett-MSFT commented on GitHub (Feb 4, 2020):

It looks like you have a very old (pre-0.5) profiles.json, and you might be a lot happier deleting it and starting anew.

That aside, however: the behavior you’ve described is by design. Every profile has a color scheme, even ones you’ve never explicitly specified. The only way to defeat a color scheme’s background is, therefore, at the profile level.

The post-0.5 settings no longer include a background by default for the Windows PowerShell profile, though, so you won’t need to set it to null.

@DHowett-MSFT commented on GitHub (Feb 4, 2020): It looks like you have a very old (pre-0.5) profiles.json, and you might be a lot happier [deleting it](https://www.hanselman.com/blog/NowIsTheTimeToMakeAFreshNewWindowsTerminalProfilesjson.aspx) and starting anew. That aside, however: the behavior you’ve described is by design. Every profile has a color scheme, even ones you’ve never explicitly specified. The only way to defeat a color scheme’s background is, therefore, at the profile level. The post-0.5 settings no longer include a `background` by default for the Windows PowerShell profile, though, so you won’t need to set it to `null`.
Author
Owner

@DHowett-MSFT commented on GitHub (Feb 4, 2020):

It actually looks like you have a pre-0.3 settings file, which is sorta crazy. So, note that if you do delete it, you will get the actual default key bindings we’ve been using since 0.3 (mainly we’ve added shift to new and close tab.) Sorry about that.

@DHowett-MSFT commented on GitHub (Feb 4, 2020): It actually looks like you have a pre-0.3 settings file, which is sorta crazy. So, note that if you _do_ delete it, you will get the actual default key bindings we’ve been using since 0.3 (mainly we’ve added shift to new and close tab.) Sorry about that.
Author
Owner

@sztomi commented on GitHub (Feb 4, 2020):

Oh I see. No worries, I'm happy to delete the config. I installed Windows Terminal a long time ago and on the first try it seemed like it wasn't ready for my use-cases. So I kinda just left it there and tried again today. That seems to solve the problem, thanks!

@sztomi commented on GitHub (Feb 4, 2020): Oh I see. No worries, I'm happy to delete the config. I installed Windows Terminal a long time ago and on the first try it seemed like it wasn't ready for my use-cases. So I kinda just left it there and tried again today. That seems to solve the problem, thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6270