mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
feat: update UI styles for Mica support and adjust font size in URL bar
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
@@ -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,
|
||||
|
@@ -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);
|
||||
}
|
Reference in New Issue
Block a user