Don't set window border color on Windows 11.
When set it can only be opaque which doesn't look great. When left default it is made of a semi-transparent shadow color.
This commit is contained in:
parent
cc79439fee
commit
d9953c29b8
1 changed files with 0 additions and 6 deletions
|
|
@ -32,7 +32,6 @@ namespace {
|
||||||
|
|
||||||
constexpr auto kDWMWCP_ROUND = DWORD(2);
|
constexpr auto kDWMWCP_ROUND = DWORD(2);
|
||||||
constexpr auto kDWMWA_WINDOW_CORNER_PREFERENCE = DWORD(33);
|
constexpr auto kDWMWA_WINDOW_CORNER_PREFERENCE = DWORD(33);
|
||||||
constexpr auto kDWMWA_BORDER_COLOR = DWORD(34);
|
|
||||||
constexpr auto kDWMWA_CAPTION_COLOR = DWORD(35);
|
constexpr auto kDWMWA_CAPTION_COLOR = DWORD(35);
|
||||||
constexpr auto kDWMWA_TEXT_COLOR = DWORD(36);
|
constexpr auto kDWMWA_TEXT_COLOR = DWORD(36);
|
||||||
|
|
||||||
|
|
@ -570,11 +569,6 @@ void WindowHelper::updateWindowFrameColors(bool active) {
|
||||||
? _title->st()->bgActive->c
|
? _title->st()->bgActive->c
|
||||||
: _title->st()->bg->c;
|
: _title->st()->bg->c;
|
||||||
COLORREF bgRef = RGB(bg.red(), bg.green(), bg.blue());
|
COLORREF bgRef = RGB(bg.red(), bg.green(), bg.blue());
|
||||||
DwmSetWindowAttribute(
|
|
||||||
_handle,
|
|
||||||
kDWMWA_BORDER_COLOR,
|
|
||||||
&bgRef,
|
|
||||||
sizeof(COLORREF));
|
|
||||||
DwmSetWindowAttribute(
|
DwmSetWindowAttribute(
|
||||||
_handle,
|
_handle,
|
||||||
kDWMWA_CAPTION_COLOR,
|
kDWMWA_CAPTION_COLOR,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue