Archived
1
0

Bug fixes

This commit is contained in:
Michael Gordeev
2018-08-03 16:15:22 +03:00
parent 114384b3eb
commit c996da2bfb
4 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
<RowDefinition/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<TextBlock Name="meta" Foreground="Gray" FontSize="13" Text="[Author's name] | [Published time span] [?](edited)"/>
<TextBlock Name="meta" TextWrapping="WrapWholeWords" Foreground="Gray" FontSize="13" Text="[Author's name] | [Published time span] [?](edited)"/>
<TextBlock Name="text" IsTextSelectionEnabled="True" TextWrapping="WrapWholeWords" Grid.Row="1" Text="[Content]"/>
<StackPanel Grid.Row="1" Name="editor" Visibility="Collapsed">
+1 -1
View File
@@ -109,7 +109,7 @@ namespace FoxTube.Controls
else
rating.Text = comment.Snippet.LikeCount.HasValue ? comment.Snippet.LikeCount.ToString() : "";
meta.Text = string.Format("{0} | {1} {2}", comment.Snippet.AuthorDisplayName, Methods.GetAgo(comment.Snippet.PublishedAt.Value), comment.Snippet.UpdatedAt.HasValue ? "(edited)" : "");
meta.Text = string.Format("{0} | {1} {2}", comment.Snippet.AuthorDisplayName, Methods.GetAgo(comment.Snippet.PublishedAt.Value), comment.Snippet.UpdatedAt.Value != comment.Snippet.PublishedAt.Value ? "(edited)" : "");
text.Text = comment.Snippet.TextDisplay;
try { avatar.ProfilePicture = new BitmapImage(new Uri(comment.Snippet.AuthorProfileImageUrl)); }
+1 -1
View File
@@ -743,7 +743,7 @@ namespace FoxTube
videoSource.Pause();
}
private void minimize_Click(object sender, RoutedEventArgs e)
public void minimize_Click(object sender, RoutedEventArgs e)
{
if(fullScreen)
{
+11 -3
View File
@@ -423,7 +423,7 @@ namespace FoxTube
public void GoToChannel(string id)
{
MinimizeVideo();
MinimizeAsInitializer();
content.Navigate(typeof(ChannelPage), id);
}
@@ -445,13 +445,13 @@ namespace FoxTube
public void GoToDeveloper(string id)
{
MinimizeVideo();
MinimizeAsInitializer();
content.Navigate(typeof(Settings), "inbox");
}
public void GoToPlaylist(string id)
{
MinimizeVideo();
MinimizeAsInitializer();
content.Navigate(typeof(PlaylistPage), id);
}
@@ -498,6 +498,14 @@ namespace FoxTube
}
}
public void MinimizeAsInitializer()
{
try
{
(videoPlaceholder.Content as VideoPage).player.minimize_Click(this, null);
}
}
public void MinimizeVideo()
{
videoPlaceholder.Width = 432;