-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainView.ux
64 lines (64 loc) · 3.1 KB
/
MainView.ux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<App Background="Black">
<Android.StatusBarConfig Color="#CB191900" IsVisible="True" />
<Font File="fonts/RobotoMono/static/RobotoMono-Thin.ttf" ux:Global="robotothin" />
<Font File="fonts/RobotoMono/static/RobotoMono-Regular.ttf" ux:Global="robotoregular" />
<Font File="fonts/fontawesome-webfont.ttf" ux:Global="fa" />
<Router ux:Name="router" />
<JavaScript File="js/MainView.js" />
<WhileTrue Value="{exceptionOcurred}">
<Panel Color="#000000" ux:Name="ExceptionDisplay">
<Text TextColor="#FFF" Value="{exception}" Alignment="Center" TextAlignment="Center" />
</Panel>
</WhileTrue>
<DockPanel Opacity="1">
<StackPanel Dock="Top" Background="0" Opacity="1">
<StatusBarBackground />
<Panel ux:Name="navBar" Dock="Top" Height="50">
<WhileCanGoBack>
<Panel ux:Name="backButton" Width="90" Height="50" Alignment="Left" Padding="0, 0, 0, 0" HitTestMode="LocalBounds" Opacity="1">
<DockPanel>
<Text Font="fa" Alignment="Center" TextAlignment="Center" TextColor="#FFFFFF" FontSize="25"></Text>
</DockPanel>
<AddingAnimation>
<Change backButton.Opacity="0" Duration=".3" />
</AddingAnimation>
<RemovingAnimation>
<Change backButton.Opacity="0" Duration=".3" />
</RemovingAnimation>
<Clicked>
<GoBack />
</Clicked>
</Panel>
</WhileCanGoBack>
</Panel>
</StackPanel>
<BottomBarBackground Dock="Bottom" />
<Navigator DefaultPath="mainPage">
<Page ux:Template="mainPage">
<ScrollView>
<StackPanel ItemSpacing="7" Margin="7">
<Each Items="{files}">
<DockPanel Color="Black" Clicked="{clicked}" Height="70" Margin="0, 0, 20, 0">
<Rectangle Layer="Background" CornerRadius="3">
</Rectangle>
<Rectangle CornerRadius="2" Dock="Left" Height="70" Width="70">
<ImageFill File="{artwork}" StretchMode="UniformToFill" WrapMode="ClampToEdge" />
</Rectangle>
<StackPanel Dock="Fill" Margin="0, 0, 20, 0" Alignment="VerticalCenter">
<Text Value="{trackName}" Alignment="Left" Font="robotoregular" TextColor="#FFFFFF" TextWrapping="NoWrap" TextAlignment="Left" FontSize="22" Margin="10, 0, 0, 0" />
<Text Value="{trackArtist}" Alignment="Left" Font="robotoregular" TextColor="#951418" TextWrapping="NoWrap" TextAlignment="Left" FontSize="17" Margin="10, 0, 0, 0" />
</StackPanel>
<Text ux:Name="playtext" Font="fa" Alignment="Center" TextAlignment="Center" TextColor="#FFFFFF" FontSize="25" Dock="Right"></Text>
</DockPanel>
</Each>
</StackPanel>
</ScrollView>
<AlternateRoot ParentNode="navBar">
<NavBarTitle>TRACKS</NavBarTitle>
</AlternateRoot>
</Page>
<NowPlaying ux:Template="subPage" navBar="navBar" />
</Navigator>
</DockPanel>
<Image File="mockup/20230105_163409.jpg" StretchMode="UniformToFill" Opacity="0" />
</App>