Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

chore: Use variables for progress bar #62

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions theme/src/main/player/player.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,22 @@

//////////////////////////////////////// Progress Bar ////////////////////////////////////////

// progress bar (how much filled)
.progress-bar {
--progress-bar-height: 6px;
--progress-bar-radius: 0;
// Color for fill
--fg-color: var(--spice-custom-selected-button) !important;
--is-active-fg-color: var(--spice-custom-selected-button) !important;
// Color for background
--bg-color: var(--spice-custom-main-secondary) !important;
}

// Apply radius only to fill, and transition
.x-progressBar-fillColor {
border-radius: 50px;
height: 6px;
background-color: var(--spice-custom-selected-button) !important;
transition: transform, 0s, ease, 0.25s;
}

// progress bar (how much remaining)
.x-progressBar-sliderArea {
height: 6px;
background-color: var(--spice-custom-main-secondary) !important;
}

//////////////////////////////////////// Left Player ////////////////////////////////////////

.main-trackInfo-name .TypeElement-mesto-textSubdued-type,
Expand Down