diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 267f11f..bbd8f4d 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,9 +1,9 @@ import { Routes } from "@angular/router"; -import {Home} from "./views/home.component"; +import {CurrentlyPlaying} from "./views/currently-playing.component"; export const routes: Routes = [ { path: "", - component: Home + component: CurrentlyPlaying } ]; diff --git a/src/app/views/home.component.ts b/src/app/views/currently-playing.component.ts similarity index 97% rename from src/app/views/home.component.ts rename to src/app/views/currently-playing.component.ts index 173ea2a..ed12d21 100644 --- a/src/app/views/home.component.ts +++ b/src/app/views/currently-playing.component.ts @@ -7,7 +7,7 @@ import {Metadata} from "../injectables/metadata"; import {injectMutation} from "@tanstack/angular-query-experimental"; @Component({ - selector: "app-home-material", + selector: "currently-playing-material", template: `
@@ -41,7 +41,7 @@ import {injectMutation} from "@tanstack/angular-query-experimental"; } `] }) -class AppHomeMaterial { +class CurrentlyPlayingMaterial { stateMetadata = inject(Metadata); } @@ -109,9 +109,9 @@ export class AlbumArt { @Component({ // TODO: Rename from "home" to "now-playing" selector: 'app-home', - imports: [AppHomeMaterial, AlbumArt], + imports: [CurrentlyPlayingMaterial, AlbumArt], template: ` - +
@if (!openFileMutation.data()) { @@ -141,7 +141,7 @@ export class AlbumArt {
} -
+ `, styles: [` .container { @@ -232,7 +232,7 @@ export class AlbumArt { } `] }) -export class Home { +export class CurrentlyPlaying { playingMetadata = injectSelector((state: RootState) => state.tauri); stateMetadata = inject(Metadata); diff --git a/src/assets/pause_icon.svg b/src/assets/pause_icon.svg new file mode 100644 index 0000000..2da26a5 --- /dev/null +++ b/src/assets/pause_icon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/assets/play_icon.svg b/src/assets/play_icon.svg new file mode 100644 index 0000000..712056c --- /dev/null +++ b/src/assets/play_icon.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + +