Fix prefs window style on MacOS (#4682)

Use MacOS menupopup style to prefs window
Move style mac/menupopup into mac/components
This commit is contained in:
windingwind 2024-09-12 11:13:19 +02:00 committed by GitHub
parent 64bed48de4
commit 01017e7d63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 25 additions and 27 deletions

View file

@ -1,26 +0,0 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
window[windowtype="zotero:pref"] {
padding: 0;
font: -moz-dialog !important;
-moz-appearance: dialog;
color: -moz-DialogText;
}
groupbox > label > h2, groupbox > * > label > h2 {
border-bottom: #b5b5b5 1px solid;
}
groupbox > label > h2, groupbox > * > label > h2, caption {
padding-bottom: 0.2em;
font: caption;
}
.help-button {
appearance: auto;
-moz-default-appearance: -moz-mac-help-button;
min-width: 0;
}

View file

@ -0,0 +1,5 @@
.help-button {
appearance: auto;
-moz-default-appearance: -moz-mac-help-button;
min-width: 0;
}

19
scss/preferences-mac.scss Normal file
View file

@ -0,0 +1,19 @@
// Abstracts
@import "abstracts/variables";
@import "abstracts/functions";
@import "abstracts/mixins";
@import "abstracts/placeholders";
@import "abstracts/utilities";
@import "abstracts/split-button";
@import "abstracts/svgicon";
@import "themes/light";
@import "themes/dark";
@import "mac/helpButton";
// Components
@import "mac/components/menupopup";
@import "mac/components/menulist";

View file

@ -9,7 +9,7 @@
@import "mac/tabBar";
@import "mac/tabbox";
@import "mac/titleBar";
@import "mac/menupopup";
@import "mac/components/menupopup";
@import "mac/components/menulist";
// Elements