feat: update UI styles for Mica support and adjust font size in URL bar

This commit is contained in:
mr. M
2024-12-05 21:57:11 +01:00
parent f6cbe1c4bc
commit 8d3e33e343
3 changed files with 8 additions and 14 deletions

View File

@@ -110,3 +110,10 @@
margin-inline-end: 8px;
}
}
@media (-moz-windows-mica) {
:root[should-hide='true'] .titlebar-buttonbox {
/* We need to add a background so windows doesnt generate a default one */
background: var(--zen-branding-bg);
}
}

View File

@@ -11,7 +11,6 @@
--urlbarView-highlight-background: var(--toolbarbutton-hover-background);
border-radius: var(--toolbarbutton-border-radius);
padding: 1px;
font-size: 1.1em;
}
#searchbar:focus-within {
@@ -344,6 +343,7 @@ button.popup-notification-dropmarker {
top: 0 !important;
--urlbar-container-height: 55px !important;
--urlbar-margin-inline: 10px !important;
font-size: 1.1em;
& #urlbar-background {
/* We cant have a transparent background with a backdrop-filter because on normal websites,

View File

@@ -1,13 +0,0 @@
diff --git a/widget/windows/nsWindow.cpp b/widget/windows/nsWindow.cpp
index 00681c216c838efedbbcded9d6b843dbd8b5b0b6..9e0450e4258373327faa7d58b5b9f851ab4082a5 100644
--- a/widget/windows/nsWindow.cpp
+++ b/widget/windows/nsWindow.cpp
@@ -1075,7 +1075,7 @@ nsresult nsWindow::Create(nsIWidget* aParent, const LayoutDeviceIntRect& aRect,
if (WinUtils::MicaEnabled() && !IsPopup()) {
// Enable Mica Alt Material if available.
- const DWM_SYSTEMBACKDROP_TYPE tabbedWindow = DWMSBT_TABBEDWINDOW;
+ const DWM_SYSTEMBACKDROP_TYPE tabbedWindow = DWMSBT_MAINWINDOW;
DwmSetWindowAttribute(mWnd, DWMWA_SYSTEMBACKDROP_TYPE, &tabbedWindow,
sizeof tabbedWindow);
}