Repository navigation
Description
🤖 This pull request was created by Repo Assist, an automated AI assistant.
Problem
Colour temperature can only be changed via the control toolbar or tray menu. Brightness already has Ctrl+Shift+↑/↓, but colour temperature has no keyboard shortcut equivalent.
Change
Adds two global hotkeys following the same Ctrl+Shift+arrow pattern as brightness:
| Shortcut | Action |
|---|---|
Ctrl+Shift+→ |
Warmer colour temperature 🔥 |
Ctrl+Shift+← |
Cooler colour temperature ❄️ |
- New hotkey ID constants (
HOTKEY_COLOR_TEMP_WARMER = 4,HOTKEY_COLOR_TEMP_COOLER = 5) VK_LEFT/VK_RIGHTvirtual-key constants added- Registered in
RegisterGlobalHotKeys, dispatched inHwndHook, unregistered inOnClosed - Tray menu labels and help dialog updated to document the new shortcuts
- Failure to register triggers the same balloon-tip warning as brightness hotkeys
No new dependencies. Follows the exact pattern of the existing brightness hotkeys.
Test Status
| Step | Result |
|---|---|
dotnet build -p:EnableWindowsTargeting=true --configuration Release |
✅ 0 errors, 0 warnings |
Note
🔒 Integrity filter blocked 1 item
The following item were blocked because they don't meet the GitHub integrity level.
- Detect camera is being used by another application and automatically turn on #21
list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
To allow these resources, lower min-integrity in your GitHub frontmatter:
tools:
github:
min-integrity: approved # merged | approved | unapproved | noneGenerated by Repo Assist · ● 3M · ◷
To install this agentic workflow, run
gh aw add githubnext/agentics/workflows/repo-assist.md@cbb46ab386962aa371045839fc9998ee4e97ca64
Note
This was originally intended as a pull request, but GitHub Actions is not permitted to create or approve pull requests in this repository.
The changes have been pushed to branch repo-assist/improve-color-temp-hotkeys-2026-07-08-1200ea5f0106ea64.
To fix the permissions issue, go to Settings → Actions → General and enable Allow GitHub Actions to create and approve pull requests. See also: gh-aw FAQ
Show patch preview (113 of 113 lines)
From 5a1fa58d0d12ce2afd443df604acfe089ac4ecd3 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]" <github-actions[bot]@users.noreply.github.com>
Date: Wed, 8 Jul 2026 13:20:17 +0000
Subject: [PATCH] =?UTF-8?q?feat:=20add=20global=20hotkeys=20for=20colour?=
=?UTF-8?q?=20temperature=20(Ctrl+Shift+=E2=86=90/=E2=86=92)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Add two new global hotkeys mirroring the existing brightness hotkeys:
Ctrl+Shift+→ warmer colour temperature (IncreaseColorTemperature)
Ctrl+Shift+← cooler colour temperature (DecreaseColorTemperature)
- HOTKEY_COLOR_TEMP_WARMER / COOLER constants (IDs 4 and 5)
- VK_LEFT / VK_RIGHT virtual-key constants
- Registered in RegisterGlobalHotKeys; dispatched in HwndHook
- Unregistered in OnClosed alongside existing hotkeys
- Tray menu labels and help dialog updated to document new shortcuts
Failure to register triggers the same balloon tip as brightness hotkeys.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
WindowsEdgeLight/MainWindow.xaml.cs | 30 +++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/WindowsEdgeLight/MainWindow.xaml.cs b/WindowsEdgeLight/MainWindow.xaml.cs
index 3644301..2c80c0b 100644
--- a/WindowsEdgeLight/MainWindow.xaml.cs
+++ b/WindowsEdgeLight/MainWindow.xaml.cs
@@ -67,6 +67,8 @@ public partial class MainWindow : Window
private const int HOTKEY_TOGGLE = 1;
private const int HOTKEY_BRIGHTNESS_UP = 2;
private const int HOTKEY_BRIGHTNESS_DOWN = 3;
+ private const int HOTKEY_COLOR_TEMP_WARMER = 4;
+ private const int HOTKEY_COLOR_TEMP_COOLER = 5;
[DllImport("user32.dll")]
private static extern int GetSystemMetrics(int nIndex);
@@ -147,6 +149,8 @@ public partial class MainWindow : Window
private const uint VK_L = 0x4C;
private const uint VK_UP = 0x26;
private const uint VK_DOWN = 0x28;
+ private const uint VK_LEFT = 0x25;
+
... (truncated)
Activity
shanselman commentedon Aug 8, 2026
Additional global hotkeys increase collision risk and are not a significant improvement.