diff options
Diffstat (limited to 'browser/themes/linux')
30 files changed, 1213 insertions, 0 deletions
diff --git a/browser/themes/linux/browser.css b/browser/themes/linux/browser.css new file mode 100644 index 0000000000..66fed718c7 --- /dev/null +++ b/browser/themes/linux/browser.css @@ -0,0 +1,496 @@ +%if 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/. */ +%endif + +@namespace html url("http://www.w3.org/1999/xhtml"); + +%include ../shared/browser.inc.css + +:root { + --toolbar-non-lwt-bgcolor: -moz-dialog; + --toolbar-non-lwt-textcolor: -moz-dialogtext; + --toolbar-non-lwt-bgimage: linear-gradient(rgba(255,255,255,.15), rgba(255,255,255,.15)); + + --toolbarbutton-border-radius: 4px; + --toolbarbutton-vertical-text-padding: calc(var(--toolbarbutton-inner-padding) - 1px); + --toolbarbutton-icon-fill-opacity: .85; + + --panel-separator-color: ThreeDShadow; + --arrowpanel-dimmed: hsla(0,0%,80%,.35); + --arrowpanel-dimmed-further: hsla(0,0%,80%,.5); + --arrowpanel-dimmed-even-further: hsla(0,0%,80%,.8); + + --urlbar-separator-color: ThreeDShadow; + + --chrome-content-separator-color: ThreeDShadow; +} + +#navigator-toolbox { + --tabs-border-color: rgba(0,0,0,.3); +} + +#tabbrowser-tabs { + --tab-line-color: highlight; +} + +:root:-moz-lwtheme { + --chrome-content-separator-color: rgba(0,0,0,.3); + + --panel-separator-color: hsla(210,4%,10%,.14); +} + +:root[lwt-popup-brighttext] { + --panel-separator-color: rgba(249,249,250,.1); + + --arrowpanel-dimmed: rgba(249,249,250,.1); + --arrowpanel-dimmed-further: rgba(249,249,250,.15); + --arrowpanel-dimmed-even-further: rgba(249,249,250,.2); +} + +#menubar-items { + -moz-box-orient: vertical; /* for flex hack */ +} + +#navigator-toolbox { + appearance: none; + background-color: transparent; + border-top: none; +} + +.browser-toolbar { + padding: 0; +} + +.browser-toolbar:not(.titlebar-color) { + background-color: var(--toolbar-bgcolor); + background-image: var(--toolbar-bgimage); + color: var(--toolbar-color); + appearance: none; + border-style: none; +} + +#nav-bar:not([tabs-hidden="true"]) { + box-shadow: 0 calc(-1 * var(--tabs-navbar-shadow-size)) 0 var(--tabs-border-color); + /* This is needed for some toolbar button animations. Gross :( */ + position: relative; +} + +#browser-bottombox { + /* opaque for layers optimization */ + background-color: -moz-Dialog; +} + +/* Bookmark menus */ +menu.bookmark-item, +menuitem.bookmark-item { + min-width: 0; + max-width: 32em; +} + +.bookmark-item:not(.subviewbutton) > .menu-iconic-left { + margin-block: 0; +} + +.bookmark-item > .menu-iconic-left > .menu-iconic-icon { + padding-inline-start: 0; +} + +/* Bookmark drag and drop styles */ +.bookmark-item[dragover-into="true"] { + background: Highlight !important; + color: HighlightText !important; +} + +.bookmark-item[cutting] > .toolbarbutton-icon, +.bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-icon { + opacity: 0.5; +} + +.bookmark-item[cutting] > .toolbarbutton-text, +.bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-text { + opacity: 0.7; +} + +%include ../shared/toolbarbuttons.inc.css +%include ../shared/toolbarbutton-icons.inc.css +%include ../shared/menupanel.inc.css + +/* Fullscreen window controls */ + +#minimize-button, +#restore-button, +#close-button { + appearance: none; + padding: 6px 12px; + -moz-context-properties: stroke; + stroke: currentColor; + color: inherit; +} + +#minimize-button { + list-style-image: url(chrome://browser/skin/window-controls/minimize.svg); +} + +#restore-button { + list-style-image: url(chrome://browser/skin/window-controls/restore.svg); +} + +#minimize-button:hover, +#restore-button:hover { + background-color: hsla(0,0%,0%,.12); +} + +#minimize-button:hover:active, +#restore-button:hover:active { + background-color: hsla(0,0%,0%,.22); +} + +#TabsToolbar[brighttext] > #window-controls > #minimize-button:hover, +#TabsToolbar[brighttext] > #window-controls > #restore-button:hover { + background-color: hsla(0,0%,100%,.12); +} + +#TabsToolbar[brighttext] > #window-controls > #minimize-button:hover:active, +#TabsToolbar[brighttext] > #window-controls > #restore-button:hover:active { + background-color: hsla(0,0%,100%,.22); +} + +#close-button { + list-style-image: url(chrome://browser/skin/window-controls/close.svg); +} + +#close-button:hover { + background-color: #d70022; + stroke: white; +} + +#close-button:hover:active { + background-color: #ff0039; +} + +/* Address bar */ + +%include ../shared/urlbar-searchbar.inc.css + +#urlbar, +#searchbar { + font-size: 1.05em; +} + +@supports -moz-bool-pref("browser.urlbar.experimental.expandTextOnFocus") { + #urlbar[breakout-extend] { + font-size: 1.14em; + } +} + +#urlbar:not(:-moz-lwtheme, [focused="true"]) > #urlbar-background, +#searchbar:not(:-moz-lwtheme, :focus-within) { + border-color: ThreeDShadow; +} + +%include ../shared/identity-block/identity-block.inc.css +%include ../shared/notification-icons.inc.css +%include ../shared/addon-notification.inc.css + +/* Address bar results view */ + +%include ../shared/urlbarView.inc.css + +:root { + --urlbar-popup-url-color: -moz-nativehyperlinktext; + --urlbar-popup-action-color: -moz-nativehyperlinktext; +} + +/* Translation infobar */ + +%include ../shared/translation/infobar.inc.css + +/* AutoComplete */ + +%include ../shared/autocomplete.inc.css + +#PopupAutoComplete > richlistbox > richlistitem[originaltype~="datalist-first"] { + border-top: 1px solid ThreeDShadow; +} + +/* Bookmarking panel */ + +%include ../shared/places/editBookmarkPanel.inc.css + +/* Content area */ + +%include ../shared/sidebar.inc.css + +#browser { + --sidebar-border-color: ThreeDShadow; +} + +.sidebar-splitter { + appearance: none; + width: 6px; + background-color: -moz-dialog; + border: 1px ThreeDShadow; + border-style: none solid; +} + +/* Tabstrip */ + +%include ../shared/tabs.inc.css + +#tabbrowser-tabs { + /* override the global style to allow the selected tab to be above the nav-bar */ + z-index: auto; +} + +#TabsToolbar { + min-height: 0; +} + +#TabsToolbar:not(:-moz-lwtheme) { + appearance: auto; + -moz-default-appearance: menubar; + color: -moz-menubartext; +} + +#nav-bar { + -moz-window-dragging: drag; +} + +@media (-moz-menubar-drag) { + #TabsToolbar { + -moz-window-dragging: drag; + } +} + +.keyboard-focused-tab > .tab-stack > .tab-content, +.tabbrowser-tab:focus:not([aria-activedescendant]) > .tab-stack > .tab-content { + outline: 1px dotted; + outline-offset: -6px; +} + +#context_reloadTab { + list-style-image: url("moz-icon://stock/gtk-refresh?size=menu"); +} + +#context_closeOtherTabs { + list-style-image: url("moz-icon://stock/gtk-clear?size=menu"); +} + +#context_closeOtherTabs[disabled] { + list-style-image: url("moz-icon://stock/gtk-clear?size=menu&state=disabled"); +} + +#context_undoCloseTab { + list-style-image: url("moz-icon://stock/gtk-undelete?size=menu"); +} + +#context_closeTab { + list-style-image: url("moz-icon://stock/gtk-close?size=menu"); +} + +/* All tabs menupopup */ + +.alltabs-item[selected="true"] { + font-weight: bold; +} + +/* Status panel */ + +#statuspanel-label { + margin: 0; + padding: 2px 4px; + background-color: -moz-dialog; + border: 1px none ThreeDShadow; + border-top-style: solid; + color: -moz-dialogText; + text-shadow: none; +} + +@media (prefers-color-scheme: dark) { + #statuspanel-label { + background-color: hsl(240, 1%, 20%); + border-color: hsl(240, 1%, 40%); + color: rgb(249, 249, 250); + } +} + +#statuspanel:not([mirror]) > #statuspanel-inner > #statuspanel-label:-moz-locale-dir(ltr), +#statuspanel[mirror] > #statuspanel-inner > #statuspanel-label:-moz-locale-dir(rtl) { + border-right-style: solid; + border-top-right-radius: .3em; + margin-right: 1em; +} + +#statuspanel:not([mirror]) > #statuspanel-inner > #statuspanel-label:-moz-locale-dir(rtl), +#statuspanel[mirror] > #statuspanel-inner > #statuspanel-label:-moz-locale-dir(ltr) { + border-left-style: solid; + border-top-left-radius: .3em; + margin-left: 1em; +} + +%include ../shared/fullscreen/warning.inc.css +%include ../shared/ctrlTab.inc.css + +/* Customization mode */ + +%include ../shared/customizableui/customizeMode.inc.css + +/* End customization mode */ + +%include ../shared/UITour.inc.css + +#UITourHighlight { + /* Below are some fixes for people without an X compositor on Linux. + This is why we can't have nice things: */ + /* Animations don't repaint properly without an X compositor. */ + animation-name: none !important; + /* Opacity rounds to 0 or 1 on Linux without an X compositor, making the + background color not visible. Anti-aliasing is not available either. Make a + thicker outline and cancel border-radius for that case. */ + outline: 4px solid rgb(0,200,215); + border-radius: 0 !important; +} + +#UITourTooltipDescription { + font-size: 1.05rem; +} + +#UITourTooltipClose { + margin-inline-end: -4px; +} + +/** + * Override the --arrowpanel-padding so the background extends + * to the sides and bottom of the panel. + */ +#UITourTooltipButtons { + margin-inline-start: -10px; + margin-bottom: -10px; +} + +%include ../shared/contextmenu.inc.css + +#context-navigation > .menuitem-iconic > .menu-iconic-left { + /* override toolkit/themes/linux/global/menu.css */ + padding-inline-end: 0 !important; + margin-inline-end: 0 !important; +} + +.webextension-popup-browser, +.webextension-popup-stack { + border-radius: inherit; +} + +/* We draw to titlebar when Gkt+ CSD is available */ +@media (-moz-gtk-csd-available) { + /* Some Gtk+ themes use non-rectangular toplevel windows. To fully support + * such themes we need to make toplevel window transparent. + * It may cause performanance issues so let's put it under a preference + * and enable it for desktop environment which do that by default. + * See nsWindow::TopLevelWindowUseARGBVisual() for details. */ + @media (-moz-gtk-csd-transparent-background) { + :root[tabsintitlebar][sizemode="normal"]:not(:-moz-lwtheme) { + background-color: transparent; + appearance: none; + } + } + + :root[tabsintitlebar] #titlebar { + appearance: auto; + -moz-default-appearance: -moz-window-titlebar-maximized; + } + :root[tabsintitlebar][sizemode="normal"]:not([gtktiledwindow="true"]) #titlebar { + appearance: auto; + -moz-default-appearance: -moz-window-titlebar; + } + :root[tabsintitlebar]:not([inDOMFullscreen]) #titlebar:-moz-lwtheme { + visibility: hidden; + } + :root[tabsintitlebar]:not([inDOMFullscreen]) #toolbar-menubar:-moz-lwtheme, + :root[tabsintitlebar]:not([inDOMFullscreen]) #TabsToolbar:-moz-lwtheme { + visibility: visible; + } + + /* When temporarily showing the menu bar, make it at least as tall as the tab + * bar such that the window controls don't appear to move up. */ + :root[tabsintitlebar] #toolbar-menubar[autohide="true"] { + height: var(--tab-min-height); + } + :root[tabsintitlebar][sizemode="normal"] #toolbar-menubar[autohide="true"] { + height: calc(var(--tab-min-height) + var(--space-above-tabbar)); + } + + /* Add extra space to titlebar for dragging */ + :root[sizemode="normal"][chromehidden~="menubar"] #TabsToolbar > .toolbar-items, + :root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] + #TabsToolbar > .toolbar-items { + padding-top: var(--space-above-tabbar); + } + + /* Make #TabsToolbar transparent as we style underlying #titlebar with + * -moz-window-titlebar (Gtk+ theme). */ + :root[tabsintitlebar][sizemode="normal"]:not([inFullscreen]) #TabsToolbar, + :root[tabsintitlebar][sizemode="maximized"] #TabsToolbar, + :root[tabsintitlebar] #toolbar-menubar { + appearance: none; + } + + /* The button box must appear on top of the navigator-toolbox in order for + * click and hover mouse events to work properly for the button in the restored + * window state. Otherwise, elements in the navigator-toolbox, like the menubar, + * can swallow those events. */ + .titlebar-buttonbox { + z-index: 1; + -moz-box-align: center; + } + + /* Render titlebar command buttons according to system config. + * Use full scale icons here as the Gtk+ does. */ + @media (-moz-gtk-csd-minimize-button) { + .titlebar-min { + appearance: auto; + -moz-default-appearance: -moz-window-button-minimize; + } + } + @media (-moz-gtk-csd-minimize-button: 0) { + .titlebar-min { + display: none; + } + } + + @media (-moz-gtk-csd-maximize-button) { + .titlebar-max { + appearance: auto; + -moz-default-appearance: -moz-window-button-maximize; + } + .titlebar-restore { + appearance: auto; + -moz-default-appearance: -moz-window-button-restore; + } + } + @media (-moz-gtk-csd-maximize-button: 0) { + .titlebar-restore, + .titlebar-max { + display: none; + } + } + + @media (-moz-gtk-csd-close-button) { + .titlebar-close { + appearance: auto; + -moz-default-appearance: -moz-window-button-close; + } + } + @media (-moz-gtk-csd-close-button: 0) { + .titlebar-close { + display: none; + } + } + @media (-moz-gtk-csd-reversed-placement) { + .titlebar-buttonbox-container, + .titlebar-close { + -moz-box-ordinal-group: 0; + } + } +} diff --git a/browser/themes/linux/compacttheme.css b/browser/themes/linux/compacttheme.css new file mode 100644 index 0000000000..fe83efc4e2 --- /dev/null +++ b/browser/themes/linux/compacttheme.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/compacttheme.inc.css diff --git a/browser/themes/linux/controlcenter/panel.css b/browser/themes/linux/controlcenter/panel.css new file mode 100644 index 0000000000..815190319c --- /dev/null +++ b/browser/themes/linux/controlcenter/panel.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/. */ + +%include ../../shared/controlcenter/panel.inc.css + +.identity-popup-expander > .button-box, +.identity-popup-permission-remove-button > .button-box { + appearance: none; +} + +.identity-popup-expander:-moz-focusring, +.identity-popup-permission-remove-button:-moz-focusring { + outline: 1px -moz-dialogtext dotted; + outline-offset: -1px; +} + +/* This overrides color: -moz-buttonhovertext from toolbarbutton.css */ +#protections-popup toolbarbutton:not([disabled="true"]):hover, +#protections-popup toolbarbutton:not([disabled="true"]):hover:active { + color: inherit; +} + +.protections-popup-tp-switch:-moz-focusring { + outline: 1px dotted; +} diff --git a/browser/themes/linux/customizableui/panelUI.css b/browser/themes/linux/customizableui/panelUI.css new file mode 100644 index 0000000000..98662066b5 --- /dev/null +++ b/browser/themes/linux/customizableui/panelUI.css @@ -0,0 +1,32 @@ +/* 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/customizableui/panelUI.inc.css + +#BMB_bookmarksPopup menupopup { + appearance: none; + background: var(--arrowpanel-background); + color: var(--arrowpanel-color); + border: 1px solid var(--arrowpanel-border-color); + margin-top: -6px; + padding-top: 1px; +} + +menuitem.subviewbutton { + appearance: none !important; +} + +.subviewradio > .radio-label-box { + appearance: none; +} + +/* + * #pageActionFeedbackAnimatableImage is wider than the panel, and due to a + * bug in panels on Linux, a box-shadow appears where the image would be if + * overflow:hidden wasn't applied. Disabling the box-shadow for this panel on + * Linux works around this issue. This bug is on file as 1394575. + */ +#pageActionFeedback::part(arrowcontent) { + box-shadow: none; +} diff --git a/browser/themes/linux/downloads/allDownloadsView.css b/browser/themes/linux/downloads/allDownloadsView.css new file mode 100644 index 0000000000..1d0b5a036f --- /dev/null +++ b/browser/themes/linux/downloads/allDownloadsView.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/. */ + +%include ../../shared/downloads/allDownloadsView.inc.css + +/*** List items ***/ + +:root { + --downloads-item-height: 5em; +} diff --git a/browser/themes/linux/downloads/downloads.css b/browser/themes/linux/downloads/downloads.css new file mode 100644 index 0000000000..128f338976 --- /dev/null +++ b/browser/themes/linux/downloads/downloads.css @@ -0,0 +1,20 @@ +/* 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/downloads/downloads.inc.css + +/*** List items and similar elements in the summary ***/ + +:root { + --downloads-item-height: 5.5em; + --downloads-item-font-size-factor: 0.9; + --downloads-item-details-opacity: 0.6; +} + +@keyfocus@ @itemFocused@, +@keyfocus@ #downloadsSummary:focus, +.downloadButton:focus { + outline: 1px -moz-dialogtext dotted; + outline-offset: -1px; +} diff --git a/browser/themes/linux/jar.mn b/browser/themes/linux/jar.mn new file mode 100644 index 0000000000..af4370fd08 --- /dev/null +++ b/browser/themes/linux/jar.mn @@ -0,0 +1,38 @@ +# 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/. + +browser.jar: +% skin browser classic/1.0 %skin/classic/browser/ +#include ../shared/jar.inc.mn + skin/classic/browser/sanitizeDialog.css +* skin/classic/browser/syncedtabs/sidebar.css (syncedtabs/sidebar.css) +* skin/classic/browser/browser.css +* skin/classic/browser/compacttheme.css + skin/classic/browser/monitor-base.png + skin/classic/browser/monitor-border.png + skin/classic/browser/pageInfo.css + skin/classic/browser/pageInfo.png +* skin/classic/browser/searchbar.css + skin/classic/browser/slowStartup-16.png +* skin/classic/browser/webRTC-indicator.css + skin/classic/browser/webRTC-legacy-indicator.css (../shared/webRTC-legacy-indicator.css) +* skin/classic/browser/controlcenter/panel.css (controlcenter/panel.css) +* skin/classic/browser/customizableui/panelUI.css (customizableui/panelUI.css) +* skin/classic/browser/downloads/allDownloadsView.css (downloads/allDownloadsView.css) +* skin/classic/browser/downloads/downloads.css (downloads/downloads.css) + skin/classic/browser/notification-icons/geo-blocked.svg (notification-icons/geo-blocked.svg) + skin/classic/browser/notification-icons/geo-detailed.svg (notification-icons/geo-detailed.svg) + skin/classic/browser/notification-icons/geo.svg (notification-icons/geo.svg) + skin/classic/browser/places/editBookmark.css (places/editBookmark.css) +* skin/classic/browser/places/sidebar.css (places/sidebar.css) + skin/classic/browser/places/organizer.css (places/organizer.css) + skin/classic/browser/preferences/alwaysAsk.png (preferences/alwaysAsk.png) +* skin/classic/browser/preferences/preferences.css (preferences/preferences.css) +* skin/classic/browser/preferences/dialog.css (preferences/dialog.css) + skin/classic/browser/preferences/applications.css (preferences/applications.css) + skin/classic/browser/window-controls/close.svg (window-controls/close.svg) + skin/classic/browser/window-controls/minimize.svg (window-controls/minimize.svg) + skin/classic/browser/window-controls/restore.svg (window-controls/restore.svg) + + skin/classic/browser/e10s-64@2x.png (../shared/e10s-64@2x.png) diff --git a/browser/themes/linux/monitor-base.png b/browser/themes/linux/monitor-base.png Binary files differnew file mode 100644 index 0000000000..45a2410217 --- /dev/null +++ b/browser/themes/linux/monitor-base.png diff --git a/browser/themes/linux/monitor-border.png b/browser/themes/linux/monitor-border.png Binary files differnew file mode 100644 index 0000000000..f05dcb7839 --- /dev/null +++ b/browser/themes/linux/monitor-border.png diff --git a/browser/themes/linux/moz.build b/browser/themes/linux/moz.build new file mode 100644 index 0000000000..20e4e3af75 --- /dev/null +++ b/browser/themes/linux/moz.build @@ -0,0 +1,9 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +JAR_MANIFESTS += ["jar.mn"] + +DEFINES["MENUBAR_CAN_AUTOHIDE"] = 1 diff --git a/browser/themes/linux/notification-icons/geo-blocked.svg b/browser/themes/linux/notification-icons/geo-blocked.svg new file mode 100644 index 0000000000..726eb987c0 --- /dev/null +++ b/browser/themes/linux/notification-icons/geo-blocked.svg @@ -0,0 +1,6 @@ +<!-- 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/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="context-fill" fill-opacity="context-fill-opacity"> + <path d="M12.7 6.3a4.953 4.953 0 0 1 .2.7H12l-1 1a1 1 0 0 0 1 1h.9A5.015 5.015 0 0 1 9 12.9V12a1 1 0 0 0-1-1l-1 1v.9a4.953 4.953 0 0 1-.7-.2l-1.512 1.512a6.989 6.989 0 0 0 9.425-9.425zm2.007-5.007a1 1 0 0 0-1.414 0L12.184 2.4A6.986 6.986 0 0 0 2.4 12.184l-1.107 1.109a1 1 0 1 0 1.414 1.414l12-12a1 1 0 0 0 0-1.414zM3.1 9H4a1 1 0 0 0 0-2h-.9A5.015 5.015 0 0 1 7 3.1V4a1 1 0 0 0 2 0v-.9a4.955 4.955 0 0 1 1.747.738l-6.908 6.909A4.957 4.957 0 0 1 3.1 9z"/> +</svg> diff --git a/browser/themes/linux/notification-icons/geo-detailed.svg b/browser/themes/linux/notification-icons/geo-detailed.svg new file mode 100644 index 0000000000..263017a05c --- /dev/null +++ b/browser/themes/linux/notification-icons/geo-detailed.svg @@ -0,0 +1,7 @@ +<!-- 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/. --> +<svg fill="context-fill" fill-opacity="context-fill-opacity" xmlns="http://www.w3.org/2000/svg" + width="32" height="32" viewBox="0 0 32 32"> + <path d="m 2,15.9 a 14,14 0 1 1 0,0.2 z m 3,2.1 a 11,11 0 0 0 9,9 l 1,-5 2,0 1,5 a 11,11 0 0 0 9,-9 l -5,-1 0,-2 5,-1 a 11,11 0 0 0 -9,-9 l -1,5 -2,0 -1,-5 a 11,11 0 0 0 -9,9 l 5,1 0,2 z"/> +</svg> diff --git a/browser/themes/linux/notification-icons/geo.svg b/browser/themes/linux/notification-icons/geo.svg new file mode 100644 index 0000000000..4de8d0430e --- /dev/null +++ b/browser/themes/linux/notification-icons/geo.svg @@ -0,0 +1,6 @@ +<!-- 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/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="context-fill" fill-opacity="context-fill-opacity"> + <path d="M8 1a7 7 0 1 0 7 7 7.008 7.008 0 0 0-7-7zm1 11.9V12a1 1 0 0 0-2 0v.9A5.015 5.015 0 0 1 3.1 9H4a1 1 0 0 0 0-2h-.9A5.015 5.015 0 0 1 7 3.1V4a1 1 0 0 0 2 0v-.9A5.015 5.015 0 0 1 12.9 7H12a1 1 0 0 0 0 2h.9A5.015 5.015 0 0 1 9 12.9z"/> +</svg> diff --git a/browser/themes/linux/pageInfo.css b/browser/themes/linux/pageInfo.css new file mode 100644 index 0000000000..16a075d1e6 --- /dev/null +++ b/browser/themes/linux/pageInfo.css @@ -0,0 +1,155 @@ +/* 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/. */ + +@import url("chrome://global/skin/global.css"); +@namespace html url("http://www.w3.org/1999/xhtml"); + +/* View buttons */ +#viewGroup > radio { + list-style-image: url("chrome://browser/skin/pageInfo.png"); + appearance: none; + min-width: 4.5em; + margin: 0; + padding: 3px; + color: FieldText; +} + +#viewGroup > radio[selected="true"] { + background-color: Highlight; + color: HighlightText; +} + +#viewGroup > radio > .radio-label-box { + padding: 0 6px; +} + +#topBar { + border-bottom: 1px solid ThreeDShadow; + padding-inline-start: 10px; + background-color: Field; + color: FieldText; +} + +#generalTab { + -moz-image-region: rect(0px, 32px, 32px, 0px) +} + +#mediaTab { + -moz-image-region: rect(0px, 64px, 32px, 32px) +} + +#permTab { + -moz-image-region: rect(0px, 128px, 32px, 96px) +} + +#securityTab { + -moz-image-region: rect(0px, 160px, 32px, 128px) +} + +#mainDeck { + padding-inline: 2px; +} + +#mainDeck { + padding: 10px; +} + +/* Misc */ +tree { + margin: .5em; +} + +html|input { + background: transparent; + border: none; + padding: 0; +} + +html|input.header { + margin-inline-start: 0; +} + +#imagecontainerbox { + margin: .5em; + background: white; + overflow: auto; + border: 1px solid ThreeDLightShadow; +} + +html|input:disabled { + font-style: italic; +} + +/* General Tab */ +#generalPanel > #titletext { + margin-inline-start: 5px; +} + +#securityBox description { + margin-inline-start: 10px; +} + +#general-security-identity { + white-space: pre-wrap; + line-height: 2em; +} + +/* Media Tab */ +#imagetree { + min-height: 10em; + margin-block: 2px 0; +} + +#mediaSplitter { + appearance: none; + height: .8em; +} + +#mediaTable { + margin-bottom: 2em; +} + +#mediaLabelColumn { + min-width: 10em; +} + +#thepreviewimage { + margin: 1em; +} + +treechildren::-moz-tree-cell-text(broken) { + font-style: italic; + color: graytext; +} + +/* Permissions Tab */ + +#permList { + appearance: auto; + -moz-default-appearance: listbox; + margin: .5em; + overflow: auto; + color: FieldText; +} + +.permission { + padding: 6px 7px; + min-height: 25px; + border-bottom: 1px dotted ThreeDShadow; +} + +.permissionLabel { + font-weight: bold; +} + +.permission:hover { + background-color: -moz-dialog; + color: -moz-DialogText; +} + +/* Security Tab */ + +#securityPanel table { + margin-bottom: 1em; +} diff --git a/browser/themes/linux/pageInfo.png b/browser/themes/linux/pageInfo.png Binary files differnew file mode 100644 index 0000000000..cdd511cf1f --- /dev/null +++ b/browser/themes/linux/pageInfo.png diff --git a/browser/themes/linux/places/editBookmark.css b/browser/themes/linux/places/editBookmark.css new file mode 100644 index 0000000000..2f32c8e04e --- /dev/null +++ b/browser/themes/linux/places/editBookmark.css @@ -0,0 +1,76 @@ +/* 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/. */ + +#editBookmarkPanelRows > vbox { + margin-bottom: .5em; +} + +/* Folder menulist */ + +#editBMPanel_folderMenuList::part(icon) { + width: 16px; + height: 16px; +} + +.folder-icon > .menu-iconic-left { + display: -moz-box; +} + +.folder-icon { + list-style-image: url("chrome://browser/skin/places/folder.svg") !important; + -moz-context-properties: fill; + fill: currentColor; +} + +/* Expanders */ + +.expander-up, +.expander-down { + min-width: 0; + padding: 2px 0; + padding-inline-start: 2px; +} + +.expander-up > .button-box { + appearance: auto; + -moz-default-appearance: button-arrow-up; +} + +.expander-down > .button-box { + appearance: auto; + -moz-default-appearance: button-arrow-down; +} + +#editBMPanel_folderTree { + margin-block: 2px; +} + +/* Hide the value column of the tag autocomplete popup + * leaving only the comment column visible. This is + * so that only the tag being edited is shown in the + * popup. + */ +#editBMPanel_tagsField #treecolAutoCompleteValue { + visibility: collapse; +} + +#editBMPanel_tagsSelector > richlistitem > image { + appearance: auto; + -moz-default-appearance: checkbox; + -moz-box-align: center; + margin: 0 2px; + min-width: 13px; + min-height: 13px; +} + +/* Bookmark panel dropdown menu items */ +#editBMPanel_folderMenuList[selectedGuid="toolbar_____"], +#editBMPanel_toolbarFolderItem { + list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.svg") !important; +} + +#editBMPanel_folderMenuList[selectedGuid="menu________"], +#editBMPanel_bmRootItem { + list-style-image: url("chrome://browser/skin/places/bookmarksMenu.svg") !important; +} diff --git a/browser/themes/linux/places/organizer.css b/browser/themes/linux/places/organizer.css new file mode 100644 index 0000000000..710a1063c6 --- /dev/null +++ b/browser/themes/linux/places/organizer.css @@ -0,0 +1,101 @@ +/* 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/. */ + +/* Toolbar */ + +#placesToolbar { + appearance: auto; + -moz-default-appearance: menubar; +} + +@media (-moz-menubar-drag) { + #placesToolbar { + -moz-window-dragging: drag; + } +} + +#placesToolbar > toolbarbutton { + color: -moz-menubartext; +} + +#placesToolbar > toolbarbutton:hover { + color: ButtonText; +} + +#placesToolbar > toolbarbutton[disabled] { + color: GrayText; +} + +/* Back button */ + +#back-button { + list-style-image: url("moz-icon://stock/gtk-go-back-ltr?size=toolbar"); +} +#back-button[disabled] { + list-style-image: url("moz-icon://stock/gtk-go-back-ltr?size=toolbar&state=disabled"); +} + +#back-button:-moz-locale-dir(rtl) { + list-style-image: url("moz-icon://stock/gtk-go-back-rtl?size=toolbar"); +} +#back-button[disabled]:-moz-locale-dir(rtl) { + list-style-image: url("moz-icon://stock/gtk-go-back-rtl?size=toolbar&state=disabled"); +} + +/* Forward button */ + +#forward-button { + list-style-image: url("moz-icon://stock/gtk-go-forward-ltr?size=toolbar"); +} +#forward-button[disabled] { + list-style-image: url("moz-icon://stock/gtk-go-forward-ltr?size=toolbar&state=disabled"); +} + +#forward-button:-moz-locale-dir(rtl) { + list-style-image: url("moz-icon://stock/gtk-go-forward-rtl?size=toolbar"); +} +#forward-button[disabled]:-moz-locale-dir(rtl) { + list-style-image: url("moz-icon://stock/gtk-go-forward-rtl?size=toolbar&state=disabled"); +} + +/* Menus */ +#placesMenu > menu { + padding-inline-start: 4px; + appearance: auto; + -moz-default-appearance: toolbarbutton; +} + +#placesMenu > menu:hover { + color: ButtonText; +} + +#placesMenu > menu:active, +#placesMenu > menu[open] { + color: -moz-gtk-buttonactivetext; +} + +#placesMenu > menu::after { + content: ""; + display: -moz-box; + width: 12px; + height: 12px; + content: url("chrome://global/skin/icons/arrow-dropdown-12.svg"); + -moz-context-properties: fill; + fill: currentColor; +} + +/* Root View */ +#placesView { + background-color: Window; +} + +/* Info box */ +#detailsPane { + padding: 5px; +} + +/* Downloads pane */ +#clearDownloadsButton > .toolbarbutton-icon { + display: none; +} diff --git a/browser/themes/linux/places/sidebar.css b/browser/themes/linux/places/sidebar.css new file mode 100644 index 0000000000..c0356b6a84 --- /dev/null +++ b/browser/themes/linux/places/sidebar.css @@ -0,0 +1,43 @@ +/* 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/. */ + +/* Sidebars */ + +%include ../../shared/places/sidebar.inc.css + +#sidebar-search-container { + padding: 8px; +} + +#search-box { + margin: 0; +} + +#viewButton { + margin: 1px 0; + margin-inline-start: 4px; +} + +#viewButton:-moz-focusring:not(:hover, [open]) { + outline: 1px dotted -moz-DialogText; +} + +:root[uidensity=touch] #search-box, +:root[uidensity=touch] .sidebar-placesTreechildren::-moz-tree-row { + min-height: 32px; +} + +.sidebar-placesTreechildren::-moz-tree-cell(leaf) , +.sidebar-placesTreechildren::-moz-tree-image(leaf) { + cursor: pointer; +} + +.sidebar-placesTreechildren::-moz-tree-cell-text(leaf, hover) { + cursor: pointer; + text-decoration: underline; +} + +.sidebar-placesTreechildren::-moz-tree-cell(separator) { + cursor: default; +} diff --git a/browser/themes/linux/preferences/alwaysAsk.png b/browser/themes/linux/preferences/alwaysAsk.png Binary files differnew file mode 100644 index 0000000000..c6720e19e7 --- /dev/null +++ b/browser/themes/linux/preferences/alwaysAsk.png diff --git a/browser/themes/linux/preferences/applications.css b/browser/themes/linux/preferences/applications.css new file mode 100644 index 0000000000..bc0692b474 --- /dev/null +++ b/browser/themes/linux/preferences/applications.css @@ -0,0 +1,83 @@ +/* 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/. */ + +/** + * Line up the actions menu with action labels above and below it. + * Equalize the distance from the left side of the action box to the left side + * of the icon for both the menu and the non-menu versions of the action box. + * Also make sure the labels are the same distance away from the icons. + */ +.actionsMenu { + margin-block: -1px; + margin-inline: -1px 0; +} + +.typeIcon, +.actionIcon { + margin-inline: 3px; +} + +#handlersView > richlistitem label { + margin-inline-start: 1px; + margin-top: 2px; +} + +#handlersView > richlistitem { + min-height: 25px; +} + +richlistitem[appHandlerIcon="handleInternally"], +menuitem[appHandlerIcon="handleInternally"] { + list-style-image: url("chrome://branding/content/icon32.png"); +} + +richlistitem[appHandlerIcon="ask"], +menuitem[appHandlerIcon="ask"] { + list-style-image: url("chrome://browser/skin/preferences/alwaysAsk.png"); +} + +richlistitem[appHandlerIcon="save"], +menuitem[appHandlerIcon="save"] { + list-style-image: url("moz-icon://stock/gtk-save?size=menu"); +} + +richlistitem[appHandlerIcon="plugin"], +menuitem[appHandlerIcon="plugin"] { + list-style-image: url("chrome://global/skin/plugins/plugin.svg"); +} + +.actionsMenu::part(icon) { + margin-inline: 3px 6px; + height: 16px; + width: 16px; +} + +.actionsMenu > menupopup > menuitem > .menu-iconic-left { + padding-inline-start: 0; + padding-inline-end: 4px !important; +} + +.actionsMenu > menupopup > menuitem { + padding-inline-start: 3px; +} + +#appList { + min-height: 212px; +} + +#appList > richlistitem { + -moz-box-align: center; +} + +#appList > richlistitem > image { + margin: 5px; + width: 32px; + height: 32px; +} + +#appList > richlistitem > label { + margin: 0px; + padding: 5px; + white-space: nowrap; +} diff --git a/browser/themes/linux/preferences/dialog.css b/browser/themes/linux/preferences/dialog.css new file mode 100644 index 0000000000..5b1be25341 --- /dev/null +++ b/browser/themes/linux/preferences/dialog.css @@ -0,0 +1,9 @@ +/* - 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/preferences/dialog.inc.css + +:root > * { + font-size: 1.05em; +} diff --git a/browser/themes/linux/preferences/preferences.css b/browser/themes/linux/preferences/preferences.css new file mode 100644 index 0000000000..932494e39a --- /dev/null +++ b/browser/themes/linux/preferences/preferences.css @@ -0,0 +1,21 @@ +/* - 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/preferences/preferences.inc.css + +/* Global rules */ +body { + font-size: 1.11em; +} + +.treecol-sortdirection { + /* override the Linux only toolkit rule */ + appearance: none; +} + +/* Modeless Window Dialogs */ + +.actionButtons { + margin: 0 3px 6px; +} diff --git a/browser/themes/linux/sanitizeDialog.css b/browser/themes/linux/sanitizeDialog.css new file mode 100644 index 0000000000..4883786a9f --- /dev/null +++ b/browser/themes/linux/sanitizeDialog.css @@ -0,0 +1,16 @@ +/* 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/. */ + +#sanitizeDurationChoice { + margin-inline-end: 0; +} + +/* Align the duration label with the warning box and item list */ +#sanitizeDurationLabel { + margin-inline-start: 3px; +} + +#sanitizeEverythingWarningIcon { + list-style-image: url("moz-icon://stock/gtk-dialog-warning?size=dialog"); +} diff --git a/browser/themes/linux/searchbar.css b/browser/themes/linux/searchbar.css new file mode 100644 index 0000000000..b0316dba8e --- /dev/null +++ b/browser/themes/linux/searchbar.css @@ -0,0 +1,13 @@ +/* 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/searchbar.inc.css + +menuitem[cmd="cmd_clearhistory"] { + list-style-image: url("moz-icon://stock/gtk-clear?size=menu"); +} + +menuitem[cmd="cmd_clearhistory"][disabled] { + list-style-image: url("moz-icon://stock/gtk-clear?size=menu&state=disabled"); +} diff --git a/browser/themes/linux/slowStartup-16.png b/browser/themes/linux/slowStartup-16.png Binary files differnew file mode 100644 index 0000000000..22cf63fc49 --- /dev/null +++ b/browser/themes/linux/slowStartup-16.png diff --git a/browser/themes/linux/syncedtabs/sidebar.css b/browser/themes/linux/syncedtabs/sidebar.css new file mode 100644 index 0000000000..c278d6bd62 --- /dev/null +++ b/browser/themes/linux/syncedtabs/sidebar.css @@ -0,0 +1,12 @@ +/* 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/syncedtabs/sidebar.inc.css + +/* These styles are intended to mimic XUL trees and the XUL search box. */ + +.item-title { + margin: 1px 0 0; + margin-inline-end: 6px; +} diff --git a/browser/themes/linux/webRTC-indicator.css b/browser/themes/linux/webRTC-indicator.css new file mode 100644 index 0000000000..e7db9d2992 --- /dev/null +++ b/browser/themes/linux/webRTC-indicator.css @@ -0,0 +1,9 @@ +%if 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/. */ +%endif + +@namespace html url("http://www.w3.org/1999/xhtml"); + +%include ../shared/webRTC-indicator.inc.css diff --git a/browser/themes/linux/window-controls/close.svg b/browser/themes/linux/window-controls/close.svg new file mode 100644 index 0000000000..9d0a252357 --- /dev/null +++ b/browser/themes/linux/window-controls/close.svg @@ -0,0 +1,6 @@ +<!-- 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/. --> +<svg width="12" height="12" xmlns="http://www.w3.org/2000/svg"> + <path stroke="context-stroke" stroke-width=".9" fill="none" d="M1,1 l 10,10 M1,11 l 10,-10"/> +</svg> diff --git a/browser/themes/linux/window-controls/minimize.svg b/browser/themes/linux/window-controls/minimize.svg new file mode 100644 index 0000000000..7ffa1fecbb --- /dev/null +++ b/browser/themes/linux/window-controls/minimize.svg @@ -0,0 +1,6 @@ +<!-- 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/. --> +<svg width="12" height="12" xmlns="http://www.w3.org/2000/svg"> + <line stroke="context-stroke" stroke-width=".9" fill="none" shape-rendering="crispEdges" x1="1" y1="5.5" x2="11" y2="5.5"/> +</svg> diff --git a/browser/themes/linux/window-controls/restore.svg b/browser/themes/linux/window-controls/restore.svg new file mode 100644 index 0000000000..80b71b178d --- /dev/null +++ b/browser/themes/linux/window-controls/restore.svg @@ -0,0 +1,7 @@ +<!-- 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/. --> +<svg width="12" height="12" xmlns="http://www.w3.org/2000/svg" stroke="context-stroke" stroke-width=".9" fill="none" shape-rendering="crispEdges"> + <rect x="1.5" y="3.5" width="7" height="7"/> + <polyline points="3.5,3.5 3.5,1.5 10.5,1.5 10.5,8.5 8.5,8.5"/> +</svg> |