mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-19 15:03:36 +08:00
[VCM] Tweak toolbar top right vertical offset to allow closing apps (#12372)
This commit is contained in:
parent
39f0db8cb4
commit
cdfb566137
@ -13,6 +13,7 @@ Toolbar* toolbar = nullptr;
|
||||
const int REFRESH_RATE = 100;
|
||||
const int OVERLAY_SHOW_TIME = 500;
|
||||
const int BORDER_OFFSET = 12;
|
||||
const int TOP_RIGHT_BORDER_OFFSET = 40;
|
||||
|
||||
Toolbar::Toolbar()
|
||||
{
|
||||
@ -256,7 +257,7 @@ void Toolbar::show(std::wstring position, std::wstring monitorString)
|
||||
else //"Top right corner" or non-present
|
||||
{
|
||||
positionX = monitorInfo.right() - overlayWidth - BORDER_OFFSET;
|
||||
positionY = monitorInfo.top() + BORDER_OFFSET;
|
||||
positionY = monitorInfo.top() + TOP_RIGHT_BORDER_OFFSET;
|
||||
}
|
||||
|
||||
HWND hwnd;
|
||||
|
Loading…
Reference in New Issue
Block a user