fixed the issue #5348 and a typo

Fixed the issue #5348 for windows by setting margins check for window decoration instead and using value 0 margin for only the TITLE style
This commit is contained in:
Kushagra Gupta authored and Wez Furlong committed 2024-05-05 13:09:14 -07:00
1 parent 65a84ddd60
commit d9455a45fe
1 file changed
+4 -4
+4 -4
View File
@@ -1424,7 +1424,7 @@ fn apply_theme(hwnd: HWND) -> Option<LRESULT> {
if let Some(inner) = rc_from_hwnd(hwnd) {
let mut inner = inner.borrow_mut();
// Set Arylic or Mica system Backdrop
// Set Acrylic or Mica system Backdrop
let pv_attribute = match inner.config.win32_system_backdrop {
SystemBackdrop::Auto => DWM_SYSTEMBACKDROP_TYPE::DWMSBT_AUTO,
SystemBackdrop::Disable => DWM_SYSTEMBACKDROP_TYPE::DWMSBT_NONE,
@@ -1433,9 +1433,9 @@ fn apply_theme(hwnd: HWND) -> Option<LRESULT> {
SystemBackdrop::Tabbed => DWM_SYSTEMBACKDROP_TYPE::DWMSBT_TABBEDWINDOW,
};
let margins = match inner.config.win32_system_backdrop {
SystemBackdrop::Auto | SystemBackdrop::Disable => 0,
SystemBackdrop::Acrylic | SystemBackdrop::Mica | SystemBackdrop::Tabbed => -1,
let margins = match inner.config.window_decorations {
WindowDecorations::TITLE => -1,
_ => 0,
};
DwmExtendFrameIntoClientArea(