Skip to content

v0.2.0

Latest

Choose a tag to compare

@shivamvcx shivamvcx released this 17 Oct 00:38
· 3 commits to main since this release

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.dll P/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 (Theme class) 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, and Reset Profile into a cohesive 36px action bar with primary Emerald styling for saving.
  • Modernized TrackBar: Modern brightness slider with TickStyle.None and 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-Controls v6.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 0x09 testing and hardware mutex synchronization (TaskSchedulerHelper.HARDWARE_MUTEX_NAME) to background worker tasks (Task.Run with async/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 isHotplugHandling to prevent race conditions during rapid cable replugging.

4. Fault-Tolerant Storage & Crash Diagnostics

  • Atomic JSON Profile Serialization: Writes profile updates to .tmp files 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 #RRGGBB format and synchronizing active color state before saving.
  • Global Crash Trapping: Traps unhandled thread and domain exceptions to %LocalAppData%\RedgearA20\crash.log with 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 Framework csc.exe compilers.
  • Embedded src/app.manifest directly into compiled binaries.
  • Standardized process exit codes (0 on success, 1 on failure) for CI/CD automation.

Checksums & Verification

File Size SHA-256 Checksum
RedgearA20-win-x64.exe 71,168 bytes cf313519998c957b9d7d5b91043a47b130139cc4b4f0e2ac7a055546d32c3f09

Quick Start

  1. Download RedgearA20-win-x64.exe below.
  2. Plug in your Redgear A20 mouse into any USB port.
  3. Launch the standalone .exe (no installer, no dependencies).
  4. Customize your color and select Stealth Driver Watcher under Persistence Mode.
  5. Click Save Profile and close the window [X] — your profile will persist silently at ~1.8 MB RAM and 0% CPU.