From 8bbdb38f930414329b06f3d4aa71ebd119403b50 Mon Sep 17 00:00:00 2001 From: historia Date: Fri, 4 Sep 2026 15:55:37 -0400 Subject: initial commit --- README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..a48b089 --- /dev/null +++ b/README.md @@ -0,0 +1,40 @@ +# Tray Color Picker + +![Demo](demo.png) + +A tiny, single-file Windows color picker that lives in the system tray. Click the tray icon to zoom in on any pixel, then pick it. The color hex code is copied to the clipboard. + +## Building + +Requires a MinGW-w64 toolchain (gcc, windres, make) — e.g. [MSYS2](https://www.msys2.org/). + +### With make + +``` +make +``` + +This produces `ColorPicker.exe` with the icon embedded. + +### Manual build + +Without the icon: + +``` +gcc color-picker.c -o ColorPicker.exe -mwindows -municode -lgdi32 -luser32 -lshell32 -ladvapi32 -lm +``` + +With the icon: + +``` +gcc color-picker.c -o ColorPicker-noico.exe -mwindows -municode -lgdi32 -luser32 -lshell32 -ladvapi32 -lm +./ColorPicker-noico.exe --make-ico +windres icon.rc -O coff -o icon.res +gcc color-picker.c icon.res -o ColorPicker.exe -mwindows -municode -lgdi32 -luser32 -lshell32 -ladvapi32 -lm +``` + +## Usage + +Run `ColorPicker.exe`. A tray icon appears. Click it to pick a color. + +Right-click the tray icon for settings and recent colors. -- cgit v1.2.3