PowerToys/src
Tudor Croitoru 41997eb599
Fix ColorPicker detecting grid (#24413)
* Fix ColorPicker sampling colour from the grid

Addresses #13831. The sampled pixel is now completely avoided by the grid.
Also, this should address the timing issue from the sampling being done
every 10ms, which overlaps strangely with monitor refresh rates at 16.6ms,
13.3ms, etc.

* Forgot extra library

* Revert rounding in GetPixelColor

* Ensure EnumDisplaySettingsW returns true

Assigning refreshRate only if EnumDisplaySettingsW returns true,
otherwise defaulting to 60.0Hz.

* Run spellchecker

* Spellcheck again

---------

Co-authored-by: Stefan Markovic <stefan@janeasystems.com>
2023-03-17 22:25:03 +01:00
..
ActionRunner [Analyzers][CPP]Turn on warning 26471 (#23103) 2023-01-16 11:18:55 +00:00
codeAnalysis [Analyzers] Update StyleCop and enable SA1200 (#22707) 2022-12-18 13:27:14 +00:00
common [Build] Upgraded NetAnalyzers to 7.0.1 (#24792) 2023-03-16 15:51:31 +01:00
gpo/assets [GPO; Enterprise] Updater policies (#24221) 2023-02-24 14:35:33 +00:00
logging [PowerRename][ImageResizer] Tier1 Win11 Context menu (#19000) 2022-06-30 22:10:14 +02:00
modules Fix ColorPicker detecting grid (#24413) 2023-03-17 22:25:03 +01:00
runner [PastePlain]Support Ctrl+V as activation (#24448) 2023-03-03 09:52:49 +00:00
settings-ui [Settings] move the DLL imports to NativeMethods file (#24381) 2023-03-17 19:14:23 +01:00
tests/win-app-driver [Test]Update Microsoft.NET.Test.Sdk to 17.4.1 (#22900) 2022-12-20 14:22:37 +00:00
Update Update Windows Implementation Library (#21225) 2022-11-03 12:46:05 +01:00
.clang-format
.editorconfig [Analyzers] Update StyleCop and enable SA1200 (#22707) 2022-12-18 13:27:14 +00:00
README.md Fix broken link (#16382) 2022-02-17 11:43:47 -08:00
Version.props Update Version.props 2020-10-20 15:58:26 -07:00

PowerToys Source Code

Code organization

The PowerToys are split into DLLs for each PowerToy module (modules folder), and an executable (runner folder) that loads and manages those DLLs.

The settings window is a separate executable, contained in settings-ui folder. It utilizes a WebView to display an HTML-based settings window.

The common contains code for a static library with helper functions, used by both the runner and the PowerToys modules.