Skip to content

Commit

Permalink
Hotfix 0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmicPredator committed Mar 25, 2024
1 parent 2cac0e3 commit 416d610
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 14 deletions.
13 changes: 2 additions & 11 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
## AniMoe Version 0.0.3
## AniMoe Version 0.0.4 (Hotfix)

### Fixes:
- Fixed Media Title's Font size being bold.
- Changed the Ariring date indicator to show on hover instead of clicking it.
- Fixed an issue where multiple windows are opening in some machines.

### What's new?
- Added a new splash screen.
- Replaced from `WebView` to `MarkdownTextblock` in most areas.
- Bumped to Windows App SDK 1.5
- Bumped from .NET 7 to .NET 8

### Others
- Replaced the usage of `PInvoke` with `Microsoft.Windows.CsWin32`.
- Some of the unsafe `HWND` methods are now replaced with safer methods.
- Implemented a temporary placholder page for the sections that are yet to be implemented.

[GitHub](https://github.com/CosmicPredator/AniMoe) | [Download](https://github.com/CosmicPredator/AniMoe/releases/latest/) | [Join Our Discord](https://discord.gg/JqFrzMmVMC)
2 changes: 1 addition & 1 deletion latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.3
0.0.4
4 changes: 4 additions & 0 deletions src/AniMoe.App/AniMoe.App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
<None Remove="Views\LoginView.xaml" />
<None Remove="Views\MangaListView.xaml" />
<None Remove="Views\MediaView.xaml" />
<None Remove="Views\NotImplementedPage.xaml" />
<None Remove="Views\ReviewView.xaml" />
<None Remove="Views\RootWindow.xaml" />
<None Remove="Views\SettingsPages\AboutPage.xaml" />
Expand Down Expand Up @@ -209,6 +210,9 @@
<None Update="Assets\profile.jpg">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<Page Update="Views\NotImplementedPage.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Update="Views\SplashView.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
Expand Down
3 changes: 3 additions & 0 deletions src/AniMoe.App/AniMoe.App.csproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<None Update="App.xaml">
<SubType>Designer</SubType>
</None>
<Page Update="Views\NotImplementedPage.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Views\SplashView.xaml">
<SubType>Designer</SubType>
</Page>
Expand Down
2 changes: 1 addition & 1 deletion src/AniMoe.App/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Identity
Name="AniMoe"
Publisher="CN=Cosmic Predator, O=Cosmic Predator, C=CA"
Version="0.0.3.0" />
Version="0.0.4.0" />

<Properties>
<DisplayName>AniMoe</DisplayName>
Expand Down
3 changes: 2 additions & 1 deletion src/AniMoe.App/ViewModels/SplashViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public SplashViewModel(MasterModel model, ILocalSettings settings)
public async void Window_Activated(object sender, WindowActivatedEventArgs args)
{
var ins = Application.Current as App;
if (args.WindowActivationState == WindowActivationState.CodeActivated)
if (args.WindowActivationState == WindowActivationState.CodeActivated &&
args.WindowActivationState != WindowActivationState.PointerActivated)
{
if (_localSettings.IsSettingExists("accessToken"))
await LoadFromApi();
Expand Down
8 changes: 8 additions & 0 deletions src/AniMoe.App/Views/MasterView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ private void MasterNavView_ItemInvoked(NavigationView sender, NavigationViewItem
Debug.WriteLine(selected.Name);
switch (selected.Name)
{
case "HomeSection":
PrimaryFrame.Navigate(typeof(NotImplementedPage), null);
break;
case "AnimeListSection":
PrimaryFrame.Navigate(typeof(AnimeListView), null);
break;
Expand All @@ -46,9 +49,14 @@ private void MasterNavView_ItemInvoked(NavigationView sender, NavigationViewItem
break;
case "NotificationSection":
NotificationBadge.Opacity = 0;
PrimaryFrame.Navigate(typeof(NotImplementedPage), null);
break;
case "UserSection":
#if DEBUG
PrimaryFrame.Navigate(typeof(UserView), null);
#elif RELEASE
PrimaryFrame.Navigate(typeof(NotImplementedPage), null);
#endif
break;
case "SettingsItem":
PrimaryFrame.Navigate(typeof(SettingsView), null);
Expand Down
22 changes: 22 additions & 0 deletions src/AniMoe.App/Views/NotImplementedPage.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<Page
x:Class="AniMoe.App.Views.NotImplementedPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:AniMoe.App.Views"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid VerticalAlignment="Center"
HorizontalAlignment="Center">

<StackPanel Orientation="Vertical"
Spacing="15">

<FontIcon Glyph="&#xEA3A;" FontSize="50"/>
<TextBlock Text="This page is not implmented yet :)"/>

</StackPanel>

</Grid>
</Page>
31 changes: 31 additions & 0 deletions src/AniMoe.App/Views/NotImplementedPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Navigation;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.

namespace AniMoe.App.Views
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class NotImplementedPage : Page
{
public NotImplementedPage()
{
this.InitializeComponent();
}
}
}

0 comments on commit 416d610

Please sign in to comment.