feat(kiosk): lightweight KioskSearch + KioskLibrary views
Replace the heavy reused SearchResultsView and FavoritesView on the kiosk search/favorites routes with Pi-light versions built from the shared kiosk cards: KioskAlbumGrid (wrapping grid of KioskCard), KioskArtistCard (round), KioskTrackRow. KioskSearch tabs All/Albums/Tracks/Artists/Playlists reading SearchState; KioskLibrary tabs Tracks/Albums/Artists/Playlists/Labels reading FavoritesState. Both bind the shared models so the artwork pipeline pushes covers in with no request hook (album covers windowed = first ~60 for now). Validated via slintcheck. cc
This commit is contained in:
6 files changed
+528
-4
No files matched your search
@@ -0,0 +1,35 @@
|
||||
// KioskAlbumGrid — a lightweight wrapping grid of KioskCards for the kiosk
|
||||
// Search/Library album tabs (2.0.2 frente #3). Absolute-positioned cells
|
||||
// (Math.mod/Math.floor columns, the same idiom the desktop grids use) inside a
|
||||
// vertical Flickable; card width derives from the grid width so it reflows.
|
||||
// Binds `[AlbumCardItem]` directly so the artwork pipeline's in-place pushes
|
||||
// land on the cards.
|
||||
import { AlbumCardItem } from "../state.slint";
|
||||
import { KioskCard } from "KioskCard.slint";
|
||||
|
||||
export component KioskAlbumGrid inherits Flickable {
|
||||
in property <[AlbumCardItem]> albums;
|
||||
in property <int> columns: 6;
|
||||
in property <length> gap: 16px;
|
||||
in property <length> pad: 16px;
|
||||
callback open(string);
|
||||
|
||||
property <length> card-w: (self.width - 2 * root.pad - (root.columns - 1) * root.gap) / root.columns;
|
||||
property <length> card-h: root.card-w + 46px;
|
||||
property <float> rows: Math.ceil(root.albums.length / root.columns);
|
||||
|
||||
viewport-width: self.width;
|
||||
viewport-height: root.rows * (root.card-h + root.gap) + root.pad;
|
||||
|
||||
Rectangle {
|
||||
for album[i] in root.albums: KioskCard {
|
||||
x: root.pad + Math.mod(i, root.columns) * (root.card-w + root.gap);
|
||||
y: root.pad + Math.floor(i / root.columns) * (root.card-h + root.gap);
|
||||
art-size: root.card-w;
|
||||
album: album;
|
||||
clicked(id) => {
|
||||
root.open(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
// KioskArtistCard — lightweight round artist card for the kiosk Search/Library
|
||||
// artist tabs (2.0.2 frente #3). Takes primitive fields so it works for both
|
||||
// SearchState.artists (SlimItem: id/title/artwork) and FavoritesState.artists
|
||||
// (FavoriteArtistItem: id/name/image).
|
||||
import { Theme } from "../foundation/semantic-colors.slint";
|
||||
|
||||
export component KioskArtistCard inherits Rectangle {
|
||||
in property <string> id;
|
||||
in property <string> name;
|
||||
in property <image> avatar;
|
||||
in property <length> size: 120px;
|
||||
callback clicked(string);
|
||||
|
||||
width: root.size;
|
||||
|
||||
VerticalLayout {
|
||||
alignment: start;
|
||||
spacing: 8px;
|
||||
Rectangle {
|
||||
width: root.size;
|
||||
height: root.size;
|
||||
border-radius: root.size / 2;
|
||||
background: Theme.surface-elevated;
|
||||
clip: true;
|
||||
Image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
source: root.avatar;
|
||||
image-fit: cover;
|
||||
}
|
||||
}
|
||||
Text {
|
||||
text: root.name;
|
||||
color: Theme.text-primary;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
horizontal-alignment: center;
|
||||
overflow: elide;
|
||||
wrap: no-wrap;
|
||||
}
|
||||
}
|
||||
|
||||
ta := TouchArea {
|
||||
clicked => {
|
||||
root.clicked(root.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,190 @@
|
||||
// KioskLibrary — lightweight kiosk Library (Favorites) view (2.0.2 frente #3).
|
||||
//
|
||||
// Reads the SAME FavoritesState the desktop FavoritesView reads, rendered with
|
||||
// the simple kiosk cards. Tabs Tracks/Albums/Artists/Playlists/Labels switch via
|
||||
// FavoritesActions.select-tab (Rust lazy-loads each tab). Covers are push-only
|
||||
// except album covers (windowed — v1 shows the first ~60; the window hook is a
|
||||
// follow-up).
|
||||
import { Theme } from "../foundation/semantic-colors.slint";
|
||||
import { Radius } from "../foundation/radius.slint";
|
||||
import { FavoritesState, FavoritesActions } from "../state.slint";
|
||||
import { KioskAlbumGrid } from "KioskAlbumGrid.slint";
|
||||
import { KioskArtistCard } from "KioskArtistCard.slint";
|
||||
import { KioskTrackRow } from "KioskTrackRow.slint";
|
||||
|
||||
component LibTab inherits Rectangle {
|
||||
in property <string> label;
|
||||
in property <string> id;
|
||||
callback picked(string);
|
||||
property <bool> active: FavoritesState.active-tab == root.id;
|
||||
horizontal-stretch: 0;
|
||||
HorizontalLayout {
|
||||
padding-left: 2px;
|
||||
padding-right: 2px;
|
||||
VerticalLayout {
|
||||
Text {
|
||||
text: root.label;
|
||||
color: root.active ? Theme.text-primary : Theme.text-muted;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
vertical-alignment: center;
|
||||
}
|
||||
Rectangle {
|
||||
height: 2px;
|
||||
background: root.active ? Theme.accent : transparent;
|
||||
border-radius: 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
ta := TouchArea {
|
||||
clicked => {
|
||||
root.picked(root.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export component KioskLibrary inherits Rectangle {
|
||||
callback open-album(string);
|
||||
callback open-artist(string);
|
||||
|
||||
property <length> pad: 16px;
|
||||
|
||||
VerticalLayout {
|
||||
spacing: 0px;
|
||||
|
||||
Rectangle {
|
||||
height: 48px;
|
||||
background: Theme.surface-main;
|
||||
HorizontalLayout {
|
||||
padding-left: root.pad;
|
||||
padding-right: root.pad;
|
||||
spacing: 22px;
|
||||
alignment: start;
|
||||
LibTab { label: @tr("Tracks"); id: "tracks"; picked(t) => { FavoritesActions.select-tab(t); } }
|
||||
LibTab { label: @tr("Albums"); id: "albums"; picked(t) => { FavoritesActions.select-tab(t); } }
|
||||
LibTab { label: @tr("Artists"); id: "artists"; picked(t) => { FavoritesActions.select-tab(t); } }
|
||||
LibTab { label: @tr("Playlists"); id: "playlists"; picked(t) => { FavoritesActions.select-tab(t); } }
|
||||
LibTab { label: @tr("Labels"); id: "labels"; picked(t) => { FavoritesActions.select-tab(t); } }
|
||||
}
|
||||
Rectangle {
|
||||
y: parent.height - 1px;
|
||||
height: 1px;
|
||||
background: Theme.border-subtle;
|
||||
}
|
||||
}
|
||||
|
||||
content := Rectangle {
|
||||
vertical-stretch: 1;
|
||||
clip: true;
|
||||
|
||||
if FavoritesState.active-tab == "tracks": Flickable {
|
||||
viewport-width: self.width;
|
||||
viewport-height: tracklist.preferred-height;
|
||||
tracklist := VerticalLayout {
|
||||
padding: root.pad;
|
||||
spacing: 2px;
|
||||
for track in FavoritesState.tracks-visible: KioskTrackRow {
|
||||
track: track;
|
||||
play(id) => {
|
||||
FavoritesActions.play-track(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if FavoritesState.active-tab == "albums": KioskAlbumGrid {
|
||||
albums: FavoritesState.albums-visible;
|
||||
open(id) => {
|
||||
root.open-album(id);
|
||||
}
|
||||
}
|
||||
|
||||
if FavoritesState.active-tab == "artists": arts := Flickable {
|
||||
property <int> cols: 7;
|
||||
property <length> gap: 14px;
|
||||
property <length> cell: (self.width - 2 * root.pad - (self.cols - 1) * self.gap) / self.cols;
|
||||
viewport-width: self.width;
|
||||
viewport-height: Math.ceil(FavoritesState.artists-visible.length / self.cols) * (self.cell + 26px + self.gap) + root.pad;
|
||||
Rectangle {
|
||||
for artist[i] in FavoritesState.artists-visible: KioskArtistCard {
|
||||
x: root.pad + Math.mod(i, arts.cols) * (arts.cell + arts.gap);
|
||||
y: root.pad + Math.floor(i / arts.cols) * (arts.cell + 26px + arts.gap);
|
||||
size: arts.cell;
|
||||
id: artist.id;
|
||||
name: artist.name;
|
||||
avatar: artist.image;
|
||||
clicked(id) => {
|
||||
root.open-artist(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if FavoritesState.active-tab == "labels": labs := Flickable {
|
||||
property <int> cols: 7;
|
||||
property <length> gap: 14px;
|
||||
property <length> cell: (self.width - 2 * root.pad - (self.cols - 1) * self.gap) / self.cols;
|
||||
viewport-width: self.width;
|
||||
viewport-height: Math.ceil(FavoritesState.labels-visible.length / self.cols) * (self.cell + 26px + self.gap) + root.pad;
|
||||
Rectangle {
|
||||
for label[i] in FavoritesState.labels-visible: KioskArtistCard {
|
||||
x: root.pad + Math.mod(i, labs.cols) * (labs.cell + labs.gap);
|
||||
y: root.pad + Math.floor(i / labs.cols) * (labs.cell + 26px + labs.gap);
|
||||
size: labs.cell;
|
||||
id: label.id;
|
||||
name: label.name;
|
||||
avatar: label.image;
|
||||
clicked(id) => {
|
||||
FavoritesActions.open-label(label.id, label.name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if FavoritesState.active-tab == "playlists": pls := Flickable {
|
||||
property <int> cols: 6;
|
||||
property <length> gap: 16px;
|
||||
property <length> cell: (self.width - 2 * root.pad - (self.cols - 1) * self.gap) / self.cols;
|
||||
viewport-width: self.width;
|
||||
viewport-height: Math.ceil(FavoritesState.playlists-visible.length / self.cols) * (self.cell + 42px + self.gap) + root.pad;
|
||||
Rectangle {
|
||||
for pl[i] in FavoritesState.playlists-visible: Rectangle {
|
||||
x: root.pad + Math.mod(i, pls.cols) * (pls.cell + pls.gap);
|
||||
y: root.pad + Math.floor(i / pls.cols) * (pls.cell + 42px + pls.gap);
|
||||
width: pls.cell;
|
||||
VerticalLayout {
|
||||
alignment: start;
|
||||
spacing: 7px;
|
||||
Rectangle {
|
||||
width: parent.width;
|
||||
height: parent.width;
|
||||
border-radius: Radius.sm;
|
||||
background: Theme.surface-elevated;
|
||||
clip: true;
|
||||
Image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
source: pl.cover1;
|
||||
image-fit: cover;
|
||||
}
|
||||
}
|
||||
Text {
|
||||
text: pl.title;
|
||||
color: Theme.text-primary;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
overflow: elide;
|
||||
wrap: no-wrap;
|
||||
}
|
||||
}
|
||||
pl-ta := TouchArea {
|
||||
clicked => {
|
||||
FavoritesActions.open-playlist(pl.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,176 @@
|
||||
// KioskSearch — lightweight kiosk Search results (2.0.2 frente #3).
|
||||
//
|
||||
// Reads the SAME SearchState the desktop SearchResultsView reads (albums,
|
||||
// tracks, artists, playlists + tab int), rendered with the simple kiosk cards.
|
||||
// The query is entered in the KioskShell back-bar field (SearchActions.submit);
|
||||
// this view is the tabbed results. Covers are push-only, so binding the shared
|
||||
// arrays is enough.
|
||||
import { Theme } from "../foundation/semantic-colors.slint";
|
||||
import { Radius } from "../foundation/radius.slint";
|
||||
import { SearchState, SearchActions } from "../state.slint";
|
||||
import { KioskAlbumGrid } from "KioskAlbumGrid.slint";
|
||||
import { KioskArtistCard } from "KioskArtistCard.slint";
|
||||
import { KioskTrackRow } from "KioskTrackRow.slint";
|
||||
|
||||
component SearchTab inherits Rectangle {
|
||||
in property <string> label;
|
||||
in property <int> index;
|
||||
callback picked(int);
|
||||
property <bool> active: SearchState.tab == root.index;
|
||||
horizontal-stretch: 0;
|
||||
HorizontalLayout {
|
||||
padding-left: 2px;
|
||||
padding-right: 2px;
|
||||
VerticalLayout {
|
||||
Text {
|
||||
text: root.label;
|
||||
color: root.active ? Theme.text-primary : Theme.text-muted;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
vertical-alignment: center;
|
||||
}
|
||||
Rectangle {
|
||||
height: 2px;
|
||||
background: root.active ? Theme.accent : transparent;
|
||||
border-radius: 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
ta := TouchArea {
|
||||
clicked => {
|
||||
root.picked(root.index);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export component KioskSearch inherits Rectangle {
|
||||
callback open-album(string);
|
||||
callback open-artist(string);
|
||||
callback media-action(string, string, string);
|
||||
|
||||
property <length> pad: 16px;
|
||||
|
||||
VerticalLayout {
|
||||
spacing: 0px;
|
||||
|
||||
// Tabs — All / Albums / Tracks / Artists / Playlists.
|
||||
Rectangle {
|
||||
height: 48px;
|
||||
background: Theme.surface-main;
|
||||
HorizontalLayout {
|
||||
padding-left: root.pad;
|
||||
padding-right: root.pad;
|
||||
spacing: 22px;
|
||||
alignment: start;
|
||||
SearchTab { label: @tr("All"); index: 0; picked(i) => { SearchActions.tab-changed(i); } }
|
||||
SearchTab { label: @tr("Albums"); index: 1; picked(i) => { SearchActions.tab-changed(i); } }
|
||||
SearchTab { label: @tr("Tracks"); index: 2; picked(i) => { SearchActions.tab-changed(i); } }
|
||||
SearchTab { label: @tr("Artists"); index: 3; picked(i) => { SearchActions.tab-changed(i); } }
|
||||
SearchTab { label: @tr("Playlists"); index: 4; picked(i) => { SearchActions.tab-changed(i); } }
|
||||
}
|
||||
Rectangle {
|
||||
y: parent.height - 1px;
|
||||
height: 1px;
|
||||
background: Theme.border-subtle;
|
||||
}
|
||||
}
|
||||
|
||||
// Content.
|
||||
content := Rectangle {
|
||||
vertical-stretch: 1;
|
||||
clip: true;
|
||||
|
||||
// Albums (All shares the album grid in v1).
|
||||
if SearchState.tab == 0 || SearchState.tab == 1: KioskAlbumGrid {
|
||||
albums: SearchState.albums;
|
||||
open(id) => {
|
||||
root.open-album(id);
|
||||
}
|
||||
}
|
||||
|
||||
// Tracks — simple vertical list.
|
||||
if SearchState.tab == 2: Flickable {
|
||||
viewport-width: self.width;
|
||||
viewport-height: tracklist.preferred-height;
|
||||
tracklist := VerticalLayout {
|
||||
padding: root.pad;
|
||||
spacing: 2px;
|
||||
for track in SearchState.tracks: KioskTrackRow {
|
||||
track: track;
|
||||
play(id) => {
|
||||
root.media-action("track", id, "play");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Artists — round-card wrapping grid.
|
||||
if SearchState.tab == 3: agrid := Flickable {
|
||||
property <int> cols: 7;
|
||||
property <length> gap: 14px;
|
||||
property <length> cell: (self.width - 2 * root.pad - (self.cols - 1) * self.gap) / self.cols;
|
||||
viewport-width: self.width;
|
||||
viewport-height: Math.ceil(SearchState.artists.length / self.cols) * (self.cell + 26px + self.gap) + root.pad;
|
||||
Rectangle {
|
||||
for artist[i] in SearchState.artists: KioskArtistCard {
|
||||
x: root.pad + Math.mod(i, agrid.cols) * (agrid.cell + agrid.gap);
|
||||
y: root.pad + Math.floor(i / agrid.cols) * (agrid.cell + 26px + agrid.gap);
|
||||
size: agrid.cell;
|
||||
id: artist.id;
|
||||
name: artist.title;
|
||||
avatar: artist.artwork;
|
||||
clicked(id) => {
|
||||
root.open-artist(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Playlists — square cover grid (uses the first collage cover).
|
||||
if SearchState.tab == 4: pgrid := Flickable {
|
||||
property <int> cols: 6;
|
||||
property <length> gap: 16px;
|
||||
property <length> cell: (self.width - 2 * root.pad - (self.cols - 1) * self.gap) / self.cols;
|
||||
viewport-width: self.width;
|
||||
viewport-height: Math.ceil(SearchState.playlists.length / self.cols) * (self.cell + 42px + self.gap) + root.pad;
|
||||
Rectangle {
|
||||
for pl[i] in SearchState.playlists: Rectangle {
|
||||
x: root.pad + Math.mod(i, pgrid.cols) * (pgrid.cell + pgrid.gap);
|
||||
y: root.pad + Math.floor(i / pgrid.cols) * (pgrid.cell + 42px + pgrid.gap);
|
||||
width: pgrid.cell;
|
||||
VerticalLayout {
|
||||
alignment: start;
|
||||
spacing: 7px;
|
||||
Rectangle {
|
||||
width: parent.width;
|
||||
height: parent.width;
|
||||
border-radius: Radius.sm;
|
||||
background: Theme.surface-elevated;
|
||||
clip: true;
|
||||
Image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
source: pl.cover1;
|
||||
image-fit: cover;
|
||||
}
|
||||
}
|
||||
Text {
|
||||
text: pl.title;
|
||||
color: Theme.text-primary;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
overflow: elide;
|
||||
wrap: no-wrap;
|
||||
}
|
||||
}
|
||||
pl-ta := TouchArea {
|
||||
clicked => {
|
||||
root.media-action("playlist", pl.id, "open");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,7 +37,7 @@ import { AwardAlbumsView } from "../award/AwardAlbumsView.slint";
|
||||
import { PurchasesView } from "../purchases/PurchasesView.slint";
|
||||
import { PurchaseDetailView } from "../purchases/PurchaseDetailView.slint";
|
||||
import { ArtistsByLocationView } from "../location/ArtistsByLocationView.slint";
|
||||
import { FavoritesView } from "../favorites/FavoritesView.slint";
|
||||
import { KioskLibrary } from "KioskLibrary.slint";
|
||||
import { FavoritesOfflineRail } from "../favorites/FavoritesOfflineRail.slint";
|
||||
import { MixView } from "../mix/MixView.slint";
|
||||
import { PlaylistView } from "../playlist/PlaylistView.slint";
|
||||
@@ -51,7 +51,7 @@ import { BlacklistManagerView } from "../settings/BlacklistManagerView.slint";
|
||||
import { OfflinePlaceholder } from "../offline/OfflinePlaceholder.slint";
|
||||
import { LocalLibraryView } from "../locallibrary/LocalLibraryView.slint";
|
||||
import { SettingsView } from "../settings/SettingsView.slint";
|
||||
import { SearchResultsView } from "../search/SearchResultsView.slint";
|
||||
import { KioskSearch } from "KioskSearch.slint";
|
||||
|
||||
export component KioskShell inherits Rectangle {
|
||||
// Public interface mirrors AppShell 1:1 (app.slint forwards these to the
|
||||
@@ -303,7 +303,7 @@ export component KioskShell inherits Rectangle {
|
||||
root.open-artist(id);
|
||||
}
|
||||
}
|
||||
if NavState.view == ContentView.favorites && !OfflineState.offline: FavoritesView {
|
||||
if NavState.view == ContentView.favorites && !OfflineState.offline: KioskLibrary {
|
||||
open-album(id) => {
|
||||
root.open-album(id);
|
||||
}
|
||||
@@ -393,7 +393,7 @@ export component KioskShell inherits Rectangle {
|
||||
root.settings-release-device();
|
||||
}
|
||||
}
|
||||
if NavState.view == ContentView.search && !OfflineState.offline: SearchResultsView {
|
||||
if NavState.view == ContentView.search && !OfflineState.offline: KioskSearch {
|
||||
open-album(id) => {
|
||||
root.open-album(id);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
// KioskTrackRow — lightweight track row for the kiosk Search/Library track
|
||||
// tabs (2.0.2 frente #3). Art + title/artist + duration, tap to play. Takes the
|
||||
// shared TrackItem so it works for both SearchState.tracks and
|
||||
// FavoritesState.tracks-visible.
|
||||
import { Theme } from "../foundation/semantic-colors.slint";
|
||||
import { Radius } from "../foundation/radius.slint";
|
||||
import { TrackItem } from "../state.slint";
|
||||
|
||||
export component KioskTrackRow inherits Rectangle {
|
||||
in property <TrackItem> track;
|
||||
callback play(string);
|
||||
|
||||
height: 62px;
|
||||
border-radius: Radius.sm;
|
||||
background: ta.has-hover ? Theme.alpha-6 : transparent;
|
||||
|
||||
HorizontalLayout {
|
||||
padding-left: 8px;
|
||||
padding-right: 14px;
|
||||
spacing: 12px;
|
||||
|
||||
// Art slot — fixed 46x46 centered in the row height.
|
||||
Rectangle {
|
||||
width: 46px;
|
||||
Rectangle {
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
y: (parent.height - self.height) / 2;
|
||||
border-radius: 5px;
|
||||
background: Theme.surface-elevated;
|
||||
clip: true;
|
||||
Image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
source: root.track.artwork;
|
||||
image-fit: cover;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
VerticalLayout {
|
||||
horizontal-stretch: 1;
|
||||
alignment: center;
|
||||
spacing: 2px;
|
||||
Text {
|
||||
text: root.track.title;
|
||||
color: Theme.text-primary;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
overflow: elide;
|
||||
wrap: no-wrap;
|
||||
}
|
||||
Text {
|
||||
text: root.track.artist;
|
||||
color: Theme.text-muted;
|
||||
font-size: 13px;
|
||||
overflow: elide;
|
||||
wrap: no-wrap;
|
||||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
text: root.track.duration;
|
||||
color: Theme.text-muted;
|
||||
font-size: 13px;
|
||||
vertical-alignment: center;
|
||||
}
|
||||
}
|
||||
|
||||
ta := TouchArea {
|
||||
clicked => {
|
||||
root.play(root.track.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user