Giter Site home page Giter Site logo

conemu-color-themes's Introduction

Color Schemes for ConEmu

This repo originally started as a place to share my favorite color schemes that I ported from various sources to ConEmu. A lot of recently added themes and improvements are from various contributors (thanks a lot!).

I started porting color schemes manually because I found that automatically ported color schemes generally do not look good, because in many cases two programs have inconsistencies in items for color schemes. So, I try to manually choose colors to get color schemes as consistent as possible to the original.

Note that most of the screenshots shown here are taken with the prompt customized with posh-git and the Get-ChildItem with Get-ChildItemColor. See this blog post for my PowerShell customizations.

My current favorites are material-theme (Emacs) light and One Dark.

Examples

Color Schemes List

For all screenshots, see screenshots

How to Install

Use Install-ConEmuTheme.ps1 PowerShell script.

  • Use Install-ConEmuTheme.ps1 PowerShell script. First, the script will always create a backup of your config file as ConEmu.backup.xml prior to doing anything else. It’s got two operation modes:
    1. To add a theme to your config file:
      .\Install-ConEmuTheme.ps1 [-ConfigPath Path] -Operation Add -ThemePathOrName themes\oceans16-dark.xml
              
    2. To remove a theme from your config file:
      .\Install-ConEmuTheme.ps1 [-ConfigPath Path] -Operation Remove -ThemePathOrName "Oceans16 Dark"
              
  • Note that -ConfigPath argument is optional if your ConEmu.xml is located at the default location (C:\Users\You\AppData\Roaming\ConEmu.xml).
  • To add all the themes included in this repo, run the following in a powershell prompt:
    @(Get-ChildItem -Recurse -Filter *.xml ) | %{.\Install-ConEmuTheme.ps1 -Operation Add -ThemePathOrName $_.FullName}
        

Manually add color schemes and modify the ConEmu.xml file:

  1. Open ConEmu.xml. Usually it is at ~\AppData\Roaming, where ~ is your home directory (C:\Users\UserName).
  2. Paste the color scheme at the end of palette settings part. It starts with the following:
    <key name="Colors" modified="2015-03-19 13:53:09" build="150310">
    	<value name="Count" type="dword" data="00000001"/>
    	<key name="Palette1" modified="2015-03-19 13:53:09" build="150310">
        
  3. If you do not have any custom color scheme, the xml key is not there. In ConEmu, go to Settings -> Feature -> Colors and generate a custom color theme by click on Save button and specify any name. Then Colors key will be automatically generated in your ConEmu.xml. You can overwrite it when you add new themes.
  4. Update the palette number (key name PaletteX) accordingly. For example, if you have 1 custom color palette already, it should be Palette2 for the new one:
    <key name="Palette2" modified="2015-03-19 13:53:09" build="150310">
        
  5. Make sure to increase the value for key name Count under key Colors as well. It should equal to the total number of pallets you have:
    <value name="Count" type="dword" data="00000002"/>
        
  6. For example, the Colors part of your modified ConEmu.xml should look like this:
    <key name="Colors" modified="2015-03-19 13:53:09" build="150310">
    	<value name="Count" type="dword" data="00000002"/>
    	<key name="Palette1" modified="2015-03-19 13:53:09" build="150310">
    		<value name="Name" type="string" data="EXISTING COLOR"/>
    		...
    		<value name="ColorTable31" type="dword" data="00e3f6fd"/>
    	</key>
    	<key name="Palette2" modified="2015-03-19 13:53:09" build="150310">
    		<value name="Name" type="string" data="NAME OF THE COLOR YOU ADDED"/>
    		...
    		<value name="ColorTable31" type="dword" data="00e7fdfd"/>
    	</key>
    </key>      
        

How to Contribute

See Template.xml for the template for color schemes with the default colors. In general, programs (such as git) uses colors through 0 - 8, (see the template for their uses). I decided to use git and PowerShell as the main targets, so please try to match your colors to the usage of those applications.

Also, make sure that all the color options set to Auto to get correct highlighting:

./screenshots/ConEmu_Color_Options.png

Changelog

April 2021

June 2020

2

1

  • Add missing contributor information and screenshots for Rusty, Tango (dark), and xfce4-terminal (white on black)
  • Re-organize & cleanup the theme list and screenshots

