Browse by type
A Windows-based color picker utility built with Microsoft Foundation Classes (MFC).
This GitHub repository contains the source code for Color Cop. It is intended for developers and contributors who want to build, debug, or improve the application.
If you just want to download and use Color Cop, visit the official website: colorcop.net, which provides the latest stable installer and user-focused information.
This repository is focused on development, issue tracking, and contribution workflows.
Visual Studio 2022 with:
Clone the repository
```sh git clone https://github.com/ColorCop/ColorCop.git cd ColorCop
ColorCop.sln in Visual Studio 2022.A placeholder version.h is included in the repository so the project builds cleanly in the IDE.
When using the command‑line build.cmd script, this file is automatically regenerated with version information from Git tags.
ColorCop includes a build.cmd script for reproducible Release builds.
Version source: The script reads the latest Git tag using
git describe --tags --abbrev=0. Tags are expected to follow semantic
versioning, typically vMAJOR.MINOR.PATCH (for example, v5.5.2).
Fallback behavior: If no tags are found (for example, in forks or
shallow clones), the script falls back to 0.0.0.
Generated files:
ColorCop\version.h — contains VER_FILEVERSION, VER_PRODUCTVERSION,
and related string macros derived from the Git tag.ColorCop\installer\version.iss — contains AppVersionStr for the
installer, also derived from the Git tag.
Build invocation: The script locates a C++‑capable MSBuild.exe via
vswhere and runs a Rebuild of the Release | Win32 configuration.
ColorCop uses Git tags (e.g., v5.5.2) to drive the release pipeline.
Pushing a new tag triggers GitHub Actions to:
GitHub does not support a “post‑release” event. The following steps must be run after the GitHub Release has been created.
After a new release is published on GitHub, two manual follow‑up workflows must be run:
v5.5.2)v5.5.2)git tag --list
ColorCop.cpp/h - Main application classColorCopDlg.cpp/h - Main dialog implementationSystemTray.cpp/h - System tray functionalityRes/ - Application resources and iconsThis project uses cpplint to enforce C++ style guidelines.
Install:
pip install cpplint
Run linting:
mise lint
ColorCop is licensed under the MIT License.
See LICENSE.txt for the full license text.
Build Errors:
Runtime Issues:
$ claude mcp add ColorCop \
-- python -m otcore.mcp_server <graph>