forked from BeyondDimension/SteamTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
343 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
System.Application.SteamTools.Client.Desktop.Avalonia/Application/UI/MainView.axaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<UserControl xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" d:DesignWidth="1200" d:DesignHeight="600" | ||
xmlns:pages="clr-namespace:System.Application.UI.Views.Pages" | ||
xmlns:controls="clr-namespace:System.Application.UI.Views.Controls" | ||
xmlns:vm="clr-namespace:System.Application.UI.ViewModels;assembly=System.Application.SteamTools.Client.Desktop" | ||
xmlns:resx="clr-namespace:System.Application.UI.Resx;assembly=System.Application.SteamTools.Client.Desktop" | ||
x:Class="System.Application.UI.Views.MainView" | ||
FontSize="14" | ||
Foreground="{StaticResource SystemBaseHighColor}"> | ||
<Design.DataContext> | ||
<vm:MainWindowViewModel/> | ||
</Design.DataContext> | ||
<Grid> | ||
<DockPanel HorizontalAlignment="Stretch"> | ||
<ExperimentalAcrylicBorder IsHitTestVisible="False" DockPanel.Dock="Left" Width="240"> | ||
<ExperimentalAcrylicBorder.Material> | ||
<ExperimentalAcrylicMaterial TintColor="black" MaterialOpacity="0.85" TintOpacity="1"/> | ||
</ExperimentalAcrylicBorder.Material> | ||
<!--<AutoCompleteBox HorizontalAlignment="Stretch" Margin="20 40 20 0" Watermark="Search" Items="{Binding SearchItems}" />--> | ||
<StackPanel IsHitTestVisible="False" Orientation="Horizontal" HorizontalAlignment="Center" Height="110" VerticalAlignment="Top"> | ||
<Image IsHitTestVisible="False" Source="/Application/UI/Assets/Icon.ico" Height="64" Width="64" VerticalAlignment="Center" Margin="-8,0,0,0"/> | ||
<Label IsHitTestVisible="False" Content="{Binding Path=Title}" VerticalContentAlignment="Center" FontSize="20" Margin="8,0,0,0"/> | ||
</StackPanel> | ||
</ExperimentalAcrylicBorder> | ||
<ExperimentalAcrylicBorder IsHitTestVisible="False"> | ||
<ExperimentalAcrylicBorder.Material> | ||
<ExperimentalAcrylicMaterial TintColor="{DynamicResource ThemeBackgroundBrush}" MaterialOpacity="0.85" TintOpacity="1"/> | ||
</ExperimentalAcrylicBorder.Material> | ||
<Label Content="{ReflectionBinding #TabControl.SelectedItem.Header}" Margin="20 15" FontSize="32"/> | ||
</ExperimentalAcrylicBorder> | ||
</DockPanel> | ||
|
||
<TabControl x:Name="TabControl" Classes="sidebar" Margin="0 40 0 0"> | ||
<TabItem Header="{Binding Path=Res.Welcome,Mode=OneWay,Source={x:Static resx:R.Current}}" VerticalContentAlignment="Center"> | ||
<controls:CardView></controls:CardView> | ||
</TabItem> | ||
<TabItem Header="{Binding Path=Res.CommunityFix,Mode=OneWay,Source={x:Static resx:R.Current}}"> | ||
</TabItem> | ||
<TabItem Header="{Binding Path=Res.UserFastChange,Mode=OneWay,Source={x:Static resx:R.Current}}"> | ||
</TabItem> | ||
<TabItem Header="{Binding Path=Res.GameList,Mode=OneWay,Source={x:Static resx:R.Current}}"> | ||
<pages:GameListPage /> | ||
</TabItem> | ||
<TabItem Header="{Binding Path=Res.SteamAuth,Mode=OneWay,Source={x:Static resx:R.Current}}"> | ||
</TabItem> | ||
<TabItem Header="{Binding Path=Res.IdleCard,Mode=OneWay,Source={x:Static resx:R.Current}}"> | ||
</TabItem> | ||
<TabItem Header="{Binding Path=Res.GameRelated,Mode=OneWay,Source={x:Static resx:R.Current}}"> | ||
</TabItem> | ||
<TabItem Header="{Binding Path=Res.Settings,Mode=OneWay,Source={x:Static resx:R.Current}}"> | ||
<pages:SettingsPage /> | ||
</TabItem> | ||
<TabItem Header="{Binding Path=Res.About,Source={x:Static resx:R.Current}}"> | ||
</TabItem> | ||
</TabControl> | ||
</Grid> | ||
</UserControl> |
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...lonia/Application/UI/Pages/GameList.axaml → ...a/Application/UI/Pages/GameListPage.axaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 28 additions & 22 deletions
50
...em.Application.SteamTools.Client.Desktop.Avalonia/Application/UI/Pages/SettingsPage.axaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,43 @@ | ||
<UserControl xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:vm="clr-namespace:System.Application.UI.ViewModels;assembly=System.Application.SteamTools.Client.Desktop.Avalonia" | ||
xmlns:vm="clr-namespace:System.Application.UI.ViewModels;assembly=System.Application.SteamTools.Client.Desktop" | ||
xmlns:resx="clr-namespace:System.Application.UI.Resx;assembly=System.Application.SteamTools.Client.Desktop" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" | ||
x:Class="System.Application.UI.Views.Pages.SettingsPage"> | ||
<Design.DataContext> | ||
<vm:MainWindowViewModel/> | ||
</Design.DataContext> | ||
<StackPanel HorizontalAlignment="Stretch" Margin="{StaticResource PageMargin}" Background="Transparent" Spacing="20"> | ||
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto, Auto"> | ||
<StackPanel Orientation="Vertical" | ||
<Design.DataContext> | ||
<vm:MainWindowViewModel/> | ||
</Design.DataContext> | ||
<StackPanel HorizontalAlignment="Stretch" Margin="{StaticResource PageMargin}" Background="Transparent" Spacing="20"> | ||
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto, Auto"> | ||
<StackPanel Orientation="Vertical" | ||
HorizontalAlignment="Stretch" | ||
Spacing="16"> | ||
<TextBlock FontSize="18" Text="{Binding Path=Res.Settings_General,Mode=OneWay,Source={x:Static resx:R.Current}}"/> | ||
<StackPanel Orientation="Vertical"> | ||
<TextBlock Text="{Binding Path=Res.Language,Mode=OneWay,Source={x:Static resx:R.Current}}" Margin="0 0 0 20"/> | ||
<ComboBox HorizontalAlignment="Stretch" | ||
<TextBlock FontSize="18" Text="{Binding Path=Res.Settings_General,Mode=OneWay,Source={x:Static resx:R.Current}}"/> | ||
<StackPanel Orientation="Vertical"> | ||
<TextBlock Text="{Binding Path=Res.Language,Mode=OneWay,Source={x:Static resx:R.Current}}" Margin="0 0 0 20"/> | ||
<ComboBox HorizontalAlignment="Stretch" | ||
SelectedIndex="{Binding Path=SettingsPage.CurrentLanguageIndex}" | ||
Items="{Binding Path=SettingsPage.Languages}" /> | ||
</StackPanel> | ||
<Border Background="{DynamicResource SystemControlHighlightBaseLowBrush}" BorderThickness="1" Margin="15"/> | ||
</StackPanel> | ||
<StackPanel Orientation="Vertical" | ||
</StackPanel> | ||
<StackPanel Orientation="Vertical"> | ||
<ComboBox x:Name="Themes" SelectedIndex="0"> | ||
<ComboBoxItem>Light</ComboBoxItem> | ||
<ComboBoxItem>Dark</ComboBoxItem> | ||
</ComboBox> | ||
</StackPanel> | ||
<Border Background="{DynamicResource SystemControlHighlightBaseLowBrush}" BorderThickness="1" Margin="15"/> | ||
</StackPanel> | ||
<StackPanel Orientation="Vertical" | ||
HorizontalAlignment="Stretch" | ||
Spacing="16" | ||
Grid.Row="1"> | ||
<TextBlock FontSize="18" Text="{Binding Path=Res.Settings_Auth,Mode=OneWay,Source={x:Static resx:R.Current}}"/> | ||
<StackPanel Orientation="Vertical"> | ||
</StackPanel> | ||
<Border Background="{DynamicResource SystemControlHighlightBaseLowBrush}" BorderThickness="1" Margin="15"/> | ||
</StackPanel> | ||
</Grid> | ||
</StackPanel> | ||
<TextBlock FontSize="18" Text="{Binding Path=Res.Settings_Auth,Mode=OneWay,Source={x:Static resx:R.Current}}"/> | ||
<StackPanel Orientation="Vertical"> | ||
</StackPanel> | ||
<Border Background="{DynamicResource SystemControlHighlightBaseLowBrush}" BorderThickness="1" Margin="15"/> | ||
</StackPanel> | ||
</Grid> | ||
</StackPanel> | ||
</UserControl> |
1 change: 1 addition & 0 deletions
1
...Application.SteamTools.Client.Desktop.Avalonia/Application/UI/Pages/SettingsPage.axaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...pplication.SteamTools.Client.Desktop.Avalonia/Application/UI/Pages/SteamAccountPage.axaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<UserControl xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:vm="clr-namespace:System.Application.UI.ViewModels;assembly=System.Application.SteamTools.Client.Desktop" | ||
xmlns:resx="clr-namespace:System.Application.UI.Resx;assembly=System.Application.SteamTools.Client.Desktop" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" | ||
x:Class="System.Application.UI.Views.Pages.SteamAccountPage"> | ||
<Design.DataContext> | ||
<vm:MainWindowViewModel/> | ||
</Design.DataContext> | ||
<StackPanel HorizontalAlignment="Stretch" Margin="{StaticResource PageMargin}" Background="Transparent" Spacing="20"> | ||
<Grid ColumnDefinitions="Auto,Auto"> | ||
|
||
</Grid> | ||
</StackPanel> | ||
</UserControl> |
19 changes: 19 additions & 0 deletions
19
...ication.SteamTools.Client.Desktop.Avalonia/Application/UI/Pages/SteamAccountPage.axaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using Avalonia.Controls; | ||
using Avalonia.Markup.Xaml; | ||
using System.Application.UI.ViewModels; | ||
|
||
namespace System.Application.UI.Views.Pages | ||
{ | ||
public class SteamAccountPage : UserControl | ||
{ | ||
public SteamAccountPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void InitializeComponent() | ||
{ | ||
AvaloniaXamlLoader.Load(this); | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
System.Application.SteamTools.Client.Desktop.Avalonia/Application/UI/Styles/Controls.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<controls:ResourceDictionary xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:controls="clr-namespace:Avalonia.Controls;assembly=Avalonia.Styling" | ||
xmlns:markupextensions="clr-namespace:Avalonia.Markup.Xaml.MarkupExtensions;assembly=Avalonia.Markup.Xaml"> | ||
<controls:ResourceDictionary.MergedDictionaries> | ||
<markupextensions:ResourceInclude Source="/Application/UI/Styles/Theme.Dark.xaml" /> | ||
<markupextensions:ResourceInclude Source="/Application/UI/Styles/Theme.Light.xaml" /> | ||
</controls:ResourceDictionary.MergedDictionaries> | ||
</controls:ResourceDictionary> |
18 changes: 18 additions & 0 deletions
18
System.Application.SteamTools.Client.Desktop.Avalonia/Application/UI/Styles/Theme.Dark.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<Styles xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
<Design.PreviewWith> | ||
<Border Padding="20"> | ||
<StackPanel Spacing="5"> | ||
<TextBlock Text="Code Font Family" FontFamily="{StaticResource CodeFontFamily}" /> | ||
</StackPanel> | ||
</Border> | ||
</Design.PreviewWith> | ||
<Styles.Resources> | ||
<Thickness x:Key="PageMargin">40 0 40 0</Thickness> | ||
<!--<FontFamily x:Key="CodeFontFamily">avares://Steam++/Assets/Fonts#Source Code Pro</FontFamily>--> | ||
</Styles.Resources> | ||
|
||
<Style Selector="TextBlock.code"> | ||
<!--<Setter Property="FontFamily" Value="{StaticResource CodeFontFamily}" />--> | ||
</Style> | ||
</Styles> |
Oops, something went wrong.