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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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>
|
||||||
{x.title}
|
{x.title}
|
||||||
{"artist" in x && " - " + x.artist}
|
{"artist" in x && " - " + x.artist}
|
||||||
<code>
|
<code>
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue