Repository navigation
Redgear A20 Control Center v0.2.0
Industrial Precision Utility UI, Windows 10/11 Dark Title Bar, Per-Monitor V2 High-DPI Scaling & Fault-Tolerant Safety Hardening.
What's New in v0.2.0
1. Industrial Precision Utility UI Overhaul
- Native Dark Window Title Bar: Integrated Win32
dwmapi.dllP/Invoke (DWMWA_USE_IMMERSIVE_DARK_MODE) to eliminate glaring white title bars on Windows 10 and 11. - Zero-Allocation GDI+ Token Engine: Pre-cached brushes, pens, and system typography (
Themeclass) ensuring zero heap allocations and zero GC stutter during repainting. - Hairline Card Containers: Flat 1px border card panels (
CreateSectionPanel) with metadata badges replacing legacy WinForms GroupBoxes. - Active Preset Border Highlighting: Immediate visual feedback highlighting the active quick-preset color with an Emerald border.
- Unified Action Control Row: Reorganized
Apply (RAM),Save Profile, andReset Profileinto a cohesive 36px action bar with primary Emerald styling for saving. - Modernized TrackBar: Modern brightness slider with
TickStyle.Noneand dynamic percentage readout. - Explorer Dark Mode Controls: Applied
SetWindowTheme(DarkMode_Explorer) for dark dropdown styling.
2. Native Windows Application Manifest (app.manifest)
- Per-Monitor V2 High-DPI Scaling: Declared
<dpiAwareness>PerMonitorV2, PerMonitor</dpiAwareness>for crisp rendering across 4K multi-monitor setups without bitmap stretching. - Modern Windows Common Controls: Linked
Microsoft.Windows.Common-Controlsv6.0.0.0. - Explicit OS Compatibility: Declared support for Windows 7, 8, 8.1, 10, and 11 under standard user privileges (
asInvoker).
3. Asynchronous Mutex & Hardware Safety
- Non-Blocking Experimental DPI Dispatch: Offloaded Command
0x09testing and hardware mutex synchronization (TaskSchedulerHelper.HARDWARE_MUTEX_NAME) to background worker tasks (Task.Runwithasync/await), eliminating UI thread freezes. - Non-Destructive Device Path Enumeration: Switched device path search query to access mode
0, preventing handle-sharing conflicts during USB device scanning. - Dynamic Disconnect Recovery: Automatically traps Win32 disconnect errors (
1167,2,6), invalidates stale device handles, and displays a red status alert. - Hotplug Re-Entrancy Guard: Guarded USB hotplug handling with
isHotplugHandlingto prevent race conditions during rapid cable replugging.
4. Fault-Tolerant Storage & Crash Diagnostics
- Atomic JSON Profile Serialization: Writes profile updates to
.tmpfiles first with UTF-8 encoding and replaces targets atomically (File.Replace), eliminating risk of profile corruption during sudden power drops. - Hex Input Sanitization: Added format validation enforcing
#RRGGBBformat and synchronizing active color state before saving. - Global Crash Trapping: Traps unhandled thread and domain exceptions to
%LocalAppData%\RedgearA20\crash.logwith complete diagnostic timestamps and stack traces.
5. Multi-Architecture Build Pipeline (build.bat)
- Added auto-detection for both 64-bit (
Framework64) and 32-bit (Framework) .NET Frameworkcsc.execompilers. - Embedded
src/app.manifestdirectly into compiled binaries. - Standardized process exit codes (
0on success,1on failure) for CI/CD automation.
Checksums & Verification
| File | Size | SHA-256 Checksum |
|---|---|---|
RedgearA20-win-x64.exe |
71,168 bytes | cf313519998c957b9d7d5b91043a47b130139cc4b4f0e2ac7a055546d32c3f09 |
Quick Start
- Download
RedgearA20-win-x64.exebelow. - Plug in your Redgear A20 mouse into any USB port.
- Launch the standalone
.exe(no installer, no dependencies). - Customize your color and select
Stealth Driver Watcherunder Persistence Mode. - Click
Save Profileand close the window[X]— your profile will persist silently at ~1.8 MB RAM and 0% CPU.