Multi-monitor support: black overlay covers all displays, brightness dim/restore per monitor

- get_virtual_screen_rect(): bounds of the whole virtual desktop (negative x/y OK)
- window pinned topmost across every monitor via SetWindowPos + SetForegroundWindow
- brightness saved/restored as a per-monitor list (was only first monitor)
- resource_path() so icon.ico is found in the frozen exe; spec now bundles it
This commit is contained in:
Hermes Agent committed 2026-09-16 16:02:34 +02:00
1 parent 1e86958277
commit 87bdbd7226
3 files changed
+108 -30

No files matched your search

+4
View File
@@ -25,3 +25,7 @@ pyinstaller "Black Screen Dim.spec"
> Управление яркостью работает только на Windows. На других ОС приложение
> просто покажет чёрный экран без изменения яркости.
> При нескольких мониторах чёрный экран накрывает **весь виртуальный рабочий стол**
> (все мониторы сразу, включая те, что слева/сверху от основного), а яркость
> гасится и восстанавливается **на каждом** мониторе по отдельности.