Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
Time for a new release.
Browse files Browse the repository at this point in the history
  • Loading branch information
woachk committed Apr 12, 2017
1 parent cde7ba3 commit 5f27ddb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MastodonUWA/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
var isDark = Application.Current.RequestedTheme == ApplicationTheme.Dark;
if (isDark)
{
SPanel.Background = new SolidColorBrush(Windows.UI.Colors.DarkGray);
SPanel.Background = new SolidColorBrush(Windows.UI.Colors.Black);
}
TootCollectionBind = new ObservableCollection<object>();
TootContainer.DataContext = TootCollectionBind;
Expand Down
6 changes: 6 additions & 0 deletions MastodonUWA/Toot.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public sealed partial class Toot : UserControl
public string toot_id;
public string content;
IAsyncAction tootrefresh;
int tapdisabled = 0;
dynamic toot;

public Toot()
Expand Down Expand Up @@ -94,6 +95,7 @@ public Toot(dynamic status, int principal)
}
else
{
tapdisabled = 1;
TootContents.NavigationCompleted -= TootContents_NavigationCompleted;
TootContents.NavigationCompleted += TootContents_NavigationCompletedPrimaryToot;
RecWeb.Visibility = Visibility.Collapsed;
Expand Down Expand Up @@ -150,6 +152,10 @@ private void TootContents_PointerPressed(object sender, PointerRoutedEventArgs e

private void Grid_Tapped(object sender, TappedRoutedEventArgs e)
{
if (tapdisabled == 1)
{
return;
}
Frame rootFrame = Window.Current.Content as Frame;
rootFrame.Navigate(typeof(TootDetails), toot);
}
Expand Down
2 changes: 1 addition & 1 deletion MastodonUWA/TootDetails.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
var isDark = Application.Current.RequestedTheme == ApplicationTheme.Dark;
if (isDark)
{
SPanel.Background = new SolidColorBrush(Windows.UI.Colors.DarkGray);
SPanel.Background = new SolidColorBrush(Windows.UI.Colors.Black);
}
dynamic toot_id = (dynamic)e.Parameter;
AuthenticateClass token = GetToken.getAuthClass();
Expand Down

0 comments on commit 5f27ddb

Please sign in to comment.