diff --git a/INSTALL.md b/INSTALL.md index ab7e4e3..7bd0448 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -6,15 +6,13 @@ A dark theme for the Windows 10 Console, supports both PowerShell and cmd.exe. There are 3 parts to configure; all of them are optional: - -
Powershell colors +
Powershell and CMD colors

1. Install the prerequisites: - PSReadLine 2.0 or later. It's installed by default in Windows 10, but you'll most likely [need to upgrade it](https://github.com/lzybkr/PSReadLine#user-content-upgrading). You can verify your PSReadLine version by running `(Get-Module PSReadLine).Version.Major` - Install git integration (posh-git) with `Install-Module -Name posh-git -AllowPrerelease -Force` . If you don't have an `-AllowPrerelease` flag, upgrade PowerShellGet with `Install-Module -Name PowerShellGet -Force` first. If that still doesn't work, see [this reported fix](https://github.com/dracula/powershell/issues/32#issuecomment-678836529) (thanks @LukeSavefrogs!). -1. [Download and unzip](https://raw.githubusercontent.com/waf/dracula-cmd/master/dist/ColorTool.zip) ColorTool. The [source code](https://github.com/Microsoft/Terminal/tree/master/src/tools/ColorTool) is available from Microsoft. -1. Open PowerShell, navigate to the unzipped `ColorTool` directory, and run `install.cmd`. +1. Double-Click the [console_colors_dracula.reg](console_colors_dracula.reg) and confirm. 1. Include [this powershell configuration](https://github.com/dracula/powershell/blob/master/theme/dracula-prompt-configuration.ps1) in your PowerShell `$profile` file.[1](https://github.com/dracula/powershell#user-content-profile-explanation) 1. Right-click on the window titlebar and choose `Properties`, then on the `Font` tab choose Consolas. Click `OK` to save. diff --git a/theme/README.md b/theme/README.md new file mode 100644 index 0000000..c1b76fd --- /dev/null +++ b/theme/README.md @@ -0,0 +1,9 @@ +https://devblogs.microsoft.com/commandline/understanding-windows-console-host-settings/ + +The `ScreenColors` property contains the Foreground Color in the last hex-nibble and the Background Color in the penultimate hex-nibble. + +The `PopupColors` behave accordingly. + +The `ColorTableXX` property has to be inserted in BGR order (instead of RGB), probably something with endianness. + +By removing the default overrides for Powershell, we only need to set the colors in one place. diff --git a/theme/console_colors_default.reg b/theme/console_colors_default.reg new file mode 100644 index 0000000..39c9d83 Binary files /dev/null and b/theme/console_colors_default.reg differ diff --git a/theme/console_colors_dracula.reg b/theme/console_colors_dracula.reg new file mode 100644 index 0000000..268dbd0 Binary files /dev/null and b/theme/console_colors_dracula.reg differ