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