Skip to content

Commit

Permalink
Fix: Downloads - Content's decoration
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Jun 16, 2022
1 parent bb9ecd6 commit a5d6ad9
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
25 changes: 25 additions & 0 deletions css/leptonContent.css
Original file line number Diff line number Diff line change
Expand Up @@ -2852,3 +2852,28 @@
}
}
}
/** Download Panel ************************************************************/
@-moz-document url-prefix("about:downloads") {
@media (prefers-reduced-motion: no-preference) {
@supports -moz-bool-pref("userChrome.decoration.download_panel") {
/* Accent Color for downloaded item */
#downloadsListBox .download-state[exists] .downloadDetails {
color: var(--button-primary-bgcolor);
}
#downloadsListBox .download-state[exists] .downloadDetails.downloadDetailsHover {
color: var(--button-primary-hover-bgcolor);
}

/* File moved or missing */
#downloadsListBox .download-state:not([exists], [state="0"]) .downloadTarget {
text-decoration: line-through;
text-decoration-color: color-mix(in srgb, currentColor 65%, transparent);
}
#downloadsListBox .download-state:not([exists], [state="0"]) .downloadTypeIcon {
filter: grayscale(100%) !important;
}
}
}
@supports -moz-bool-pref("userChrome.icon.context_menu") {
}
}
11 changes: 11 additions & 0 deletions src/contents/_downloads.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@-moz-document url-prefix("about:downloads") {
@include Animate {
@include Option("userChrome.decoration.download_panel") {
@import "../decoration/download_panel";
}
}

@include Option("userChrome.icon.context_menu") {
// TODO
}
}
3 changes: 3 additions & 0 deletions src/leptonContent.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@
@include Option("userContent.page.proton") {
@import "contents/proton_contents";
}

/** Download Panel ************************************************************/
@import "contents/downloads";

0 comments on commit a5d6ad9

Please sign in to comment.