mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-17 10:27:10 +00:00
fix: Fix wrong window roundness inferrence for MacOS tahoe, b=no-bug, c=common
This commit is contained in:
@@ -97,7 +97,7 @@
|
||||
// otherwise, use the custom value
|
||||
if (borderRadius == -1) {
|
||||
if (AppConstants.platform == "macosx") {
|
||||
const targetRadius = window.matchMedia("(-moz-mac-tahoe-theme)").matches ? 15 : 10;
|
||||
const targetRadius = window.matchMedia("(-moz-mac-tahoe-theme)").matches ? 16 : 10;
|
||||
document.documentElement.style.setProperty("--zen-border-radius", targetRadius + "px");
|
||||
} else if (AppConstants.platform == "linux") {
|
||||
// Linux uses GTK CSD titlebar radius, default to 8px
|
||||
|
||||
Reference in New Issue
Block a user