From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:29:10 +0200 Subject: Adding upstream version 86.0.1. Signed-off-by: Daniel Baumann --- toolkit/themes/linux/global/alerts/alert.css | 10 + toolkit/themes/linux/global/autocomplete.css | 91 +++++++++ toolkit/themes/linux/global/button.css | 74 ++++++++ toolkit/themes/linux/global/checkbox.css | 53 ++++++ toolkit/themes/linux/global/commonDialog.css | 26 +++ toolkit/themes/linux/global/dropmarker.css | 11 ++ toolkit/themes/linux/global/findBar.css | 5 + toolkit/themes/linux/global/global.css | 208 +++++++++++++++++++++ .../themes/linux/global/icons/Authentication.png | Bin 0 -> 2223 bytes .../linux/global/icons/blocklist_favicon.png | Bin 0 -> 514 bytes .../themes/linux/global/icons/errorGhosted-64.png | Bin 0 -> 825 bytes .../linux/global/icons/informationGhosted-64.png | Bin 0 -> 905 bytes .../linux/global/icons/questionGhosted-64.png | Bin 0 -> 999 bytes toolkit/themes/linux/global/icons/sslWarning.png | Bin 0 -> 2908 bytes .../linux/global/icons/warningGhosted-64.png | Bin 0 -> 1155 bytes toolkit/themes/linux/global/in-content/common.css | 57 ++++++ .../themes/linux/global/in-content/info-pages.css | 5 + toolkit/themes/linux/global/jar.mn | 36 ++++ toolkit/themes/linux/global/menu.css | 195 +++++++++++++++++++ toolkit/themes/linux/global/menulist.css | 54 ++++++ toolkit/themes/linux/global/moz.build | 7 + toolkit/themes/linux/global/netError.css | 102 ++++++++++ toolkit/themes/linux/global/popup.css | 104 +++++++++++ toolkit/themes/linux/global/popupnotification.css | 10 + toolkit/themes/linux/global/radio.css | 51 +++++ toolkit/themes/linux/global/richlistbox.css | 65 +++++++ toolkit/themes/linux/global/search-textbox.css | 72 +++++++ toolkit/themes/linux/global/splitter.css | 53 ++++++ toolkit/themes/linux/global/tabbox.css | 53 ++++++ toolkit/themes/linux/global/toolbar.css | 66 +++++++ toolkit/themes/linux/global/toolbarbutton.css | 95 ++++++++++ toolkit/themes/linux/global/tooltip.css | 19 ++ toolkit/themes/linux/global/tree.css | 12 ++ toolkit/themes/linux/moz.build | 7 + toolkit/themes/linux/mozapps/jar.mn | 7 + toolkit/themes/linux/mozapps/moz.build | 7 + toolkit/themes/linux/mozapps/update/updates.css | 89 +++++++++ .../themes/linux/mozapps/viewsource/viewsource.css | 117 ++++++++++++ 38 files changed, 1761 insertions(+) create mode 100644 toolkit/themes/linux/global/alerts/alert.css create mode 100644 toolkit/themes/linux/global/autocomplete.css create mode 100644 toolkit/themes/linux/global/button.css create mode 100644 toolkit/themes/linux/global/checkbox.css create mode 100644 toolkit/themes/linux/global/commonDialog.css create mode 100644 toolkit/themes/linux/global/dropmarker.css create mode 100644 toolkit/themes/linux/global/findBar.css create mode 100644 toolkit/themes/linux/global/global.css create mode 100644 toolkit/themes/linux/global/icons/Authentication.png create mode 100644 toolkit/themes/linux/global/icons/blocklist_favicon.png create mode 100644 toolkit/themes/linux/global/icons/errorGhosted-64.png create mode 100644 toolkit/themes/linux/global/icons/informationGhosted-64.png create mode 100644 toolkit/themes/linux/global/icons/questionGhosted-64.png create mode 100644 toolkit/themes/linux/global/icons/sslWarning.png create mode 100644 toolkit/themes/linux/global/icons/warningGhosted-64.png create mode 100644 toolkit/themes/linux/global/in-content/common.css create mode 100644 toolkit/themes/linux/global/in-content/info-pages.css create mode 100644 toolkit/themes/linux/global/jar.mn create mode 100644 toolkit/themes/linux/global/menu.css create mode 100644 toolkit/themes/linux/global/menulist.css create mode 100644 toolkit/themes/linux/global/moz.build create mode 100644 toolkit/themes/linux/global/netError.css create mode 100644 toolkit/themes/linux/global/popup.css create mode 100644 toolkit/themes/linux/global/popupnotification.css create mode 100644 toolkit/themes/linux/global/radio.css create mode 100644 toolkit/themes/linux/global/richlistbox.css create mode 100644 toolkit/themes/linux/global/search-textbox.css create mode 100644 toolkit/themes/linux/global/splitter.css create mode 100644 toolkit/themes/linux/global/tabbox.css create mode 100644 toolkit/themes/linux/global/toolbar.css create mode 100644 toolkit/themes/linux/global/toolbarbutton.css create mode 100644 toolkit/themes/linux/global/tooltip.css create mode 100644 toolkit/themes/linux/global/tree.css create mode 100644 toolkit/themes/linux/moz.build create mode 100644 toolkit/themes/linux/mozapps/jar.mn create mode 100644 toolkit/themes/linux/mozapps/moz.build create mode 100644 toolkit/themes/linux/mozapps/update/updates.css create mode 100644 toolkit/themes/linux/mozapps/viewsource/viewsource.css (limited to 'toolkit/themes/linux') diff --git a/toolkit/themes/linux/global/alerts/alert.css b/toolkit/themes/linux/global/alerts/alert.css new file mode 100644 index 0000000000..82772196b9 --- /dev/null +++ b/toolkit/themes/linux/global/alerts/alert.css @@ -0,0 +1,10 @@ +/* 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/. */ + +%include ../../../shared/alert.inc.css + +#alertBox { + border: 1px solid threedshadow; + background-color: -moz-Dialog; +} diff --git a/toolkit/themes/linux/global/autocomplete.css b/toolkit/themes/linux/global/autocomplete.css new file mode 100644 index 0000000000..9f6fa9b6c8 --- /dev/null +++ b/toolkit/themes/linux/global/autocomplete.css @@ -0,0 +1,91 @@ +/* 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/. */ + +/* ===== autocomplete.css ================================================= + == Styles used by the autocomplete widget. + ======================================================================= */ + +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); +@namespace html url("http://www.w3.org/1999/xhtml"); + +/* ::::: autocomplete ::::: */ + +html|input[nomatch="true"][highlightnonmatches="true"] { + color: red; +} + +/* ::::: autocomplete popups ::::: */ + +panel[type="autocomplete-richlistbox"] { + border: 1px solid ThreeDShadow; + padding: 0; + color: FieldText; + background-color: Field; + appearance: none; +} + +/* ::::: richlistbox autocomplete ::::: */ + +.autocomplete-richlistbox { + appearance: none; + margin: 1px; + background-color: transparent; +} + +.autocomplete-richlistitem[selected] { + background-color: Highlight; + color: HighlightText; +} + +.ac-type-icon { + display: none; + width: 16px; + height: 16px; + max-width: 16px; + max-height: 16px; + margin-inline-start: 6px; + margin-inline-end: 6px; +} + +.ac-site-icon { + display: none; + width: 16px; + height: 16px; + max-width: 16px; + max-height: 16px; + margin-inline-start: 6px; + margin-inline-end: 8px; + list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.svg"); + -moz-context-properties: fill; + fill: currentColor; +} + +.ac-title { + margin-inline-start: 0; + margin-inline-end: 6px; +} + +.ac-separator { + display: none; + margin-inline-start: 0; + margin-inline-end: 6px; +} + +.ac-url { + display: none; +} + +/* Better align the URL with the title. */ +.ac-separator, +.ac-url { + margin-bottom: -2px; +} + +.ac-title-text, +.ac-separator-text, +.ac-url-text, +.ac-text-overflow-container { + padding: 0 !important; + margin: 0 !important; +} diff --git a/toolkit/themes/linux/global/button.css b/toolkit/themes/linux/global/button.css new file mode 100644 index 0000000000..3e1df18ae1 --- /dev/null +++ b/toolkit/themes/linux/global/button.css @@ -0,0 +1,74 @@ +/* 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/. */ + +/* ===== button.css ===================================================== + == Styles used by the XUL button element. + ======================================================================= */ + +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); + +/* :::::::::: button :::::::::: */ + +button { + margin: 1px 5px 2px; + min-width: 6.3em; + color: ButtonText; + text-shadow: none; +} + +.button-box { + appearance: auto; + -moz-default-appearance: button-focus; +} + +.button-text { + margin: 0; + margin-inline-start: 2px; + text-align: center; +} + +/* .......... hover state .......... */ + +button:hover:not(:active,[disabled="true"],[open="true"],[checked="true"],[default="true"]) { + color: -moz-buttonhovertext; +} + +/* .......... active state .......... */ + +button:is(:hover:active, [open="true"]):not([default="true"], [disabled="true"]) { + color: -moz-gtk-buttonactivetext; +} + +/* .......... disabled state .......... */ + +button[disabled="true"] { + color: GrayText; +} + +/* ::::: menu buttons ::::: */ + +.button-menu-dropmarker { + appearance: auto; + -moz-default-appearance: toolbarbutton-dropdown; +} + +/* ::::: plain buttons ::::: */ + +button.plain { + margin: 0 !important; + padding: 0 !important; +} + +button[type="disclosure"] { + margin: 0; + appearance: none; + list-style-image: url("chrome://global/skin/icons/twisty-collapsed.svg"); + -moz-context-properties: fill; + fill: currentColor; + min-width: 0; +} + +button[type="disclosure"][open="true"] { + list-style-image: url("chrome://global/skin/icons/twisty-expanded.svg"); +} diff --git a/toolkit/themes/linux/global/checkbox.css b/toolkit/themes/linux/global/checkbox.css new file mode 100644 index 0000000000..cc7d334827 --- /dev/null +++ b/toolkit/themes/linux/global/checkbox.css @@ -0,0 +1,53 @@ +/* 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/. */ + +/* ===== checkbox.css =================================================== + == Styles used by the XUL checkbox element. + ======================================================================= */ + +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); + +/* ::::: checkbox ::::: */ + +checkbox { + appearance: auto; + -moz-default-appearance: checkbox-container; + -moz-box-align: center; + margin: 2px 4px; +} + +.checkbox-label-box { + appearance: auto; + -moz-default-appearance: checkbox-label; +} + +.checkbox-icon[src] { + margin-inline-end: 2px; +} + +.checkbox-label { + margin: 0; +} + +/* ..... focused state ..... */ + +checkbox:-moz-focusring > .checkbox-label-box { + /* Native theming should take care of this but it appears to be broken with + some Gtk themes. Bug 1312169. */ + outline: 1px dotted; +} + +/* ..... disabled state ..... */ + +checkbox[disabled="true"] { + color: GrayText; +} + +/* ::::: checkmark image ::::: */ + +.checkbox-check { + appearance: auto; + -moz-default-appearance: checkbox; + margin: 2px; +} diff --git a/toolkit/themes/linux/global/commonDialog.css b/toolkit/themes/linux/global/commonDialog.css new file mode 100644 index 0000000000..d2aef07d71 --- /dev/null +++ b/toolkit/themes/linux/global/commonDialog.css @@ -0,0 +1,26 @@ +/* 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/. */ + +#infoContainer { + display: flex; + flex-direction: column; + justify-content: center; +} + +/* + * Since we size the window to content, and the icon load is asynchronous, we + * make sure that we take the whole space we could possibly take, regardless of + * whether the icon is loaded. + */ +#iconContainer { + height: 55px; /* maximum icon height + some margin */ + width: 58px; /* maximum icon width + some margin */ +} + +#infoIcon { + display: block; + max-width: 48px; + max-height: 48px; + margin: 3px auto 0; +} diff --git a/toolkit/themes/linux/global/dropmarker.css b/toolkit/themes/linux/global/dropmarker.css new file mode 100644 index 0000000000..4a18f8f6e1 --- /dev/null +++ b/toolkit/themes/linux/global/dropmarker.css @@ -0,0 +1,11 @@ +/* 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/. */ + +:host { + appearance: auto; + -moz-default-appearance: -moz-menulist-arrow-button; + /* Cut off inheritance for dropmarkers within other widgets where + -moz-image-region might be set for the primary icon. */ + -moz-image-region: auto; +} diff --git a/toolkit/themes/linux/global/findBar.css b/toolkit/themes/linux/global/findBar.css new file mode 100644 index 0000000000..2dd8632a57 --- /dev/null +++ b/toolkit/themes/linux/global/findBar.css @@ -0,0 +1,5 @@ +/* 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/. */ + +%include ../../shared/findBar.inc.css diff --git a/toolkit/themes/linux/global/global.css b/toolkit/themes/linux/global/global.css new file mode 100644 index 0000000000..fe21c56433 --- /dev/null +++ b/toolkit/themes/linux/global/global.css @@ -0,0 +1,208 @@ +% 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/. + +/* ===== global.css ===================================================== + == Styles that apply everywhere. + ======================================================================= */ + +%include ../../shared/global.inc.css + +@media (-moz-menubar-drag) { + xul|toolbar[type="menubar"] { + -moz-window-dragging: drag; + } +} + +:root { + /* ::::: Variables ::::: */ + --default-arrowpanel-background: Field; + --default-arrowpanel-color: FieldText; + --default-arrowpanel-border-color: ThreeDShadow; + --arrowpanel-background: var(--default-arrowpanel-background); + --arrowpanel-color: var(--default-arrowpanel-color); + --arrowpanel-border-color: var(--default-arrowpanel-border-color); + --arrowpanel-padding: 10px; + --panel-disabled-color: GrayText; + --panel-description-color: GrayText; + /* ::::: Styles ::::: */ + appearance: auto; + -moz-default-appearance: dialog; + background-color: -moz-Dialog; + color: -moz-DialogText; + font: message-box; +} + +/* ::::: Alert icons :::::*/ + +.message-icon { + list-style-image: url("moz-icon://stock/gtk-dialog-info?size=dialog"); +} + +.alert-dialog #infoIcon, +.alert-icon { + list-style-image: url("moz-icon://stock/gtk-dialog-warning?size=dialog"); +} + +.error-icon { + list-style-image: url("moz-icon://stock/gtk-dialog-error?size=dialog"); +} + +.question-icon { + list-style-image: url("moz-icon://stock/gtk-dialog-question?size=dialog"); +} + +.authentication-icon { + list-style-image: url("chrome://global/skin/icons/Authentication.png"); +} + +/* ::::: iframe ::::: */ + +xul|iframe { + border: none; + width: 100px; + height: 100px; + min-width: 10px; + min-height: 10px; +} + +@supports -moz-bool-pref("layout.css.emulate-moz-box-with-flex") { + /* In emulation,