-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.17: color schemes no longer work #14174
Comments
huh, downloaded #14064 and it seems to work fine there. NOTE: 1.17.280 = dev/cazamor/selfhost/1.17 |
Oh never mind! Turns out it depends on my settings.json file. The bug can be seen with this settings.json: Bug repro{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
],
"alwaysShowNotificationIcon": true,
"copyFormatting": "none",
"copyOnSelect": false,
"debugFeatures": true,
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"minimizeToNotificationArea": false,
"newTabMenu":
[
{
"type": "remainingProfiles"
}
],
"profiles":
{
"defaults":
{
"backgroundImageAlignment": "bottomRight",
"backgroundImageOpacity": 0.4,
"backgroundImageStretchMode": "none",
"bellStyle": "all",
"cursorShape": "vintage",
"experimental.autoMarkPrompts": true,
"experimental.showMarksOnScrollbar": true,
"font":
{
"face": "CaskaydiaCove NF",
"size": 10.0
},
"intenseTextStyle": "all",
"opacity": 80,
"padding": "10, 0, 0, 0",
"scrollbarState": "visible",
"colorScheme": "Tango Light"
},
"list":
[
{
"colorScheme": "Raspberry Pi",
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"hidden": false,
"name": "PowerShell",
"source": "Windows.Terminal.PowershellCore"
},
{
"guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"hidden": false,
"icon": "ms-appdata:///Local/icon/ubuntu.png",
"name": "Ubuntu",
"source": "Windows.Terminal.Wsl"
},
{
"colorScheme": "Campbell",
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"name": "Command Prompt"
},
{
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"hidden": true,
"name": "Windows PowerShell"
},
{
"colorScheme": "Campbell",
"commandline": "C:\\WINDOWS\\system32\\wsl.exe -d Ubuntu",
"guid": "{6baced82-4c80-424a-9270-ba6af044d93e}",
"icon": "ms-appdata:///Local/icon/AdaptiveCards.png",
"name": "AdaptiveCards (JS)",
"startingDirectory": "/home/cazamor/projects/ac/source/nodejs"
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"hidden": true,
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure"
},
{
"guid": "{83bfd87d-26a9-5110-afc4-072b1fb35993}",
"hidden": true,
"name": "Developer Command Prompt for VS 2022 [Preview]",
"source": "Windows.Terminal.VisualStudio"
},
{
"guid": "{921abc0f-2e8e-56ef-a73d-9aff38500feb}",
"hidden": false,
"name": "Developer PowerShell for VS 2022 [Preview]",
"source": "Windows.Terminal.VisualStudio"
},
{
"colorScheme": "Raspberry Pi",
"commandline": "\"C:\\Program Files\\PowerShell\\7-preview\\pwsh.exe\"",
"guid": "{87944cac-852d-41d4-a514-495fcc8af346}",
"hidden": false,
"icon": "ms-appx:///ProfileIcons/pwsh-preview.png",
"name": "PowerShell (Copy)",
"startingDirectory": "%USERPROFILE%",
"useAtlasEngine": false
}
]
},
"schemes":
[
{
"background": "#0A85D9",
"black": "#282A2E",
"blue": "#1F415C",
"brightBlack": "#373B41",
"brightBlue": "#8BCAFF",
"brightCyan": "#4DE0CC",
"brightGreen": "#BBD627",
"brightPurple": "#DF9AF4",
"brightRed": "#F99191",
"brightWhite": "#FAFAFA",
"brightYellow": "#FFDA90",
"cursorColor": "#FFFFFF",
"cyan": "#005E52",
"foreground": "#FFFFFF",
"green": "#56851B",
"name": "ACNH",
"purple": "#692381",
"red": "#963030",
"selectionBackground": "#FFFFFF",
"white": "#C1C1C1",
"yellow": "#FF9A54"
},
{
"background": "#0C0C0C",
"black": "#0C0C0C",
"blue": "#0037DA",
"brightBlack": "#767676",
"brightBlue": "#3B78FF",
"brightCyan": "#61D6D6",
"brightGreen": "#16C60C",
"brightPurple": "#B4009E",
"brightRed": "#E74856",
"brightWhite": "#F2F2F2",
"brightYellow": "#F9F1A5",
"cursorColor": "#FFFFFF",
"cyan": "#3A96DD",
"foreground": "#CCCCCC",
"green": "#13A10E",
"name": "Campbell",
"purple": "#881798",
"red": "#C50F1F",
"selectionBackground": "#FFFFFF",
"white": "#CCCCCC",
"yellow": "#C19C00"
},
{
"background": "#012456",
"black": "#0C0C0C",
"blue": "#0037DA",
"brightBlack": "#767676",
"brightBlue": "#3B78FF",
"brightCyan": "#61D6D6",
"brightGreen": "#16C60C",
"brightPurple": "#B4009E",
"brightRed": "#E74856",
"brightWhite": "#F2F2F2",
"brightYellow": "#F9F1A5",
"cursorColor": "#FFFFFF",
"cyan": "#3A96DD",
"foreground": "#CCCCCC",
"green": "#13A10E",
"name": "Campbell Powershell",
"purple": "#881798",
"red": "#C50F1F",
"selectionBackground": "#FFFFFF",
"white": "#CCCCCC",
"yellow": "#C19C00"
},
{
"background": "#92FCFF",
"black": "#02827F",
"blue": "#0037DA",
"brightBlack": "#DE0000",
"brightBlue": "#3B78FF",
"brightCyan": "#61D6D6",
"brightGreen": "#16C60C",
"brightPurple": "#B4009E",
"brightRed": "#E74856",
"brightWhite": "#F2F2F2",
"brightYellow": "#F9F1A5",
"cursorColor": "#FFFFFF",
"cyan": "#3A96DD",
"foreground": "#7DFFF6",
"green": "#13A10E",
"name": "Custom CS",
"purple": "#881798",
"red": "#C50F1F",
"selectionBackground": "#FFFFFF",
"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",
"cursorColor": "#FFFFFF",
"cyan": "#56B6C2",
"foreground": "#DCDFE4",
"green": "#98C379",
"name": "One Half Dark",
"purple": "#C678DD",
"red": "#E06C75",
"selectionBackground": "#FFFFFF",
"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",
"cursorColor": "#4F525D",
"cyan": "#0997B3",
"foreground": "#383A42",
"green": "#50A14F",
"name": "One Half Light",
"purple": "#A626A4",
"red": "#E45649",
"selectionBackground": "#FFFFFF",
"white": "#FAFAFA",
"yellow": "#C18301"
},
{
"background": "#000000",
"black": "#0C0C0C",
"blue": "#0037DA",
"brightBlack": "#767676",
"brightBlue": "#3B78FF",
"brightCyan": "#61D6D6",
"brightGreen": "#16C60C",
"brightPurple": "#B4009E",
"brightRed": "#E74856",
"brightWhite": "#F2F2F2",
"brightYellow": "#F9F1A5",
"cursorColor": "#FFFFFF",
"cyan": "#3A96DD",
"foreground": "#FFFFFF",
"green": "#13A10E",
"name": "Postmodern Tango Light",
"purple": "#881798",
"red": "#C50F1F",
"selectionBackground": "#FFFFFF",
"white": "#CCCCCC",
"yellow": "#C19C00"
},
{
"background": "#3C0315",
"black": "#282A2E",
"blue": "#0170C5",
"brightBlack": "#676E7A",
"brightBlue": "#5C98C5",
"brightCyan": "#8ABEB7",
"brightGreen": "#B5D680",
"brightPurple": "#AC79BB",
"brightRed": "#BD6D85",
"brightWhite": "#FFFFFD",
"brightYellow": "#FFFD76",
"cursorColor": "#FFFFFD",
"cyan": "#3F8D83",
"foreground": "#FFFFFD",
"green": "#76AB23",
"name": "Raspberry Pi",
"purple": "#7D498F",
"red": "#BD0940",
"selectionBackground": "#FFFFFF",
"white": "#FFFFFD",
"yellow": "#E0DE48"
},
{
"background": "#002B36",
"black": "#002B36",
"blue": "#268BD2",
"brightBlack": "#073642",
"brightBlue": "#839496",
"brightCyan": "#93A1A1",
"brightGreen": "#586E75",
"brightPurple": "#6C71C4",
"brightRed": "#CB4B16",
"brightWhite": "#FDF6E3",
"brightYellow": "#657B83",
"cursorColor": "#FFFFFF",
"cyan": "#2AA198",
"foreground": "#839496",
"green": "#859900",
"name": "Solarized Dark",
"purple": "#D33682",
"red": "#DC322F",
"selectionBackground": "#FFFFFF",
"white": "#EEE8D5",
"yellow": "#B58900"
},
{
"background": "#FDF6E3",
"black": "#002B36",
"blue": "#268BD2",
"brightBlack": "#073642",
"brightBlue": "#839496",
"brightCyan": "#93A1A1",
"brightGreen": "#586E75",
"brightPurple": "#6C71C4",
"brightRed": "#CB4B16",
"brightWhite": "#FDF6E3",
"brightYellow": "#657B83",
"cursorColor": "#002B36",
"cyan": "#2AA198",
"foreground": "#657B83",
"green": "#859900",
"name": "Solarized Light",
"purple": "#D33682",
"red": "#DC322F",
"selectionBackground": "#FFFFFF",
"white": "#EEE8D5",
"yellow": "#B58900"
},
{
"background": "#000000",
"black": "#000000",
"blue": "#3465A4",
"brightBlack": "#555753",
"brightBlue": "#729FCF",
"brightCyan": "#34E2E2",
"brightGreen": "#8AE234",
"brightPurple": "#AD7FA8",
"brightRed": "#EF2929",
"brightWhite": "#EEEEEC",
"brightYellow": "#FCE94F",
"cursorColor": "#FFFFFF",
"cyan": "#06989A",
"foreground": "#D3D7CF",
"green": "#4E9A06",
"name": "Tango Dark",
"purple": "#75507B",
"red": "#CC0000",
"selectionBackground": "#FFFFFF",
"white": "#D3D7CF",
"yellow": "#C4A000"
},
{
"background": "#FFFFFF",
"black": "#64D493",
"blue": "#3465A4",
"brightBlack": "#555753",
"brightBlue": "#729FCF",
"brightCyan": "#34E2E2",
"brightGreen": "#8AE234",
"brightPurple": "#AD7FA8",
"brightRed": "#EF2929",
"brightWhite": "#EEEEEC",
"brightYellow": "#FCE94F",
"cursorColor": "#000000",
"cyan": "#06989A",
"foreground": "#555753",
"green": "#4E9A06",
"name": "Tango Light",
"purple": "#75507B",
"red": "#CC0000",
"selectionBackground": "#FFFFFF",
"white": "#D3D7CF",
"yellow": "#C4A000"
},
{
"background": "#000000",
"black": "#000000",
"blue": "#000080",
"brightBlack": "#808080",
"brightBlue": "#0000FF",
"brightCyan": "#00FFFF",
"brightGreen": "#00FF00",
"brightPurple": "#FF00FF",
"brightRed": "#FF0000",
"brightWhite": "#FFFFFF",
"brightYellow": "#FFFF00",
"cursorColor": "#FFFFFF",
"cyan": "#008080",
"foreground": "#C0C0C0",
"green": "#008000",
"name": "Vintage",
"purple": "#800080",
"red": "#800000",
"selectionBackground": "#FFFFFF",
"white": "#C0C0C0",
"yellow": "#808000"
}
],
"startOnUserLogin": true,
"tabWidthMode": "equal",
"theme": "terminal",
"themes":
[
{
"name": "Edge",
"tab":
{
"background": "terminalBackground",
"showCloseButton": "hover",
"unfocusedBackground": null
},
"tabRow":
{
"background": "accent",
"unfocusedBackground": null
},
"window":
{
"applicationTheme": "system"
}
},
{
"name": "WHITE",
"tabRow":
{
"background": "#FFFFFFFF",
"unfocusedBackground": null
},
"window":
{
"applicationTheme": "dark"
}
},
{
"name": "accent-accent",
"tab":
{
"background": "accent",
"showCloseButton": "always",
"unfocusedBackground": null
},
"tabRow":
{
"background": "accent",
"unfocusedBackground": "accent"
},
"window":
{
"applicationTheme": "system"
}
},
{
"name": "mica",
"tab":
{
"background": "terminalBackground",
"showCloseButton": "always",
"unfocusedBackground": null
},
"tabRow":
{
"background": "#00000000",
"unfocusedBackground": null
},
"window":
{
"applicationTheme": "dark"
}
},
{
"name": "my dark",
"tab":
{
"background": "terminalBackground",
"showCloseButton": "always",
"unfocusedBackground": null
},
"tabRow":
{
"background": "#00000000",
"unfocusedBackground": null
},
"window":
{
"applicationTheme": "dark"
}
},
{
"name": "nice",
"tab":
{
"background": "terminalBackground",
"showCloseButton": "never",
"unfocusedBackground": null
},
"tabRow":
{
"background": "accent",
"unfocusedBackground": null
},
"window":
{
"applicationTheme": "system"
}
},
{
"name": "orangey",
"tab":
{
"background": null,
"showCloseButton": "always",
"unfocusedBackground": null
},
"tabRow":
{
"background": "#FF8800FF",
"unfocusedBackground": null
},
"window":
{
"applicationTheme": "light"
}
},
{
"name": "proposed default dark",
"tab":
{
"background": "terminalBackground",
"showCloseButton": "always",
"unfocusedBackground": null
},
"tabRow":
{
"background": "#0A0A0AFF",
"unfocusedBackground": "#202020FF"
},
"window":
{
"applicationTheme": "dark"
}
},
{
"name": "terminal",
"tab":
{
"background": "terminalBackground",
"showCloseButton": "always",
"unfocusedBackground": null
},
"tabRow":
{
"background": "terminalBackground",
"unfocusedBackground": null
},
"window":
{
"applicationTheme": "dark"
}
}
],
"useAcrylicInTabRow": false,
"windowingBehavior": "useNew",
"wordDelimiters": " |\u2502;\ue0a0"
} The bug doesn't repro with this one: No Repro{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
],
"copyFormatting": "none",
"copyOnSelect": true,
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"profiles":
{
"defaults":
{
"colorScheme": "Campbell"
},
"list":
[
{
"commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"hidden": false,
"name": "Windows PowerShell"
},
{
"commandline": "%SystemRoot%\\System32\\cmd.exe",
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"hidden": false,
"name": "Command Prompt"
},
{
"cursorColor": "#FF0000",
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"hidden": false,
"name": "PowerShell",
"source": "Windows.Terminal.PowershellCore",
"colorScheme": "Tango Light"
},
{
"guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"hidden": false,
"name": "Ubuntu",
"source": "Windows.Terminal.Wsl"
},
{
"guid": "{83bfd87d-26a9-5110-afc4-072b1fb35993}",
"hidden": false,
"name": "Developer Command Prompt for VS 2022 [Preview]",
"source": "Windows.Terminal.VisualStudio"
},
{
"guid": "{921abc0f-2e8e-56ef-a73d-9aff38500feb}",
"hidden": false,
"name": "Developer PowerShell for VS 2022 [Preview]",
"source": "Windows.Terminal.VisualStudio"
}
]
},
"schemes":
[
{
"background": "#0C0C0C",
"black": "#0C0C0C",
"blue": "#0037DA",
"brightBlack": "#767676",
"brightBlue": "#3B78FF",
"brightCyan": "#61D6D6",
"brightGreen": "#16C60C",
"brightPurple": "#B4009E",
"brightRed": "#E74856",
"brightWhite": "#F2F2F2",
"brightYellow": "#F9F1A5",
"cursorColor": "#FFFFFF",
"cyan": "#3A96DD",
"foreground": "#CCCCCC",
"green": "#13A10E",
"name": "Campbell",
"purple": "#881798",
"red": "#C50F1F",
"selectionBackground": "#FFFFFF",
"white": "#CCCCCC",
"yellow": "#C19C00"
},
{
"background": "#012456",
"black": "#0C0C0C",
"blue": "#0037DA",
"brightBlack": "#767676",
"brightBlue": "#3B78FF",
"brightCyan": "#61D6D6",
"brightGreen": "#16C60C",
"brightPurple": "#B4009E",
"brightRed": "#E74856",
"brightWhite": "#F2F2F2",
"brightYellow": "#F9F1A5",
"cursorColor": "#FFFFFF",
"cyan": "#3A96DD",
"foreground": "#CCCCCC",
"green": "#13A10E",
"name": "Campbell Powershell",
"purple": "#881798",
"red": "#C50F1F",
"selectionBackground": "#FFFFFF",
"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",
"cursorColor": "#FFFFFF",
"cyan": "#56B6C2",
"foreground": "#DCDFE4",
"green": "#98C379",
"name": "One Half Dark",
"purple": "#C678DD",
"red": "#E06C75",
"selectionBackground": "#FFFFFF",
"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",
"cursorColor": "#4F525D",
"cyan": "#0997B3",
"foreground": "#383A42",
"green": "#50A14F",
"name": "One Half Light",
"purple": "#A626A4",
"red": "#E45649",
"selectionBackground": "#FFFFFF",
"white": "#FAFAFA",
"yellow": "#C18301"
},
{
"background": "#002B36",
"black": "#002B36",
"blue": "#268BD2",
"brightBlack": "#073642",
"brightBlue": "#839496",
"brightCyan": "#93A1A1",
"brightGreen": "#586E75",
"brightPurple": "#6C71C4",
"brightRed": "#CB4B16",
"brightWhite": "#FDF6E3",
"brightYellow": "#657B83",
"cursorColor": "#FFFFFF",
"cyan": "#2AA198",
"foreground": "#839496",
"green": "#859900",
"name": "Solarized Dark",
"purple": "#D33682",
"red": "#DC322F",
"selectionBackground": "#FFFFFF",
"white": "#EEE8D5",
"yellow": "#B58900"
},
{
"background": "#FDF6E3",
"black": "#002B36",
"blue": "#268BD2",
"brightBlack": "#073642",
"brightBlue": "#839496",
"brightCyan": "#93A1A1",
"brightGreen": "#586E75",
"brightPurple": "#6C71C4",
"brightRed": "#CB4B16",
"brightWhite": "#FDF6E3",
"brightYellow": "#657B83",
"cursorColor": "#002B36",
"cyan": "#2AA198",
"foreground": "#657B83",
"green": "#859900",
"name": "Solarized Light",
"purple": "#D33682",
"red": "#DC322F",
"selectionBackground": "#FFFFFF",
"white": "#EEE8D5",
"yellow": "#B58900"
},
{
"background": "#000000",
"black": "#000000",
"blue": "#3465A4",
"brightBlack": "#555753",
"brightBlue": "#729FCF",
"brightCyan": "#34E2E2",
"brightGreen": "#8AE234",
"brightPurple": "#AD7FA8",
"brightRed": "#EF2929",
"brightWhite": "#EEEEEC",
"brightYellow": "#FCE94F",
"cursorColor": "#FFFFFF",
"cyan": "#06989A",
"foreground": "#D3D7CF",
"green": "#4E9A06",
"name": "Tango Dark",
"purple": "#75507B",
"red": "#CC0000",
"selectionBackground": "#FFFFFF",
"white": "#D3D7CF",
"yellow": "#C4A000"
},
{
"background": "#FFFFFF",
"black": "#000000",
"blue": "#3465A4",
"brightBlack": "#555753",
"brightBlue": "#729FCF",
"brightCyan": "#34E2E2",
"brightGreen": "#8AE234",
"brightPurple": "#AD7FA8",
"brightRed": "#EF2929",
"brightWhite": "#EEEEEC",
"brightYellow": "#FCE94F",
"cursorColor": "#000000",
"cyan": "#06989A",
"foreground": "#555753",
"green": "#4E9A06",
"name": "Tango Light",
"purple": "#75507B",
"red": "#CC0000",
"selectionBackground": "#FFFFFF",
"white": "#D3D7CF",
"yellow": "#C4A000"
},
{
"background": "#000000",
"black": "#000000",
"blue": "#000080",
"brightBlack": "#808080",
"brightBlue": "#0000FF",
"brightCyan": "#00FFFF",
"brightGreen": "#00FF00",
"brightPurple": "#FF00FF",
"brightRed": "#FF0000",
"brightWhite": "#FFFFFF",
"brightYellow": "#FFFF00",
"cursorColor": "#FFFFFF",
"cyan": "#008080",
"foreground": "#C0C0C0",
"green": "#008000",
"name": "Vintage",
"purple": "#800080",
"red": "#800000",
"selectionBackground": "#FFFFFF",
"white": "#C0C0C0",
"yellow": "#808000"
}
],
"theme": "dark",
"themes":
[
{
"name": "Carlos Theme"
}
]
} So yeah, #14064 is responsible for this one. |
@carlos-zamora and @DHowett The root cause for this bug was due to my lack of understanding how themes could be applied. The logic has been updated. Solution was just to check for a few more theme use cases. There was another bug around if we misspell a color scheme name in the json, it would default to Campbell, now that has been fixed too. |
Awesome! Thanks for fixing this so quickly! I'll spin up a selfhost build for the team with this fix tomorrow :) |
Verified this got fixed. Fix is available in selfhost build 1.17.284 |
Windows Terminal version
1.17.280
Windows build number
No response
Other Software
No response
Steps to reproduce
Use a non-Campbell color scheme.
Expected Behavior
No response
Actual Behavior
bad scheme
set here
no override
outcome
The text was updated successfully, but these errors were encountered: