Skip to content

Commit

Permalink
Merged remote to local
Browse files Browse the repository at this point in the history
  • Loading branch information
Inzaniity committed May 26, 2020
2 parents 2b9fa06 + 03d14a2 commit 71fec8b
Show file tree
Hide file tree
Showing 13 changed files with 295 additions and 111 deletions.
2 changes: 1 addition & 1 deletion Songify Slim/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
<value>{artist} - {title} requested by @{user} has been added to the queue.</value>
</setting>
<setting name="spacesEnabled" serializeAs="String">
<value>False</value>
<value>True</value>
</setting>
<setting name="spaces" serializeAs="String">
<value>10</value>
Expand Down
13 changes: 10 additions & 3 deletions Songify Slim/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,16 @@
<TextBlock x:Name="TxtblockLiveoutput" FontSize="22" Padding="10"
Text="Artist - Title" HorizontalAlignment="Left" VerticalAlignment="Center" TextWrapping="Wrap" MaxWidth="400" MaxHeight="185" />
</StackPanel>
<StatusBar Height="20" VerticalAlignment="Bottom" Padding="0" ScrollViewer.CanContentScroll="True" Margin="0" UseLayoutRounding="False">
<StatusBarItem x:Name="LblStatus" Content="" Foreground="Black" Margin="5,0,0,0"/>
<StatusBarItem x:Name="LblCopyright" Content="Songify v1.1.1-RC1 Copyright © Jan Inzaniity Blömacher" HorizontalAlignment="Right" Padding="0" Foreground="Black" Margin="0,0,5,0"/>
<StatusBar x:Name="sb_Main" Height="20" VerticalAlignment="Bottom" Padding="0" ScrollViewer.CanContentScroll="True" Margin="0" UseLayoutRounding="False">
<StatusBarItem x:Name="LblStatus" Content="" Foreground="Black" Margin="5,0,0,0" Width="55"/>
<StatusBarItem HorizontalAlignment="Right" Padding="0" Margin="0,-2,0,0">
<StackPanel Orientation="Horizontal">
<StatusBarItem x:Name="LblCopyright" Content="Songify v1.1.1-RC1 Copyright ©" Foreground="Black" />
<StatusBarItem x:Name="LblCopyrightLink" Foreground="Black" FontStyle="Italic">
<Hyperlink NavigateUri="https://songify.rocks" RequestNavigate="Hyperlink_RequestNavigate" FontStyle="Normal" Foreground="Black">Songify.Rocks</Hyperlink>
</StatusBarItem>
</StackPanel>
</StatusBarItem>
</StatusBar>
<Menu VerticalAlignment="Top" Padding="0" Margin="0,0,139,0">
<MenuItem Header="{x:Static local:Resources.mw_menu_File}">
Expand Down
16 changes: 11 additions & 5 deletions Songify Slim/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ private void MetroWindowLoaded(object sender, RoutedEventArgs e)
AutoUpdater.Mandatory = true;
AutoUpdater.UpdateMode = Mode.ForcedDownload;
AutoUpdater.AppTitle = "Songify";
AutoUpdater.RunUpdateAsAdmin = false;
AutoUpdater.RunUpdateAsAdmin = true;

AutoUpdater.Start("https://songify.rocks/update.xml");

Expand All @@ -638,7 +638,7 @@ private void MetroWindowLoaded(object sender, RoutedEventArgs e)

// text in the bottom right
LblCopyright.Content =
"Songify v" + Version.Substring(0, 5) + " Copyright © Songify.Rocks";
"Songify v" + Version.Substring(0, 5) + " Copyright ©";

if (_selectedSource == PlayerType.SpotifyWeb)
{
Expand Down Expand Up @@ -674,7 +674,7 @@ private void MetroWindowStateChanged(object sender, EventArgs e)
MinimizeToSysTray();
}

private void Mi_Blacklist_Click(object sender, RoutedEventArgs e)
private void mi_Blacklist_Click(object sender, RoutedEventArgs e)
{
// Opens the Blacklist Window
if (!IsWindowOpen<Window_Blacklist>())
Expand All @@ -684,7 +684,7 @@ private void Mi_Blacklist_Click(object sender, RoutedEventArgs e)
}
}

private void Mi_Queue_Click(object sender, RoutedEventArgs e)
private void mi_Queue_Click(object sender, RoutedEventArgs e)
{
// Opens the Queue Window
System.Windows.Controls.MenuItem item = (System.Windows.Controls.MenuItem)sender;
Expand All @@ -703,7 +703,7 @@ private void Mi_Queue_Click(object sender, RoutedEventArgs e)
}
}

private async void Mi_QueueClear_Click(object sender, RoutedEventArgs e)
private async void mi_QueueClear_Click(object sender, RoutedEventArgs e)
{
// After user confirmation sends a command to the webserver which clears the queue
MessageDialogResult msgResult = await this.ShowMessageAsync("Notification", "Do you really want to clear the queue?", MessageDialogStyle.AffirmativeAndNegative, new MetroDialogSettings { AffirmativeButtonText = "Yes", NegativeButtonText = "No" });
Expand Down Expand Up @@ -817,6 +817,12 @@ private async void TelemetryDisclaimer()
}
}

private void Hyperlink_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
{
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
e.Handled = true;
}

private void TelemetryTimer()
{
// call SendTelemetry every 5 minutes
Expand Down
2 changes: 1 addition & 1 deletion Songify Slim/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Songify.Rocks")]
[assembly: AssemblyProduct("Songify")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand Down
Loading

0 comments on commit 71fec8b

Please sign in to comment.