Fix dialog background

This commit is contained in:
windingwind 2024-01-17 19:10:11 +08:00 committed by Dan Stillman
parent 2f9a12c2da
commit 982289b484
16 changed files with 55 additions and 11 deletions

View file

@ -8,16 +8,18 @@
<window
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="moveToAlertPosition(); sizeToContent(); document.getElementById('zotero-about').getButton('accept').focus();"
inwindowmenu="false">
inwindowmenu="false"
class="zotero-window">
<dialog
id="zotero-about"
class="zotero-window"
buttons="accept"
buttonlabelaccept="&zotero.about.close;"
ondialogaccept="return true;">
<script src="include.js"/>
<vbox id="aboutcontent">
<vbox id="aboutcontent" class="zotero-dialog">
<div xmlns="http://www.w3.org/1999/xhtml">
<img id="logo" src="chrome://zotero/skin/zotero.svg" alt="Zotero" />
</div>

View file

@ -6,6 +6,8 @@
<!DOCTYPE window SYSTEM "chrome://zotero/locale/zotero.dtd">
<window data-l10n-id="import-window"
id="import-wizard-window"
class="zotero-window"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
onload="Zotero_Import_Wizard.init()"
@ -21,7 +23,7 @@
Services.scriptloader.loadSubScript("chrome://zotero/content/customElements.js", this);
</script>
<wizard id="import-wizard" class="import-wizard" width="600" height="400">
<wizard id="import-wizard" class="import-wizard zotero-window" width="600" height="400">
<wizardpage pageid="page-start" data-header-label-id="import-where-from">
<radiogroup id="import-source-group" align="start">
<radio value="file" data-l10n-id="import-source-file" />

View file

@ -26,10 +26,12 @@
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>
<?xml-stylesheet href="chrome://zotero-platform/content/zotero.css" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://zotero/locale/zotero.dtd">
<window xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="zotero-select-item-dialog"
class="zotero-dialog"
title="&zotero.selectitems.title;" width="400" height="330"
persist="width height screenX screenY"
onload="Zotero_Ingester_Interface_SelectItems.init()">
@ -44,7 +46,7 @@
Services.scriptloader.loadSubScript("chrome://zotero/content/customElements.js", this);
</script>
<vbox id="zotero-select-items-container" flex="1">
<vbox id="zotero-select-items-container" class="zotero-dialog" flex="1">
<caption label="&zotero.selectitems.intro.label;" id="zotero-selectitems-intro"/>
<box flex="1">
<richlistbox id="zotero-selectitems-links" flex="1"></richlistbox>

View file

@ -8,10 +8,13 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="&zotero.sync.error;"
id="zotero-long-tag-fixer-window"
class="zotero-dialog"
width="600"
onload="Zotero_Long_Tag_Fixer.init()">
<dialog
id="zotero-long-tag-fixer"
class="zotero-dialog"
buttons="cancel,accept"
>
<html:div id="intro">

View file

@ -34,6 +34,7 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
id="new-collection-dialog"
class="zotero-dialog"
data-l10n-id="new-collection-dialog"
data-l10n-attrs="title"
width="250"
@ -52,6 +53,7 @@
</linkset>
<dialog
class="zotero-dialog"
buttons="cancel,accept"
data-l10n-id="new-collection-dialog"
data-l10n-attrs="buttonlabelaccept"

View file

@ -7,6 +7,8 @@
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
id="rtfscan-wizard-window"
class="zotero-window"
onload="Zotero_RTFScan.init()"
>
<linkset>
@ -20,7 +22,7 @@
Services.scriptloader.loadSubScript("chrome://zotero/content/customElements.js", this);
</script>
<wizard id="rtfscan-wizard" class="rtfscan-wizard" width="700" height="550" data-l10n-id="rtfScan-wizard">
<wizard id="rtfscan-wizard" class="rtfscan-wizard zotero-window" width="700" height="550" data-l10n-id="rtfScan-wizard">
<wizardpage pageid="page-start" data-l10n-id="rtfScan-intro-page">
<div>
<span class="page-start-1" data-l10n-id="rtfScan-introPage-description" />

View file

@ -3,7 +3,7 @@
<title>Run JavaScript</title>
<link href="chrome://zotero-platform/content/zotero.css" rel="stylesheet"/>
</head>
<body>
<body class="zotero-window">
<nav>
<button onclick="run()">Run</button>
<span id="run-label"></span>

View file

@ -42,9 +42,11 @@
height="450"
persist="screenX screenY width height"
style="display: flex"
class="zotero-window"
>
<dialog
id="select-items-dialog"
class="zotero-window"
orient="vertical"
buttons="cancel,accept"
>

View file

@ -33,6 +33,7 @@
<window
id="csl-edit"
class="zotero-window"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
onload="Zotero_CSL_Editor.init();"
@ -42,7 +43,7 @@
<script src="chrome://zotero/content/include.js"/>
<script src="csledit.js"/>
<vbox flex="1">
<vbox class="zotero-window" flex="1">
<vbox class="csl-edit-toolbars">
<hbox class="csl-edit-toolbar">
<button id="preview-refresh-button" label="&zotero.general.refresh;" oncommand="Zotero_CSL_Editor.refresh()"/>

View file

@ -40,6 +40,7 @@
@import "components/notesList";
@import "components/progressMeter";
@import "components/publications-dialog";
@import "components/richlistbox";
@import "components/rtfScan";
@import "components/runJS";
@import "components/search";
@ -53,6 +54,7 @@
@import "components/toolbar";
@import "components/toolbarbutton";
@import "components/virtualized-table";
@import "components/window";
@import "components/tabsMenu";
@import "components/newCollectionDialog";
@import "components/reader";

View file

@ -21,12 +21,10 @@ dialog
padding-right: 0px;
appearance: none;
background: var(--material-sidepane);
}
#aboutcontent
{
background: var(--material-background);
padding: 10px 16px;
font-size: 13px;
margin-bottom: 10px;

View file

@ -0,0 +1,12 @@
richlistbox {
background: var(--material-background);
border: var(--material-panedivider);
richlistitem {
color: var(--fill-primary);
&[selected=true] {
background: var(--color-accent);
}
}
}

View file

@ -48,6 +48,11 @@
font-size: 15px;
}
#result {
border: var(--material-panedivider);
background: var(--material-background);
}
#run-as-async-label {
font-size: 13px;
}

View file

@ -0,0 +1,7 @@
.zotero-window {
background: var(--material-sidepane);
}
.zotero-dialog {
background: var(--material-background);
}

View file

@ -13,8 +13,8 @@ richlistcheckbox {
}
richlistcheckbox[selected="true"] {
background-color: -moz-cellhighlight;
color: -moz-cellhighlighttext;
background-color: var(--color-accent);
color: var(--fill-primary);
}
richlistbox:where(:focus) > richlistcheckbox[selected="true"] {

View file

@ -9,6 +9,10 @@
:not(.specificity) {
.wizard-header-box-1 {
background: var(--material-sidepane);
}
.wizard-header-box-text {
padding: 0;
}