From daed7f012d3f1133f5369c1c1e08b6f932d88248 Mon Sep 17 00:00:00 2001 From: Julian Hapke Date: Mon, 25 Mar 2024 10:45:39 +0100 Subject: [PATCH 1/3] 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 Date: Tue, 26 Mar 2024 09:50:33 +0100 Subject: [PATCH 2/3] changed color order to match ConsoleColor enumeration --- theme/console_colors_dracula.reg | Bin 2910 -> 2910 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/theme/console_colors_dracula.reg b/theme/console_colors_dracula.reg index 8fe8e95be797a614eb89b70b1536d3f0c969c1c0..249369c30736e232b79a828cfe96b0937165e2c3 100644 GIT binary patch delta 145 zcmca7c28`=kI4_1)h5d^N&3_0+UM^?ZEsSK=D;f8j~fMLcn}JE{@5wm;@&N z(3pIQNen2YFTR8;itbHK6hf g>}->LSOg}UF$zu2V=-cMo4k<4p3!adLzY@L02uc!-2eap delta 130 zcmca7c28`=kIAc;G$t!BicOAT5t{75m^C?tS#9zSMv2L4Kw69`Z1Mvj&Bw(tc@~qv z Date: Wed, 3 Apr 2024 10:27:34 +0200 Subject: [PATCH 3/3] completed palette with closest dracula colors --- theme/console_colors_dracula.reg | Bin 2910 -> 4124 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/theme/console_colors_dracula.reg b/theme/console_colors_dracula.reg index 249369c30736e232b79a828cfe96b0937165e2c3..268dbd0ce05db1c072586f8035f06413da6f37d6 100644 GIT binary patch literal 4124 zcmeHJTTc@~6h5yt@jq-xc$B!5UeNeJfz`wdq<{?((`;$24ZVeJE&O@)`(`@qEKCp8 z#P~uc+jMr$cdp+#JHLLmWFTYd%0w2DNhD3_NgwYrnaQ=>;>{sW2iQ%pkK{AXuW>rS zevExZw&W$&b9rW-*LXLR?~sb*5;DUjt_SJ4j0`%3gu_qdn}?V}da<-X9Yd_hctia~ z-PD{xhMq?7@mf+?oCA>-Y%{79r}Suqe=|r?cNcp`W&O3fB6yh^FSEO7I?zcAE-GSg zuxE5#W1o8GOFufs4z2yb!%WeV^S)ucyOb*_VKHxIsmiwO;i=Zhx$sg5B$hPGKS~(b-XqCU`>i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