aboutsummaryrefslogtreecommitdiff
path: root/arc-firefox-theme/chrome/browser/downloads
diff options
context:
space:
mode:
authorHorst31802016-09-25 13:48:09 +0200
committerHorst31802016-09-25 13:48:09 +0200
commit1d6fd7158566981aef6b8eef84bf110d23189500 (patch)
treefb23016c1069dc830cade3f359ef29d6a6005a1f /arc-firefox-theme/chrome/browser/downloads
parent98a2f994a8626e1ca34305465fe668ff893f8b17 (diff)
downloadsolarc-firefox-theme-1d6fd7158566981aef6b8eef84bf110d23189500.tar.gz
solarc-firefox-theme-1d6fd7158566981aef6b8eef84bf110d23189500.tar.xz
solarc-firefox-theme-1d6fd7158566981aef6b8eef84bf110d23189500.zip
update to 50.0b1
Diffstat (limited to 'arc-firefox-theme/chrome/browser/downloads')
-rw-r--r--arc-firefox-theme/chrome/browser/downloads/allDownloadsViewOverlay.css34
-rw-r--r--arc-firefox-theme/chrome/browser/downloads/buttons.pngbin5091 -> 12765 bytes
-rw-r--r--arc-firefox-theme/chrome/browser/downloads/download-blocked.svg17
-rw-r--r--arc-firefox-theme/chrome/browser/downloads/downloads.css205
4 files changed, 196 insertions, 60 deletions
diff --git a/arc-firefox-theme/chrome/browser/downloads/allDownloadsViewOverlay.css b/arc-firefox-theme/chrome/browser/downloads/allDownloadsViewOverlay.css
index c9af0bf..9d1a568 100644
--- a/arc-firefox-theme/chrome/browser/downloads/allDownloadsViewOverlay.css
+++ b/arc-firefox-theme/chrome/browser/downloads/allDownloadsViewOverlay.css
@@ -27,14 +27,30 @@
}
.downloadTypeIcon {
- margin-inline-end: 8px;
+ margin-top: 8px;
+ margin-inline-end: 12px;
+ margin-bottom: 8px;
+ margin-inline-start: 0;
width: 32px;
height: 32px;
}
-.blockedIcon {
- list-style-image: url("chrome://global/skin/icons/Error.png");
+.downloadBlockedBadge {
+ margin: 0 4px;
+ background: url("chrome://browser/skin/downloads/download-blocked.svg") top right / 16px no-repeat;
+}
+
+.downloadBlockedBadge:-moz-locale-dir(rtl) {
+ background-position-x: left;
+}
+
+richlistitem.download[verdict="PotentiallyUnwanted"] .downloadBlockedBadge {
+ background-image: url("chrome://browser/skin/warning.svg");
+}
+
+richlistitem.download[verdict="Uncommon"] .downloadBlockedBadge {
+ background-image: url("chrome://browser/skin/info.svg");
}
.downloadTarget {
@@ -65,18 +81,6 @@
--downloads-item-height: 5em;
}
-.blockedIcon {
- list-style-image: url("moz-icon://stock/gtk-dialog-error?size=32");
-}
-
-richlistitem.download[verdict="PotentiallyUnwanted"] .blockedIcon {
- list-style-image: url("moz-icon://stock/gtk-dialog-warning?size=32");
-}
-
-richlistitem.download[verdict="Uncommon"] .blockedIcon {
- list-style-image: url("moz-icon://stock/gtk-dialog-info?size=32");
-}
-
/*** Button icons ***/
.downloadButton.downloadIconCancel {
diff --git a/arc-firefox-theme/chrome/browser/downloads/buttons.png b/arc-firefox-theme/chrome/browser/downloads/buttons.png
index 071f7f7..0c91695 100644
--- a/arc-firefox-theme/chrome/browser/downloads/buttons.png
+++ b/arc-firefox-theme/chrome/browser/downloads/buttons.png
Binary files differ
diff --git a/arc-firefox-theme/chrome/browser/downloads/download-blocked.svg b/arc-firefox-theme/chrome/browser/downloads/download-blocked.svg
new file mode 100644
index 0000000..e73efe9
--- /dev/null
+++ b/arc-firefox-theme/chrome/browser/downloads/download-blocked.svg
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 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" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
+ <style>
+ circle {
+ fill: #D92215;
+ }
+ rect {
+ fill: #fff;
+ }
+ </style>
+
+ <circle cx="8" cy="8" r="8" />
+ <rect x="3" y="6" width="10" height="4" rx=".5" ry=".5" />
+</svg>
diff --git a/arc-firefox-theme/chrome/browser/downloads/downloads.css b/arc-firefox-theme/chrome/browser/downloads/downloads.css
index b08d909..0ab69eb 100644
--- a/arc-firefox-theme/chrome/browser/downloads/downloads.css
+++ b/arc-firefox-theme/chrome/browser/downloads/downloads.css
@@ -11,6 +11,12 @@
/*** Panel and outer controls ***/
#downloadsPanel > .panel-arrowcontainer > .panel-arrowcontent {
+ overflow: hidden;
+ display: block;
+}
+
+#downloadsPanel > .panel-arrowcontainer > .panel-arrowcontent,
+#downloadsPanel-multiView > .panel-viewcontainer > .panel-viewstack > .panel-subviews {
padding: 0;
}
@@ -20,21 +26,61 @@
color: inherit;
}
-#downloadsPanel:not([hasdownloads]) > #downloadsListBox {
- display: none;
+#emptyDownloads {
+ padding: 10px 20px;
+ /* The panel can be wider than this description after the blocked subview is
+ shown, so center the text. */
+ text-align: center;
}
-#downloadsPanel[hasdownloads] > #emptyDownloads {
- display: none;
+.downloadsPanelFooter {
+ background-color: hsla(210,4%,10%,.07);
+ border-top: 1px solid hsla(210,4%,10%,.14);
}
-#emptyDownloads {
- padding: 10px 20px;
- max-width: 40ch;
+.downloadsPanelFooter > toolbarseparator {
+ margin: 0;
+ border: 0;
+ min-width: 0;
+ border-left: 1px solid hsla(210,4%,10%,.14);
+ -moz-appearance: none !important;
+}
+
+.downloadsPanelFooterButton {
+ -moz-appearance: none;
+ background-color: transparent;
+ color: inherit;
+ margin: 0;
+ padding: 0;
+ min-height: 40px;
+}
+
+.downloadsPanelFooterButton:hover {
+ outline: 1px solid hsla(210,4%,10%,.07);
+ background-color: hsla(210,4%,10%,.07);
+}
+
+.downloadsPanelFooterButton:hover:active {
+ outline: 1px solid hsla(210,4%,10%,.12);
+ background-color: hsla(210,4%,10%,.12);
+ box-shadow: 0 1px 0 hsla(210,4%,10%,.05) inset;
+}
+
+.downloadsPanelFooterButton[default] {
+ background-color: #0996f8;
+ color: white;
+}
+
+.downloadsPanelFooterButton[default]:hover {
+ background-color: #0675d3;
+}
+
+.downloadsPanelFooterButton[default]:hover:active {
+ background-color: #0568ba;
}
#downloadsSummary {
- padding: 8px 38px 8px 12px;
+ padding: 0 12px;
cursor: pointer;
-moz-user-focus: normal;
}
@@ -48,15 +94,6 @@
color: -moz-nativehyperlinktext;
}
-#downloadsHistory {
- background: transparent;
- cursor: pointer;
-}
-
-#downloadsHistory > .button-box {
- margin: 1em;
-}
-
/*** List items and similar elements in the summary ***/
#downloadsSummary,
@@ -83,14 +120,29 @@ richlistitem[type="download"]:last-child {
}
.downloadTypeIcon {
- margin-inline-end: 8px;
- /* Prevent flickering when changing states. */
- height: 32px;
+ margin-top: 8px;
+ margin-inline-end: 12px;
+ margin-bottom: 8px;
+ margin-inline-start: 0;
width: 32px;
+ height: 32px;
+}
+
+.downloadBlockedBadge {
+ margin: 0 4px;
+ background: url("chrome://browser/skin/downloads/download-blocked.svg") top right / 16px no-repeat;
+}
+
+.downloadBlockedBadge:-moz-locale-dir(rtl) {
+ background-position-x: left;
+}
+
+richlistitem[type="download"][verdict="PotentiallyUnwanted"] .downloadBlockedBadge {
+ background-image: url("chrome://browser/skin/warning.svg");
}
-.blockedIcon {
- list-style-image: url("chrome://global/skin/icons/Error.png");
+richlistitem[type="download"][verdict="Uncommon"] .downloadBlockedBadge {
+ background-image: url("chrome://browser/skin/info.svg");
}
/* We hold .downloadTarget, .downloadProgress and .downloadDetails inside of
@@ -144,23 +196,65 @@ richlistitem[type="download"]:last-child {
padding: 0;
}
-/*** Panel and outer controls ***/
-#downloadsFooter {
- border-top: 1px solid ThreeDShadow;
- background-image: linear-gradient(hsla(0,0%,0%,.15), hsla(0,0%,0%,.08) 6px);
+/*** Blocked subview ***/
+
+#downloadsPanel-multiView > .panel-viewcontainer > .panel-viewstack[viewtype=main] > .panel-subviews {
+ /* When the main view is showing, the shadow on the left edge of the subview is
+ barely visible on the right edge of the main view, so set it to none. */
+ box-shadow: none;
}
-#downloadsHistory {
- color: -moz-nativehyperlinktext;
+/* When the subview is showing, turn the download button into an arrow pointing
+ back to the main view. */
+#downloadsPanel-multiView > .panel-viewcontainer > .panel-viewstack[viewtype="subview"] .download-state[showingsubview] .downloadButton {
+ list-style-image: url("chrome://browser/skin/customizableui/subView-arrow-back-inverted.png");
}
-#downloadsPanel[keyfocus] #downloadsSummary:focus,
-#downloadsPanel[keyfocus] #downloadsHistory:focus > .button-box {
- outline: 1px -moz-dialogtext dotted;
+#downloadsPanel-multiView > .panel-viewcontainer > .panel-viewstack[viewtype="subview"] .download-state[showingsubview] .downloadButton:-moz-locale-dir(rtl) {
+ list-style-image: url("chrome://browser/skin/customizableui/subView-arrow-back-inverted-rtl.png");
+}
+
+#downloadsPanel-blockedSubview {
+ background-image: url("chrome://browser/skin/warning.svg");
+ background-size: 32px 32px;
+ background-position: 16px 16px;
+ background-repeat: no-repeat;
+}
+
+#downloadsPanel-blockedSubview:-moz-locale-dir(rtl) {
+ background-position: calc(100% - 16px) 16px;
+}
+
+#downloadsPanel-blockedSubview[verdict=Malware] {
+ background-image: url("chrome://browser/skin/downloads/download-blocked.svg");
+}
+
+#downloadsPanel-blockedSubview-title {
+ margin-top: 16px;
+ margin-bottom: 16px;
+ font-size: calc(100% / var(--downloads-item-font-size-factor));
+}
+
+#downloadsPanel-blockedSubview-details1,
+#downloadsPanel-blockedSubview-details2 {
+ font-size: calc(100% * var(--downloads-item-font-size-factor));
+ margin-bottom: 16px;
+ opacity: var(--downloads-item-details-opacity);
+}
+
+#downloadsPanel-blockedSubview-title,
+#downloadsPanel-blockedSubview-details1,
+#downloadsPanel-blockedSubview-details2 {
+ -moz-margin-start: 64px;
+ -moz-margin-end: 16px;
}
-#downloadsPanel[keyfocus] #downloadsSummary:focus {
+/*** Panel and outer controls ***/
+
+#downloadsPanel[keyfocus] #downloadsSummary:focus,
+#downloadsPanel[keyfocus] .downloadsPanelFooterButton:focus {
+ outline: 1px -moz-dialogtext dotted;
outline-offset: -5px;
}
@@ -176,18 +270,6 @@ richlistitem[type="download"]:last-child {
--downloads-item-details-opacity: 0.6;
}
-.blockedIcon {
- list-style-image: url("moz-icon://stock/gtk-dialog-error?size=32");
-}
-
-richlistitem[type="download"][verdict="PotentiallyUnwanted"] .blockedIcon {
- list-style-image: url("moz-icon://stock/gtk-dialog-warning?size=32");
-}
-
-richlistitem[type="download"][verdict="Uncommon"] .blockedIcon {
- list-style-image: url("moz-icon://stock/gtk-dialog-info?size=32");
-}
-
.downloadButton:focus > .button-box {
outline: 1px -moz-dialogtext dotted;
}
@@ -199,7 +281,8 @@ richlistitem[type="download"][verdict="Uncommon"] .blockedIcon {
outline-offset: -1px;
}
-#downloadsPanel:not([keyfocus]) richlistitem[type="download"][state="1"][exists]:hover {
+#downloadsPanel:not([keyfocus]) richlistitem[type="download"][state="1"][exists]:hover,
+richlistitem[type="download"][showingsubview] {
border-radius: 3px;
border-top: 1px solid hsla(0,0%,100%,.3);
border-bottom: 1px solid hsla(0,0%,0%,.2);
@@ -209,6 +292,12 @@ richlistitem[type="download"][verdict="Uncommon"] .blockedIcon {
cursor: pointer;
}
+#downloadsPanel:not([keyfocus]) richlistitem[type="download"][state="1"][exists][verdict="Malware"]:hover,
+richlistitem[type="download"][showingsubview][verdict="Malware"] {
+ background-color: hsl(4, 82%, 47%);
+ color: white;
+}
+
/*** Button icons ***/
.downloadButton.downloadIconCancel {
@@ -258,3 +347,29 @@ richlistitem[type="download"]:hover .downloadButton.downloadIconRetry:hover {
richlistitem[type="download"]:hover .downloadButton.downloadIconRetry:active {
-moz-image-region: rect(32px, 64px, 48px, 48px);
}
+
+.downloadButton.downloadShowBlockedInfo {
+ -moz-image-region: rect(48px, 16px, 64px, 0px);
+}
+richlistitem[type="download"]:hover .downloadButton.downloadShowBlockedInfo {
+ -moz-image-region: rect(48px, 32px, 64px, 16px);
+}
+richlistitem[type="download"]:hover .downloadButton.downloadShowBlockedInfo:hover {
+ -moz-image-region: rect(48px, 48px, 64px, 32px);
+}
+richlistitem[type="download"]:hover .downloadButton.downloadShowBlockedInfo:active {
+ -moz-image-region: rect(48px, 64px, 64px, 48px);
+}
+
+.downloadButton.downloadShowBlockedInfo:-moz-locale-dir(rtl) {
+ -moz-image-region: rect(64px, 16px, 80px, 0px);
+}
+richlistitem[type="download"]:hover .downloadButton.downloadShowBlockedInfo:-moz-locale-dir(rtl) {
+ -moz-image-region: rect(64px, 32px, 80px, 16px);
+}
+richlistitem[type="download"]:hover .downloadButton.downloadShowBlockedInfo:hover:-moz-locale-dir(rtl) {
+ -moz-image-region: rect(64px, 48px, 80px, 32px);
+}
+richlistitem[type="download"]:hover .downloadButton.downloadShowBlockedInfo:active:-moz-locale-dir(rtl) {
+ -moz-image-region: rect(64px, 64px, 80px, 48px);
+}