add colors to album page header

- add colors attribute to the album class
- render color gradient in the album page
This commit is contained in:
geoffrey45
2022-06-30 14:01:48 +03:00
committed by Mungai Geoffrey
parent f919ce35df
commit a23b6200eb
7 changed files with 70 additions and 42 deletions
+4 -2
View File
@@ -15,7 +15,7 @@ export interface Track {
image: string;
tracknumber?: number;
disknumber?: number;
index?: number
index?: number;
}
export interface Folder {
@@ -27,6 +27,7 @@ export interface Folder {
}
export interface AlbumInfo {
albumid: string;
title: string;
artist: string;
count: number;
@@ -36,7 +37,8 @@ export interface AlbumInfo {
is_compilation: boolean;
is_soundtrack: boolean;
is_single: boolean;
hash: string
hash: string;
colors: string[];
}
export interface Artist {