Skip to content

Commit 65b5f23

Browse files
Merge pull request #36 from RuntimeRascal/feat/multi-monitor-support
Feat/multi monitor support
2 parents 7f64f3a + 6c92836 commit 65b5f23

12 files changed

Lines changed: 1150 additions & 421 deletions

File tree

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88

9+
## v1.0.16
10+
11+
### Added
12+
- **Multi-Monitor Overlays**
13+
- Drawing overlay now appears on every monitor
14+
- Clear canvas confirmation modal is shown on all overlays
15+
- Undo (`Ctrl+Z`) is global across monitors; Clear canvas clears all overlays
16+
17+
### Changed
18+
- Arrow tool now uses an arrow-specific cursor
19+
20+
### Fixed
21+
- Tool settings (color/thickness) now stay in sync across monitors
22+
- Cursor behavior is now consistent when crossing monitor boundaries
23+
24+
925
## v1.0.15
1026

1127
### Added

Installer/GhostDraw.Installer.wixproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="WixToolset.Sdk/4.0.5">
22
<PropertyGroup>
3-
<Version Condition="'$(Version)' == ''">1.0.15</Version>
3+
<Version Condition="'$(Version)' == ''">1.0.16</Version>
44
<OutputName>GhostDrawSetup-$(Version)</OutputName>
55
<OutputType>Package</OutputType>
66
<Platform>x64</Platform>

Src/GhostDraw/Core/ServiceConfiguration.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,16 @@ public static ServiceProvider ConfigureServices()
6161
services.AddSingleton<DrawingHistory>();
6262

6363
// Register drawing tools
64-
services.AddSingleton<GhostDraw.Tools.PenTool>();
65-
services.AddSingleton<GhostDraw.Tools.LineTool>();
66-
services.AddSingleton<GhostDraw.Tools.ArrowTool>();
67-
services.AddSingleton<GhostDraw.Tools.EraserTool>();
68-
services.AddSingleton<GhostDraw.Tools.RectangleTool>();
69-
services.AddSingleton<GhostDraw.Tools.CircleTool>();
70-
71-
services.AddSingleton<OverlayWindow>();
72-
services.AddSingleton<IOverlayWindow>(sp => sp.GetRequiredService<OverlayWindow>());
64+
services.AddTransient<GhostDraw.Tools.PenTool>();
65+
services.AddTransient<GhostDraw.Tools.LineTool>();
66+
services.AddTransient<GhostDraw.Tools.ArrowTool>();
67+
services.AddTransient<GhostDraw.Tools.EraserTool>();
68+
services.AddTransient<GhostDraw.Tools.RectangleTool>();
69+
services.AddTransient<GhostDraw.Tools.CircleTool>();
70+
71+
services.AddTransient<OverlayWindow>();
72+
services.AddSingleton<MultiOverlayWindowOrchestrator>();
73+
services.AddSingleton<IOverlayWindow>(sp => sp.GetRequiredService<MultiOverlayWindowOrchestrator>());
7374
services.AddSingleton<GlobalKeyboardHook>();
7475
services.AddSingleton<DrawingManager>();
7576
services.AddSingleton<LoggingSettingsService>();

Src/GhostDraw/GhostDraw.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<UseWPF>true</UseWPF>
99
<UseWindowsForms>true</UseWindowsForms>
1010
<ApplicationIcon>Assets\favicon.ico</ApplicationIcon>
11-
<Version>1.0.15</Version>
11+
<Version>1.0.16</Version>
1212
<EnableWindowsTargeting>true</EnableWindowsTargeting>
1313
</PropertyGroup>
1414

0 commit comments

Comments
 (0)