0

  • Add Chalk theme (thanks to Cobertos)
  • Use full theme path when installing all themes (#32)
  • Swap ayu-dark and ayu-mirage screenshots (#29)
  • Make some colors in ayu-light consistent to the original

August 2018

  • Add ayu theme

April 2017

  • Change file structure
  • Add material-sublime-darker theme (thanks to chantisnake)
  • Add gruvbox theme (thanks to circleous)

March 2017

  • Add One Dark theme
  • Add default value for -ConfigPath argument for Install-ConEmuTheme.ps1

February 2017

  • Add Monokai
  • Add theme (un)installation script, tools/Install-ConEmuTheme.ps1 (Thanks to GrzegorzKozub).

January 2017

  • Add bas16-railscasts (light and dark)

conemu-color-themes's People

Contributors

bluedenim avatar cobertos avatar connorgriffin avatar dhruvdutt avatar grzegorzkozub avatar joonro avatar jozsefsallai avatar liinkiing avatar linerre avatar matomesc avatar miroque avatar musm avatar rkitover avatar tbekolay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

conemu-color-themes's Issues

What term are you using?

What terminal are you using with ConEmu? I'm using Cygwin with ConEmu, though my path and name don't use colors for some reason.

I've tried MinGW bash, Windows 10 Bash, Git Bash, CMD, and PowerShell and none of them color the path or user and machine name.

Install-ConEmuTheme.ps1 script throws this error

PS>.\Install-ConEmuTheme.ps1

cmdlet Install-ConEmuTheme.ps1 at command pipeline position 1
Supply values for the following parameters:
Operation: Add
ThemePathOrName: themes\material-sublime-darker.xml
C:\Users\Me\Documents\WindowsPowerShell\ConEmu-Color-Themes\Install-ConEmuTheme.ps1 : Exception calling
"Save" with "1" argument(s): "Invalid XML document. The document does not have a root element."
At line:1 char:1
+ .\Install-ConEmuTheme.ps1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-ConEmuTheme.ps1

What am i doing wrong?

Trying to import all themes at once using the Powershell command generates Parameter Binding errors

When you attempt to bulk import all themes using the provided command in the instructions, it generates the following errors (posting one example, they're the same for every theme):-

C:\JUNK\ConEmu-Color-Themes\Install-ConEmuTheme.ps1 : Cannot validate argument on parameter
'ThemePathOrName'. The "($Operation -eq "Remove") -or (Test-Path -Path $)" validation script for the
argument with value "xfce4-terminal-white-on-black.xml" did not return a result of True. Determine why the
validation script failed, and then try the command again.
At line:1 char:104
...l ) | %{.\Install-ConEmuTheme.ps1 -Operation Add -ThemePathOrName $
}
CategoryInfo : InvalidData: (:) [Install-ConEmuTheme.ps1], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Install-ConEmuTheme.ps1

Instead, I went with a traditional loop to perform the imports and used the "fullName" of the xml files instead and that worked:

PS C:\JUNK\ConEmu-Color-Themes> foreach ($file in $files) {$filepath = $file.FullName Write-Host "Installing $filepath..." .\Install-ConEmuTheme.ps1 -Operation Add -ThemePathOrName $filepath}

Solarized light in cmder shows incorrect colors

I'm using cmder which uses conemu as its terminal emulator. It has some colorschemes bundled already, and Solarized Light is one of them, but it does not work. I tried your Solarized Light version and same result.

Here is the broken cmder screenshot:
image

And here is the correct Windows Terminal screenshot:
image

How to add all themes under themes folder

I want to add all themes under the themes directory instead of passing the names inidviudally
running

>.\Install-ConEmuTheme.ps1 -Operation Add -ThemePathOrName .\themes
Get-Content : Cannot find path 'C:\Users\Mus\Documents\ConEmu-Color-Themes\themes\C:\Users\Mus\Documents\ConEmu-Color-Themes\themes\ayu Dark.xml' because it does not exist.
At C:\Users\Mus\Documents\ConEmu-Color-Themes\Install-ConEmuTheme.ps1:28 char:19
+     [Xml]$theme = Get-Content -Path $ThemeFile
+                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (C:\Users\Mus\Do...es\ayu Dark.xml:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Skipped: C:\Users\Mus\Documents\ConEmu-Color-Themes\themes\ayu Dark.xml
Get-Content : Cannot find path 'C:\Users\Mus\Documents\ConEmu-Color-Themes\themes\C:\Users\Mus\Documents\ConEmu-Color-Themes\themes\ayu Mirage.xml' because it does not exist.
At C:\Users\Mus\Documents\ConEmu-Color-Themes\Install-ConEmuTheme.ps1:28 char:19
+     [Xml]$theme = Get-Content -Path $ThemeFile
+                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (C:\Users\Mus\Do...\ayu Mirage.xml:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Skipped: C:\Users\Mus\Documents\ConEmu-Color-Themes\themes\ayu Mirage.xml
Get-Content : Cannot find path 'C:\Users\Mus\Documents\ConEmu-Color-Themes\themes\C:\Users\Mus\Documents\ConEmu-Color-Themes\themes\ayu.xml' because it does not exist.
At C:\Users\Mus\Documents\ConEmu-Color-Themes\Install-ConEmuTheme.ps1:28 char:19
+     [Xml]$theme = Get-Content -Path $ThemeFile
+                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (C:\Users\Mus\Do...\themes\ayu.xml:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Install-ConEmuTheme.ps1 gives this error

Command : .\Install-ConEmuTheme.ps1 [-ConfigPath Path] -Operation Add -ThemePathOrName themes\oceans16-dark.xml
Throws This : Install-ConEmuTheme.ps1: Cannot validate argument on parameter 'ConfigPath'. The "Test-Path -Path $_" validation script for the argument with value "[-ConfigPath" did not return a result of True. Determine why the validation script failed, and then try the command again.

Windows 7 32-bit, ConEmu x86 (Version : 11.210)

Installing all themes typo

Hi, I think there is a typo in the full installation command:

@(Get-ChildItem -Recurse -Filter *.xml ) | %{.\Install-ConEmuTheme.ps1 -Operation Add -ThemePathOrName $_}

It needed one change for me to work ("themes\$_" instead of $_):

@(Get-ChildItem -Recurse -Filter *.xml ) | %{.\Install-ConEmuTheme.ps1 -Operation Add -ThemePathOrName "themes\$_"}

Hope it will save someone the time of figuring out what is wrong here

Themes installed using the script do not show in the settings

I was able to install the themes using the .\Install-ConEmuTheme.ps1 command, however they are not showing up in the settings when I try to select colors. If I attempt to import them again, it states they are already imported.

They show up in the config.xml I believe (attached as zip) but do not show in the color selection

2017-06-28 17_40_05-install-conemutheme ps1 script throws this error issue 15 joonro_conemu-col

ConEmu.zip

The Moe-dark scheme looks different

It doesn't look anything like this picture in my terminal. Judging by the color values in the xml file, they don't look like they could possibly yield the colors in the picture you posted. Am I missing something; or perhaps, the wrong photo/xml file has been uploaded to this repo?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.