Skip to content

Commit 7deb7dd

Browse files
committed
🎨 added app settings page, testing disabled entry
1 parent 838b491 commit 7deb7dd

5 files changed

+53
-2
lines changed

Biyori/Biyori.csproj

+7
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@
7777
<Compile Include="Settings\Frames\SettingsPage-Accounts.xaml.cs">
7878
<DependentUpon>SettingsPage-Accounts.xaml</DependentUpon>
7979
</Compile>
80+
<Compile Include="Settings\Frames\SettingsPage-Application.xaml.cs">
81+
<DependentUpon>SettingsPage-Application.xaml</DependentUpon>
82+
</Compile>
8083
<Compile Include="Settings\Frames\SettingsPage-General.xaml.cs">
8184
<DependentUpon>SettingsPage-General.xaml</DependentUpon>
8285
</Compile>
@@ -131,6 +134,10 @@
131134
<SubType>Designer</SubType>
132135
<Generator>MSBuild:Compile</Generator>
133136
</Page>
137+
<Page Include="Settings\Frames\SettingsPage-Application.xaml">
138+
<SubType>Designer</SubType>
139+
<Generator>MSBuild:Compile</Generator>
140+
</Page>
134141
<Page Include="Settings\Frames\SettingsPage-General.xaml">
135142
<SubType>Designer</SubType>
136143
<Generator>MSBuild:Compile</Generator>

Biyori/Settings/Frames/SettingsPage-Accounts.xaml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
namespace Biyori.Settings.Frames
1717
{
18-
[SettingsRoute("accounts", "Accounts", true)]
18+
[SettingsRoute("accounts", "Accounts", false)]
1919
/// <summary>
2020
/// Interaction logic for SettingsPage_Accounts.xaml
2121
/// </summary>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<Page x:Class="Biyori.Settings.Frames.SettingsPage_Application"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6+
xmlns:local="clr-namespace:Biyori.Settings.Frames"
7+
mc:Ignorable="d"
8+
d:DesignHeight="450" d:DesignWidth="800"
9+
Title="SettingsPage_Application">
10+
11+
<Grid>
12+
13+
</Grid>
14+
</Page>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using System.Windows;
7+
using System.Windows.Controls;
8+
using System.Windows.Data;
9+
using System.Windows.Documents;
10+
using System.Windows.Input;
11+
using System.Windows.Media;
12+
using System.Windows.Media.Imaging;
13+
using System.Windows.Navigation;
14+
using System.Windows.Shapes;
15+
16+
namespace Biyori.Settings.Frames
17+
{
18+
[SettingsRoute("application", "Application", true)]
19+
/// <summary>
20+
/// Interaction logic for SettingsPage_Application.xaml
21+
/// </summary>
22+
public partial class SettingsPage_Application : Page
23+
{
24+
public SettingsPage_Application()
25+
{
26+
InitializeComponent();
27+
}
28+
}
29+
}

Biyori/Settings/SettingsWindow.xaml.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public SettingsWindow()
2929
this.SettingRoutes.Select(x => new ListBoxItem()
3030
{
3131
Tag = x.key,
32-
Content = x.pageName
32+
Content = x.pageName,
33+
IsEnabled = x.isEnabled
3334
}).ToList().ForEach(x => settingsNav.Items.Add(x));
3435
}
3536

0 commit comments

Comments
 (0)