colour circles like baps

This commit is contained in:
Matthew Stratford 2020-03-22 03:43:25 +00:00
parent ec128e1ca3
commit 002d3b9fb7
4 changed files with 15 additions and 0 deletions

View file

@ -95,6 +95,18 @@
background-color: #78acf1; background-color: #78acf1;
} }
.sp-track .central {
color: green;
}
.sp-track .aux {
color: #07F;
}
.sp-track .ghost {
color: gray;
}
.sp-track-active { .sp-track-active {
background-color: #10c998 !important; background-color: #10c998 !important;
} }

View file

@ -134,6 +134,7 @@ function wrapPromise<T, TArgs>(factory: (...args: TArgs[]) => Promise<T>) {
} }
export interface Track { export interface Track {
type: "central";
title: string; title: string;
artist: string; artist: string;
album: Album; album: Album;

View file

@ -85,6 +85,7 @@ const Item = memo(function Item({
id={isReal ? TS_ITEM_MENU_ID : ""} id={isReal ? TS_ITEM_MENU_ID : ""}
collect={() => ({ id })} collect={() => ({ id })}
> >
<i className={"fa fa-circle " + (x.type)}></i>&nbsp;
{x.title} {x.title}
{"artist" in x && " - " + x.artist} {"artist" in x && " - " + x.artist}
<code> <code>

View file

@ -5,6 +5,7 @@ import { AppThunk } from "../store";
import { cloneDeep } from "lodash"; import { cloneDeep } from "lodash";
export interface ItemGhost { export interface ItemGhost {
type: "ghost";
title: string; title: string;
artist: string; artist: string;
length: string; length: string;