newbie Asked: 2019-10-15 10:25:17 +0800 CST2019-10-15 10:25:17 +0800 CST 2019-10-15 10:25:17 +0800 CST Windows 10 终端中的白底黑字主题 772 我刚刚安装了新的 Windows 10 终端。这简直太棒了。我想将主题更改为白底黑字(目前是黑底白字)。有什么可用的配置吗?我有一些配置 坎贝尔 日晒灯 晒黑等 我想要简单的腻子(白底黑字)主题 windows-10 terminal 2 个回答 Voted Best Answer newbie 2019-10-15T10:40:13+08:002019-10-15T10:40:13+08:00 在https://github.com/mbadolato/iTerm2-Color-Schemes找到颜色主题 下载并解压 zip 文件 打开“windowsterminal”文件夹 打开任何文件(.json 格式) 复制设置并将它们粘贴到 Windows 终端设置的“模式”部分 复制后,它应该如下所示 // To view the default settings, hold "alt" while clicking on the "Settings" button. // For documentation on these settings, see: https://aka.ms/terminal-documentation { "$schema": "https://aka.ms/terminal-profiles-schema", "defaultProfile": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}", "profiles": [ { // Make changes here to the powershell.exe profile "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "name": "Windows PowerShell", "commandline": "powershell.exe", "hidden": false }, { // Make changes here to the cmd.exe profile "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "name": "cmd", "commandline": "cmd.exe", "hidden": false }, { "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden": false, "name": "Azure Cloud Shell", "source": "Windows.Terminal.Azure" }, { "guid": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}", "hidden": false, "name": "Ubuntu-18.04", "source": "Windows.Terminal.Wsl", "acrylicOpacity" : 0.5, "closeOnExit" : true, "colorScheme" : "AtomOneLight", "cursorColor" : "#000000", "cursorShape" : "bar", "fontFace" : "Consolas", "fontSize" : 12, "historySize" : 9001, "icon" : "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png", "padding" : "0, 0, 0, 0", "snapOnInput" : true, "useAcrylic" : false } ], // Add custom color schemes to this array "schemes": [ { "name": "AtomOneLight", "black": "#000000", "red": "#de3e35", "green": "#3f953a", "yellow": "#d2b67c", "blue": "#2f5af3", "purple": "#950095", "cyan": "#3f953a", "white": "#bbbbbb", "brightBlack": "#000000", "brightRed": "#de3e35", "brightGreen": "#3f953a", "brightYellow": "#d2b67c", "brightBlue": "#2f5af3", "brightPurple": "#a00095", "brightCyan": "#3f953a", "brightWhite": "#ffffff", "background": "#f9f9f9", "foreground": "#2a2c33" } ], // Add any keybinding overrides to this array. // To unbind a default keybinding, set the command to "unbound" "keybindings": [] } K Robinson 2020-09-04T08:07:38+08:002020-09-04T08:07:38+08:00 您可以通过 Alt-单击设置从 defaults.json 复制配色方案(设置位于选项卡栏的下拉菜单中)。 复制所有配色方案。然后在您的 settings.json 文件中(只需左键单击设置),将“模式”数组替换为您在 defaults.json 中复制的数组。你应该得到这样的结果: "schemes": [ { "name": "Campbell", // ... }, { "name": "Campbell Powershell", // ... }, // ... ] 然后,进一步向上,您应该找到一个空的配置文件默认对象。在其中创建一个“colorScheme”属性并将值设置为您想要的模式名称。你最终会得到这样的东西: "profiles": { "defaults": { // Put settings here that you want to apply to all profiles. "colorScheme": "One Half Light" }, "list": [ /*...you will see things like cmd, powershell, or ubuntu/WSL profiles here*/ ] 从那里,您可以将新模式添加到模式数组,然后按名称选择它们。
在https://github.com/mbadolato/iTerm2-Color-Schemes找到颜色主题
复制后,它应该如下所示
您可以通过 Alt-单击设置从 defaults.json 复制配色方案(设置位于选项卡栏的下拉菜单中)。
复制所有配色方案。然后在您的 settings.json 文件中(只需左键单击设置),将“模式”数组替换为您在 defaults.json 中复制的数组。你应该得到这样的结果:
然后,进一步向上,您应该找到一个空的配置文件默认对象。在其中创建一个“colorScheme”属性并将值设置为您想要的模式名称。你最终会得到这样的东西:
从那里,您可以将新模式添加到模式数组,然后按名称选择它们。