colour circles like baps
This commit is contained in:
parent
ec128e1ca3
commit
002d3b9fb7
4 changed files with 15 additions and 0 deletions
12
src/App.css
12
src/App.css
|
@ -95,6 +95,18 @@
|
|||
background-color: #78acf1;
|
||||
}
|
||||
|
||||
.sp-track .central {
|
||||
color: green;
|
||||
}
|
||||
|
||||
.sp-track .aux {
|
||||
color: #07F;
|
||||
}
|
||||
|
||||
.sp-track .ghost {
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.sp-track-active {
|
||||
background-color: #10c998 !important;
|
||||
}
|
||||
|
|
|
@ -134,6 +134,7 @@ function wrapPromise<T, TArgs>(factory: (...args: TArgs[]) => Promise<T>) {
|
|||
}
|
||||
|
||||
export interface Track {
|
||||
type: "central";
|
||||
title: string;
|
||||
artist: string;
|
||||
album: Album;
|
||||
|
|
|
@ -85,6 +85,7 @@ const Item = memo(function Item({
|
|||
id={isReal ? TS_ITEM_MENU_ID : ""}
|
||||
collect={() => ({ id })}
|
||||
>
|
||||
<i className={"fa fa-circle " + (x.type)}></i>
|
||||
{x.title}
|
||||
{"artist" in x && " - " + x.artist}
|
||||
<code>
|
||||
|
|
|
@ -5,6 +5,7 @@ import { AppThunk } from "../store";
|
|||
import { cloneDeep } from "lodash";
|
||||
|
||||
export interface ItemGhost {
|
||||
type: "ghost";
|
||||
title: string;
|
||||
artist: string;
|
||||
length: string;
|
||||
|
|
Loading…
Reference in a new issue