Skip to content

Commit

Permalink
appearance changes (#33)
Browse files Browse the repository at this point in the history
Courtesy of @MBlais13, some UI changes.

* Added higher res icons
* Changed UI colors to match spotify desktop app
* changed icon to a mini Spotify player
  • Loading branch information
MBlais13 authored Mar 29, 2021
1 parent 08bcaa6 commit dda1eba
Show file tree
Hide file tree
Showing 14 changed files with 226 additions and 120 deletions.
Binary file modified MiniSpotify/MiniSpotify/Assets/Images/Icons/back-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MiniSpotify/MiniSpotify/Assets/Images/Icons/forward-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MiniSpotify/MiniSpotify/Assets/Images/Icons/liked-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MiniSpotify/MiniSpotify/Assets/Images/Icons/pause-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MiniSpotify/MiniSpotify/Assets/Images/Icons/pin-icon-red.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MiniSpotify/MiniSpotify/Assets/Images/Icons/pin-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MiniSpotify/MiniSpotify/Assets/Images/Icons/play-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MiniSpotify/MiniSpotify/Assets/Images/Icons/unliked-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
346 changes: 226 additions & 120 deletions MiniSpotify/MiniSpotify/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -1,120 +1,226 @@
<Window x:Class="MiniSpotify.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:MiniSpotify"
mc:Ignorable="d"
Title="Mini-Viewer" Height="110" Width="400"
ResizeMode="NoResize" Topmost="True" BorderBrush="#232322"
Background="#232322" FontFamily="Lato" WindowStyle="None"
MouseDown="TitleBar_MouseDown">

<DockPanel Name="RootWindow">
<DockPanel Name="TitleBar" DockPanel.Dock="Top" MouseDown="TitleBar_MouseDown"
Background="Transparent">
<Button Name="CloseButton"
Click="OnClickClose"
DockPanel.Dock="Right"
Content="&#xE106;"
Background="#232322"
FontFamily="Segoe MDL2 Assets"
Foreground="PaleVioletRed"
BorderThickness="0"
Margin="0,2,2,0" RenderTransformOrigin="0,0.714" HorizontalAlignment="Right">
</Button>
<Button Name="MinimiseButton"
Click="OnClickMinimise"
DockPanel.Dock="Right"
Content="&#xE949;"
Background="#232322"
Foreground="White"
FontFamily="Segoe MDL2 Assets"
BorderThickness="0"
Margin="0,2,2,0"
HorizontalAlignment="Right">
</Button>
<Button Name="PinToTopButton"
Click="OnClickPinButton"
DockPanel.Dock="Right"
FontFamily="Segoe MDL2 Assets"
BorderThickness="0"
Margin="0,2,2,0"
HorizontalAlignment="Right"
Width="15">
<Button.Background>
<ImageBrush ImageSource="Assets/Images/Icons/pin-icon.png"/>
</Button.Background>
</Button>
</DockPanel>

<Grid Background="#232322" Width="400">
<Image Name="AlbumArtworkImage" Width="75" Height ="75" HorizontalAlignment="Left" Margin="12,0,0,0" Stretch="Fill" OpacityMask="{x:Null}" VerticalAlignment="Top">
<Image.Source>
<BitmapImage UriSource=""/>
</Image.Source>
</Image>
<TextBlock Name="TitleText" Margin="92,0,15,61" FontFamily="Lato" FontSize="18" Foreground="White"></TextBlock>
<ProgressBar Name="SongProgress" Value="0" Width="400" Height="10" Margin="0,84,0,0" Background="#5b5b5b" Foreground="#e2d647" BorderThickness="0"/>
<Button Name="LikeSongButton"
BorderBrush="Black" BorderThickness="0"
Click="OnClickLike" ClickMode="Press" HorizontalAlignment="Right" Width="16" Height="15" VerticalAlignment="Top" Margin="0,60,281,0">
<Button.Background>
<ImageBrush ImageSource="Assets/Images/Icons/unliked-icon.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Button Name="UnlikeSongButton" IsEnabled="False" Visibility="Hidden"
BorderBrush="Black" BorderThickness="0"
Click="OnClickLike" ClickMode="Press" HorizontalAlignment="Right" Width="16" Height="15" VerticalAlignment="Top" Margin="0,60,281,0">
<Button.Background>
<ImageBrush ImageSource="Assets/Images/Icons/liked-icon.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Button Name="PlaybackButton"
BorderBrush="Black" BorderThickness="0"
Click="OnClickPlayPause" ClickMode="Press" HorizontalAlignment="Right" Width="9" Height="15" VerticalAlignment="Top" Margin="0,60,131,0">
<Button.Background>
<ImageBrush ImageSource="Assets/Images/Icons/play-icon.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Button Name="NextSongButton"
BorderBrush="Black" BorderThickness="0"
Click="OnClickNextSong" ClickMode="Press" HorizontalAlignment="Right" Width="11" Height="15" VerticalAlignment="Top" Margin="0,60,50,0">
<Button.Background>
<ImageBrush ImageSource="Assets/Images/Icons/forward-icon.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Button Name="PreviousSongButton"
BorderBrush="Black" BorderThickness="0"
Click="OnClickPreviousSong" ClickMode="Press" HorizontalAlignment="Right" Width="11" Height="16" VerticalAlignment="Top" Margin="0,59,212,0">
<Button.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="-360"/>
<TranslateTransform/>
</TransformGroup>
</Button.RenderTransform>
<Button.Background>
<ImageBrush ImageSource="Assets/Images/Icons/back-icon.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Button x:Name="PauseButton" IsEnabled="False" Visibility="Hidden"
BorderBrush="Black" BorderThickness="0"
Click="OnClickPlayPause" ClickMode="Press" HorizontalAlignment="Right" Width="9" Height="15" VerticalAlignment="Top" Margin="0,60,131,0">
<Button.Background>
<ImageBrush ImageSource="Assets/Images/Icons/pause-icon.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<TextBlock Name="ArtistText" Margin="92,20,15,56" FontFamily="Lato Light" Foreground="White" FontSize="14"></TextBlock>
<TextBlock Name="ContextText" Margin="92,36,15,40" FontFamily="Lato Light" Foreground="White" FontSize="12"></TextBlock>
<!-- <Button x:Name="EditorButton"
BorderBrush="Black" BorderThickness="0"
Click="OnClickEditorButton" ClickMode="Press" HorizontalAlignment="Right" Width="5" Height="15" VerticalAlignment="Top" Margin="0,29,5,0" RenderTransformOrigin="0.5,0.5">
<Button.Background>
<ImageBrush ImageSource="Assets/Images/Icons/play-icon.png" Stretch="Uniform"/>
</Button.Background>
</Button> -->
</Grid>
</DockPanel>
</Window>
<Window
x:Class="MiniSpotify.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:MiniSpotify"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Mini-Viewer"
Width="400"
Height="110"
AllowsTransparency="True"
Background="#FF181818"
FontFamily="Lato"
Foreground="{x:Null}"
Icon="NoteMW.ico"
MouseDown="TitleBar_MouseDown"
ResizeMode="NoResize"
Topmost="True"
WindowStyle="None"
mc:Ignorable="d">

<DockPanel Name="RootWindow">
<DockPanel
Name="TitleBar"
Background="Transparent"
DockPanel.Dock="Top"
MouseDown="TitleBar_MouseDown">
<Button
Name="CloseButton"
Margin="0,2,2,0"
HorizontalAlignment="Right"
Background="{x:Null}"
BorderBrush="{x:Null}"
BorderThickness="0"
Click="OnClickClose"
Content="&#xE106;"
DockPanel.Dock="Right"
FontFamily="Segoe MDL2 Assets"
Foreground="#FFCD1A2B"
RenderTransformOrigin="0,0.714" />
<Button
Name="MinimiseButton"
Margin="0,2,2,0"
HorizontalAlignment="Right"
Background="{x:Null}"
BorderBrush="{x:Null}"
BorderThickness="0"
Click="OnClickMinimise"
Content="&#xE949;"
DockPanel.Dock="Right"
FontFamily="Segoe MDL2 Assets"
Foreground="White" />
<Button
Name="PinToTopButton"
Width="15"
Margin="0,2,2,0"
HorizontalAlignment="Right"
BorderBrush="{x:Null}"
BorderThickness="0"
Click="OnClickPinButton"
DockPanel.Dock="Right"
FontFamily="Segoe MDL2 Assets"
Foreground="#FF282828">
<Button.Background>
<ImageBrush ImageSource="Assets/Images/Icons/pin-icon.png" />
</Button.Background>
</Button>
</DockPanel>

<Grid Width="400">
<Image
Name="AlbumArtworkImage"
Width="75"
Height="75"
Margin="12,0,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Stretch="Fill">
<Image.Source>
<BitmapImage UriSource="" />
</Image.Source>
</Image>
<TextBlock
Name="TitleText"
Margin="92,0,15,61"
FontFamily="Lato"
FontSize="18"
Foreground="White" />
<ProgressBar
Name="SongProgress"
Width="400"
Height="10"
Margin="0,84,0,0"
Background="#FF282828"
BorderBrush="{x:Null}"
BorderThickness="0"
Foreground="#FF1DB954"
Value="0" />
<Button
Name="LikeSongButton"
Width="16"
Height="15"
Margin="0,60,281,0"
HorizontalAlignment="Right"
VerticalAlignment="Top"
BorderBrush="{x:Null}"
BorderThickness="0"
Click="OnClickLike"
ClickMode="Press"
Foreground="#FF282828">
<Button.Background>
<ImageBrush ImageSource="Assets/Images/Icons/unliked-icon.png" Stretch="Uniform" />
</Button.Background>
</Button>
<Button
Name="UnlikeSongButton"
Width="16"
Height="15"
Margin="0,60,281,0"
HorizontalAlignment="Right"
VerticalAlignment="Top"
BorderBrush="Black"
BorderThickness="0"
Click="OnClickLike"
ClickMode="Press"
IsEnabled="False"
Visibility="Hidden">
<Button.Background>
<ImageBrush ImageSource="Assets/Images/Icons/liked-icon.png" Stretch="Uniform" />
</Button.Background>
</Button>
<Button
Name="PlaybackButton"
Width="9"
Height="15"
Margin="0,60,131,0"
HorizontalAlignment="Right"
VerticalAlignment="Top"
BorderBrush="{x:Null}"
BorderThickness="0"
Click="OnClickPlayPause"
ClickMode="Press"
Foreground="#FF282828">
<Button.Background>
<ImageBrush ImageSource="Assets/Images/Icons/play-icon.png" Stretch="Uniform" />
</Button.Background>
</Button>
<Button
Name="NextSongButton"
Width="11"
Height="15"
Margin="0,60,50,0"
HorizontalAlignment="Right"
VerticalAlignment="Top"
BorderBrush="{x:Null}"
BorderThickness="0"
Click="OnClickNextSong"
ClickMode="Press"
Foreground="#FF282828">
<Button.Background>
<ImageBrush ImageSource="Assets/Images/Icons/forward-icon.png" Stretch="Uniform" />
</Button.Background>
</Button>
<Button
Name="PreviousSongButton"
Width="11"
Height="16"
Margin="0,59,212,0"
HorizontalAlignment="Right"
VerticalAlignment="Top"
BorderBrush="{x:Null}"
BorderThickness="0"
Click="OnClickPreviousSong"
ClickMode="Press"
Foreground="#FF282828">
<Button.RenderTransform>
<TransformGroup>
<ScaleTransform />
<SkewTransform />
<RotateTransform Angle="-360" />
<TranslateTransform />
</TransformGroup>
</Button.RenderTransform>
<Button.Background>
<ImageBrush ImageSource="Assets/Images/Icons/back-icon.png" Stretch="Uniform" />
</Button.Background>
</Button>
<Button
x:Name="PauseButton"
Width="9"
Height="15"
Margin="0,60,131,0"
HorizontalAlignment="Right"
VerticalAlignment="Top"
BorderBrush="Black"
BorderThickness="0"
Click="OnClickPlayPause"
ClickMode="Press"
IsEnabled="False"
Visibility="Hidden">
<Button.Background>
<ImageBrush ImageSource="Assets/Images/Icons/pause-icon.png" Stretch="Uniform" />
</Button.Background>
</Button>
<TextBlock
Name="ArtistText"
Margin="92,20,15,56"
FontFamily="Lato Light"
FontSize="14"
Foreground="White" />
<TextBlock
Name="ContextText"
Margin="92,36,15,40"
FontFamily="Lato Light"
FontSize="12"
Foreground="White" />
<!-- <Button x:Name="EditorButton"
BorderBrush="Black" BorderThickness="0"
Click="OnClickEditorButton" ClickMode="Press" HorizontalAlignment="Right" Width="5" Height="15" VerticalAlignment="Top" Margin="0,29,5,0" RenderTransformOrigin="0.5,0.5">
<Button.Background>
<ImageBrush ImageSource="Assets/Images/Icons/play-icon.png" Stretch="Uniform"/>
</Button.Background>
</Button>-->
</Grid>
</DockPanel>
</Window>
Binary file modified MiniSpotify/MiniSpotify/NoteM.ico
Binary file not shown.
Binary file modified MiniSpotify/MiniSpotify/NoteMW.ico
Binary file not shown.
Binary file added MiniSpotifyPlayerUI.fig
Binary file not shown.

0 comments on commit dda1eba

Please sign in to comment.