From daed7f012d3f1133f5369c1c1e08b6f932d88248 Mon Sep 17 00:00:00 2001 From: Julian Hapke Date: Mon, 25 Mar 2024 10:45:39 +0100 Subject: [PATCH] Simplify installation --- INSTALL.md | 6 ++---- theme/README.md | 9 +++++++++ theme/console_colors_default.reg | Bin 0 -> 2366 bytes theme/console_colors_dracula.reg | Bin 0 -> 2910 bytes 4 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 theme/README.md create mode 100644 theme/console_colors_default.reg create mode 100644 theme/console_colors_dracula.reg 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 0000000000000000000000000000000000000000..39c9d83b9eff82675c8c5d16fe1fedb3f80a771c GIT binary patch literal 2366 zcmeH|U2oGc6o%jHN&JUt5|>O(vwj4L8`uyM5}vci-9Cq!=+v#5 z?H#?qhqYUo>bcvmqm19W+um(-+-=hv>vh7o3N&F&LP!56cFTIwZlnZBb`C3aR$!8Wn; z+G&a@-oM&8V9!RQu45VFr72p5kF`SH^~$nwv(?d!AxgL$tJl`5mTGMHrXoHN#W|;N zevf_T@@9K%qRS_Gieg{5yCByOlzTy2GMnC-kI8bX+c$~%v?iXCe}3b4PD}NZYO?zx z#n)!Nx?11mf4}JA`@mmq_MLR8^3Gqh$**jtsX1S%WuVST`(!HRvI=B?v0~NFrmYloCwCwX8p1otbe>YxXLAyvcA~ zXYM_7=gyvc^!=@kK8EOGgehWVP)84UT#GTm7_VG8q_@x6i1Q52=^xYE=X}Vyj~pD1 zZER_~#1W2(xj=*}THLSB*$JAQx6t7CIy&?ybj;5I_q)=_tX>`HJWX8VM*Gy>S?u!+ zQ|;+uPv`ScL>>pUl8AP#XrIUe0$M>t=dI|FSwrSkrs_^Rxo1V2%z1r&30<(FL)3VO zWoE93xqT}-ASz_-{_KsVoxEs87x{)Ny6#ZS9azy-Rvhr;A%|3V$%+n%EW=~|nuso2 z(LO6yL(c7{aIM6;)vbkah1@Q^Hl`{DCnLRXmz??y+Rn8kuX;+k?OajtI}>h|{m5^c*Es$eO$ICIR@7blUsot0OS$)qg6>f2#^nOb+NnK@P u{;zl1IAzZi`3t=1opfz>zP!^<$+5-0u*dv;?|cBK