mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-31 01:42:02 +00:00
UI - Pat on the back
[ci skip]
This commit is contained in:
parent
7d7a985d35
commit
97972b0690
@ -1,4 +1,5 @@
|
|||||||
using Artemis.UI.Screens.Settings.Tabs.Devices;
|
using Artemis.UI.Screens.Settings.Tabs.About;
|
||||||
|
using Artemis.UI.Screens.Settings.Tabs.Devices;
|
||||||
using Artemis.UI.Screens.Settings.Tabs.General;
|
using Artemis.UI.Screens.Settings.Tabs.General;
|
||||||
using Artemis.UI.Screens.Settings.Tabs.Modules;
|
using Artemis.UI.Screens.Settings.Tabs.Modules;
|
||||||
using Artemis.UI.Screens.Settings.Tabs.Plugins;
|
using Artemis.UI.Screens.Settings.Tabs.Plugins;
|
||||||
@ -12,7 +13,8 @@ namespace Artemis.UI.Screens.Settings
|
|||||||
GeneralSettingsTabViewModel generalSettingsTabViewModel,
|
GeneralSettingsTabViewModel generalSettingsTabViewModel,
|
||||||
ModuleOrderTabViewModel moduleOrderTabViewModel,
|
ModuleOrderTabViewModel moduleOrderTabViewModel,
|
||||||
PluginSettingsTabViewModel pluginSettingsTabViewModel,
|
PluginSettingsTabViewModel pluginSettingsTabViewModel,
|
||||||
DeviceSettingsTabViewModel deviceSettingsTabViewModel)
|
DeviceSettingsTabViewModel deviceSettingsTabViewModel,
|
||||||
|
AboutTabViewModel aboutTabViewModel)
|
||||||
{
|
{
|
||||||
DisplayName = "Settings";
|
DisplayName = "Settings";
|
||||||
|
|
||||||
@ -20,6 +22,7 @@ namespace Artemis.UI.Screens.Settings
|
|||||||
Items.Add(moduleOrderTabViewModel);
|
Items.Add(moduleOrderTabViewModel);
|
||||||
Items.Add(pluginSettingsTabViewModel);
|
Items.Add(pluginSettingsTabViewModel);
|
||||||
Items.Add(deviceSettingsTabViewModel);
|
Items.Add(deviceSettingsTabViewModel);
|
||||||
|
Items.Add(aboutTabViewModel);
|
||||||
|
|
||||||
ActiveItem = generalSettingsTabViewModel;
|
ActiveItem = generalSettingsTabViewModel;
|
||||||
}
|
}
|
||||||
|
|||||||
50
src/Artemis.UI/Screens/Settings/Tabs/About/AboutTabView.xaml
Normal file
50
src/Artemis.UI/Screens/Settings/Tabs/About/AboutTabView.xaml
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
<UserControl x:Class="Artemis.UI.Screens.Settings.Tabs.About.AboutTabView"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:Artemis.UI.Screens.Settings.Tabs.About"
|
||||||
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
d:DataContext="{d:DesignInstance local:AboutTabViewModel}">
|
||||||
|
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
|
||||||
|
<StackPanel Margin="15" MaxWidth="800">
|
||||||
|
<TextBlock Style="{StaticResource MaterialDesignHeadline2TextBlock}">
|
||||||
|
Artemis 2
|
||||||
|
</TextBlock>
|
||||||
|
<TextBlock Style="{StaticResource MaterialDesignSubtitle1TextBlock}" Foreground="{DynamicResource MaterialDesignBodyLight}" Text="{Binding Version}" />
|
||||||
|
|
||||||
|
<materialDesign:Card Margin="0 25 0 0">
|
||||||
|
<StackPanel Margin="15">
|
||||||
|
<TextBlock Style="{StaticResource MaterialDesignHeadline4TextBlock}">
|
||||||
|
Lead developer
|
||||||
|
</TextBlock>
|
||||||
|
<TextBlock Style="{StaticResource MaterialDesignBody1TextBlock}">
|
||||||
|
Spoinky (Robert Beekman)
|
||||||
|
</TextBlock>
|
||||||
|
|
||||||
|
<TextBlock Style="{StaticResource MaterialDesignHeadline4TextBlock}" Margin="0 25 0 0">
|
||||||
|
Main contributors
|
||||||
|
</TextBlock>
|
||||||
|
<TextBlock Style="{StaticResource MaterialDesignBody1TextBlock}">
|
||||||
|
DarthAffe
|
||||||
|
</TextBlock>
|
||||||
|
<TextBlock Style="{StaticResource MaterialDesignBody1TextBlock}">
|
||||||
|
DrMeteor (Diogo Trindade)
|
||||||
|
</TextBlock>
|
||||||
|
|
||||||
|
<TextBlock Style="{StaticResource MaterialDesignHeadline4TextBlock}" Margin="0 25 0 0">
|
||||||
|
Special thanks
|
||||||
|
</TextBlock>
|
||||||
|
<TextBlock Style="{StaticResource MaterialDesignBody1TextBlock}">
|
||||||
|
All the people on Discord provinding feedback and testing
|
||||||
|
</TextBlock>
|
||||||
|
<TextBlock Style="{StaticResource MaterialDesignBody1TextBlock}">
|
||||||
|
Aureshion - Default device images
|
||||||
|
</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
</materialDesign:Card>
|
||||||
|
</StackPanel>
|
||||||
|
</ScrollViewer>
|
||||||
|
</UserControl>
|
||||||
@ -0,0 +1,35 @@
|
|||||||
|
using System.Reflection;
|
||||||
|
using Artemis.Core;
|
||||||
|
using Stylet;
|
||||||
|
|
||||||
|
namespace Artemis.UI.Screens.Settings.Tabs.About
|
||||||
|
{
|
||||||
|
public class AboutTabViewModel : Screen
|
||||||
|
{
|
||||||
|
private string _version;
|
||||||
|
|
||||||
|
public AboutTabViewModel()
|
||||||
|
{
|
||||||
|
DisplayName = "ABOUT";
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Version
|
||||||
|
{
|
||||||
|
get => _version;
|
||||||
|
set => SetAndNotify(ref _version, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Overrides of Screen
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void OnActivate()
|
||||||
|
{
|
||||||
|
AssemblyInformationalVersionAttribute versionAttribute = typeof(RootViewModel).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>();
|
||||||
|
Version = $"Version {versionAttribute?.InformationalVersion} build {Constants.BuildInfo.BuildNumberDisplay}";
|
||||||
|
|
||||||
|
base.OnActivate();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user