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

Commit

Permalink
Bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Seng-Jik committed Feb 4, 2021
1 parent ef5a5e7 commit 80d3d00
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion KoKoViewer/BrowsePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private void Image_Tapped(object sender, TappedRoutedEventArgs e)
var post = (sender as Image).Tag as KoKo.Post;

var newTab = new TabViewItem();
newTab.IconSource = new SymbolIconSource() { Symbol = Symbol.Document };
newTab.IconSource = new SymbolIconSource() { Symbol = Symbol.Pictures };
newTab.Header = post.fromSpider.Name + " " + post.id;

// The Content of a TabViewItem is often a frame which hosts a page.
Expand Down
2 changes: 1 addition & 1 deletion KoKoViewer/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private void CoreTitleBar_LayoutMetricsChanged(CoreApplicationViewTitleBar sende
private void NewPage(TabView sender, object args)
{
var newTab = new TabViewItem();
newTab.IconSource = new SymbolIconSource() { Symbol = Symbol.Document };
newTab.IconSource = new SymbolIconSource() { Symbol = Symbol.Find };
newTab.Header = "Search";

// The Content of a TabViewItem is often a frame which hosts a page.
Expand Down
5 changes: 4 additions & 1 deletion KoKoViewer/SearchPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using Windows.UI.Xaml.Navigation;
using Microsoft.FSharp.Collections;
using Microsoft.FSharp.Core;
using SymbolIconSource = Microsoft.UI.Xaml.Controls.SymbolIconSource;

// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238

Expand Down Expand Up @@ -73,7 +74,9 @@ private void Search_Click(AutoSuggestBox sender, AutoSuggestBoxQuerySubmittedEve
// Search
tabViewItem.Header = SearchBox.Text;
if (String.IsNullOrWhiteSpace(tabViewItem.Header as string))
tabViewItem.Header = "Browser";
tabViewItem.Header = "Browser";

tabViewItem.IconSource = new SymbolIconSource() { Symbol = Symbol.BrowsePhotos };

var spiders = new List<KoKo.ISpider>();
foreach(var checkbox in MainStackPanel.Children)
Expand Down

0 comments on commit 80d3d00

Please sign in to comment.