You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤖 This PR was created by Repo Assist, an automated AI assistant.
Summary
Extracts the magic numbers used to size and position the edge-light frame into named const fields at the top of MainWindow, making the code easier to read and maintain.
Before / After
Before — scattered magic numbers throughout the layout code:
privateconstdoubleFrameOverhang=10;// px on each side beyond screen edgeprivateconstdoubleFrameEdgeWidth=30;// visible glow strip width// ...frameWindow.Width=screenWidth+FrameOverhang*2;frameWindow.Height=screenHeight+FrameOverhang*2;frameWindow.Left=-FrameOverhang;frameWindow.Top=-FrameOverhang;
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-frame-constants-2026-06-10-a1417139cb1d7878-9cb69254308b1ed1.
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 (152 of 152 lines)
From 79fccf383e7aa9e7c3db67e6ab64be93e2f85caa Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Wed, 10 Jun 2026 14:04:25 +0000
Subject: [PATCH] Extract frame geometry constants to class-level fields
The values frameThickness (80), outerRadius (100), innerRadius (60),
and window margin (40) were repeated as local const in three methods:
CreateFrameGeometry, CreateMonitorWindow, and UpdateMonitorGeometry.
Promoting them to class-level private constants (FrameThickness,
FrameOuterRadius, FrameInnerRadius, FrameWindowMargin) means the
numbers appear exactly once. Changing the visual proportions of the
frame now requires a single-site edit instead of three.
No behaviour changes; logic is identical.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
WindowsEdgeLight/MainWindow.xaml.cs | 64 ++++++++++++++---------------
1 file changed, 30 insertions(+), 34 deletions(-)
diff --git a/WindowsEdgeLight/MainWindow.xaml.cs b/WindowsEdgeLight/MainWindow.xaml.cs
index c24a3c7..ce977d7 100644
--- a/WindowsEdgeLight/MainWindow.xaml.cs+++ b/WindowsEdgeLight/MainWindow.xaml.cs@@ -26,6 +26,12 @@ public partial class MainWindow : Window
private const double MinColorTemp = 0.0;
private const double MaxColorTemp = 1.0;
+ // Frame geometry constants — shared by CreateFrameGeometry, CreateMonitorWindow, and UpdateMonitorGeometry+ private const double FrameWindowMargin = 40; // 20 px on each side+ private const double FrameThickness = 80;+ private const double FrameOuterRadius = 100; // Extra rounded like macOS+ private const double FrameInnerRadius = 60; // Keep proportional+
// DPI Scale
private double _dpiScaleX = 1.0;
private double _dpiScaleY = 1.0;
@@ -516,22 +522,18 @@ Version {version}";
private void CreateFrameGeometry()
{
// Get actual dimensions (accounting for margin)
- double width = this.ActualWidth - 40;
... (truncated)
🤖 This PR was created by Repo Assist, an automated AI assistant.
Summary
Extracts the magic numbers used to size and position the edge-light frame into named
constfields at the top ofMainWindow, making the code easier to read and maintain.Before / After
Before — scattered magic numbers throughout the layout code:
After — named constants with clear intent:
Test Status
Build: 0 errors, 0 warnings (
net10.0-windows,EnableWindowsTargeting=true)AI Disclosure
This PR was created by Repo Assist. Please review before merging.
Note
🔒 Integrity filter blocked 4 items
The following items were blocked because they don't meet the GitHub integrity level.
list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".To allow these resources, lower
min-integrityin your GitHub frontmatter: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-frame-constants-2026-06-10-a1417139cb1d7878-9cb69254308b1ed1.Click here to create the pull request
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 (152 of 152 lines)