Skip to content

Commit

Permalink
Merge pull request #15874 from Snuffleupagus/progressBar-decouple-colors
Browse files Browse the repository at this point in the history
Decouple the loadingBar `background-color` from the rest of the viewer
  • Loading branch information
timvandermeij authored Dec 31, 2022
2 parents c791e01 + c2d17ca commit 3fd2a35
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
4 changes: 0 additions & 4 deletions web/viewer-geckoview.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,8 @@
:root {
--main-color: rgba(249, 249, 250, 1);
--body-bg-color: rgba(42, 42, 46, 1);
--progressBar-color: rgba(0, 96, 223, 1);
--progressBar-indeterminate-bg-color: rgba(40, 40, 43, 1);
--progressBar-indeterminate-blend-color: rgba(20, 68, 133, 1);
--scrollbar-color: rgba(121, 121, 123, 1);
--scrollbar-bg-color: rgba(35, 35, 39, 1);

--dialog-button-bg-color: rgba(92, 92, 97, 1);
--dialog-button-hover-bg-color: rgba(115, 115, 115, 1);
}
Expand Down
20 changes: 10 additions & 10 deletions web/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
--progressBar-percent: 0%;
--progressBar-end-offset: 0;
--progressBar-color: rgba(10, 132, 255, 1);
--progressBar-indeterminate-bg-color: rgba(221, 221, 222, 1);
--progressBar-indeterminate-blend-color: rgba(116, 177, 239, 1);
--progressBar-bg-color: rgba(221, 221, 222, 1);
--progressBar-blend-color: rgba(116, 177, 239, 1);
--scrollbar-color: auto;
--scrollbar-bg-color: auto;
--toolbar-icon-bg-color: rgba(0, 0, 0, 1);
Expand Down Expand Up @@ -123,8 +123,8 @@
--main-color: rgba(249, 249, 250, 1);
--body-bg-color: rgba(42, 42, 46, 1);
--progressBar-color: rgba(0, 96, 223, 1);
--progressBar-indeterminate-bg-color: rgba(40, 40, 43, 1);
--progressBar-indeterminate-blend-color: rgba(20, 68, 133, 1);
--progressBar-bg-color: rgba(40, 40, 43, 1);
--progressBar-blend-color: rgba(20, 68, 133, 1);
--scrollbar-color: rgba(121, 121, 123, 1);
--scrollbar-bg-color: rgba(35, 35, 39, 1);
--toolbar-icon-bg-color: rgba(255, 255, 255, 1);
Expand Down Expand Up @@ -374,7 +374,7 @@ body {
position: absolute;
inset-inline: 0 var(--progressBar-end-offset);
height: 4px;
background-color: var(--body-bg-color);
background-color: var(--progressBar-bg-color);
border-bottom: 1px solid var(--toolbar-border-color);
transition-property: inset-inline-start;
transition-duration: var(--sidebar-transition-duration);
Expand Down Expand Up @@ -409,7 +409,7 @@ body {

#loadingBar.indeterminate .progress {
transform: none;
background-color: var(--progressBar-indeterminate-bg-color);
background-color: var(--progressBar-bg-color);
transition: none;
}

Expand All @@ -421,12 +421,12 @@ body {
width: calc(100% + 150px);
background: repeating-linear-gradient(
135deg,
var(--progressBar-indeterminate-blend-color) 0,
var(--progressBar-indeterminate-bg-color) 5px,
var(--progressBar-indeterminate-bg-color) 45px,
var(--progressBar-blend-color) 0,
var(--progressBar-bg-color) 5px,
var(--progressBar-bg-color) 45px,
var(--progressBar-color) 55px,
var(--progressBar-color) 95px,
var(--progressBar-indeterminate-blend-color) 100px
var(--progressBar-blend-color) 100px
);
animation: progressIndeterminate 1s linear infinite;
}
Expand Down

0 comments on commit 3fd2a35

Please sign in to comment.