Skip to content

MartinCowen/ThemeWinMerge

Repository files navigation

Theme WinMerge

This utility provides a way to design colour schemes for WinMerge. WinMerge's Option page is not that easy to work with since it only displays some of the colours used at any one time and does not provide any way to change colours en-masse. This utility opens and saves the ini files which can be found in one of two places depending on how WinMerge is installed.

  • System Wide install, the ini files are found in %ProgramFiles%\WinMerge\ColorSchemes but files in this folder can only be edited by an Admin.
  • Portable app install, the ini files are found in %localappdata%\Programs\WinMerge\ColorSchemes

Application

Usage

  • If WinMerge was a System Wide Install, copy the ini file to somewhere else while working on it, then copy it back with Admin permissions.
  • Portable app install, the ini files can be worked on directly.
  • Make a backup copy before editing or save as a different file name.

Display Options

  • "All" shows all entries with the word "color" in them.
  • "Line" colours have Background, Deleted and Text colours. This means the background to a line difference, the background to a deleted line, and the text font colour used for line differences.
  • "Syntax" and "Markers" don't have other options.
  • Directory has Background and Text options.

List of Items

Each colour item found in the ini file is filtered according to the Display Options and shown in the list.

Clicking on the colour box brings up the standard Windows colour dialog, so you can select or adjust the colour and click Ok. You can also enter decimal values for Red, Green, Blue or Hue, Saturation, Luminance which can be useful for copying colours from elsewhere. To pick up a colour from elsewhere on your screen, use another program like Meazure which can show RGB values. You do not need to add the new colour to the custom colours.

Next to the colour box are PastePaste, CopyCopy and RevertRevert icons, then a select checkbox.

  • PastePaste - Pastes from the copy colour box. Does not use the Windows clipboard.
  • CopyCopy - Copies to the copy colour box.
  • RevertRevert - Reverts the colour box to the value from when the file was opened. If you want to revert all, it is quicker to reopen the file.
  • Checkbox - Selects that item to be adjusted with the Colour Change All Selected controls.

Colour Change All Selected

Every item with the checkbox ticked will be affected by these controls.

  • Red, Green, Blue arrow buttons nudge the primary component up or down by 2 steps until it hits 0 or 255.
  • Black arrow buttons nudge all three primaries by 2 steps until they hit 0 or 255 each.
  • Temp arrows adjust the colour temperature - up is warmer by adding 2 steps to red and removing 2 steps from blue, down is the opposite.

Installation

No installer is provided because the program consists of a single executable which has no dependencies other than what is standard on a Windows 10 installation.

Source Code

Written in C# as a WinForms application using .NET Framework 4.7.2 in Visual Studio 2019
No third party components are used.

Credits

Copy, Paste, Revert icons were generated with iconoir
App icon is mine, drawn from the WinMerge options dialog with the default colour scheme and converted to an icon using IcoFx 1.6.4
Temp adjustment calculation from Tanner Helland
Techniques to speed up redrawing from StackOverflow.

About

Design/Edit colour schemes for WinMerge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages