Skip to content
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

Simplify installation #58

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:


<details><summary><strong>Powershell colors</strong></summary>
<details><summary><strong>Powershell and CMD colors</strong></summary>
<p>

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.<sup>[1](https://github.com/dracula/powershell#user-content-profile-explanation)</sup>
1. Right-click on the window titlebar and choose `Properties`, then on the `Font` tab choose Consolas. Click `OK` to save.

Expand Down
9 changes: 9 additions & 0 deletions theme/README.md
Original file line number Diff line number Diff line change
@@ -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.
Binary file added theme/console_colors_default.reg
Binary file not shown.
Binary file added theme/console_colors_dracula.reg
Binary file not shown.