From f2b361819b4436b512ab58a299105db88a44515e Mon Sep 17 00:00:00 2001
From: Lightczx <1686188646@qq.com>
Date: Wed, 20 Mar 2024 10:42:14 +0800
Subject: [PATCH] fix userview
---
src/Snap.Hutao/Snap.Hutao/App.xaml.cs | 16 +-
src/Snap.Hutao/Snap.Hutao/View/UserView.xaml | 234 +++++++++---------
.../ViewModel/User/UserViewModel.cs | 10 +-
3 files changed, 133 insertions(+), 127 deletions(-)
diff --git a/src/Snap.Hutao/Snap.Hutao/App.xaml.cs b/src/Snap.Hutao/Snap.Hutao/App.xaml.cs
index 3c60727e..d7f33573 100644
--- a/src/Snap.Hutao/Snap.Hutao/App.xaml.cs
+++ b/src/Snap.Hutao/Snap.Hutao/App.xaml.cs
@@ -26,15 +26,15 @@ public sealed partial class App : Application
{
private const string ConsoleBanner = $"""
----------------------------------------------------------------
- _____ _ _ _
- / ____| | | | | | |
- | (___ _ __ __ _ _ __ | |__| | _ _ | |_ __ _ ___
- \___ \ | '_ \ / _` || '_ \ | __ || | | || __|/ _` | / _ \
+ _____ _ _ _
+ / ____| | | | | | |
+ | (___ _ __ __ _ _ __ | |__| | _ _ | |_ __ _ ___
+ \___ \ | '_ \ / _` || '_ \ | __ || | | || __|/ _` | / _ \
____) || | | || (_| || |_) |_ | | | || |_| || |_| (_| || (_) |
- |_____/ |_| |_| \__,_|| .__/(_)|_| |_| \__,_| \__|\__,_| \___/
- | |
- |_|
-
+ |_____/ |_| |_| \__,_|| .__/(_)|_| |_| \__,_| \__|\__,_| \___/
+ | |
+ |_|
+
Snap.Hutao is a open source software developed by DGP Studio.
Copyright (C) 2022 - 2024 DGP Studio, All Rights Reserved.
----------------------------------------------------------------
diff --git a/src/Snap.Hutao/Snap.Hutao/View/UserView.xaml b/src/Snap.Hutao/Snap.Hutao/View/UserView.xaml
index a899b3e9..792b3ba8 100644
--- a/src/Snap.Hutao/Snap.Hutao/View/UserView.xaml
+++ b/src/Snap.Hutao/Snap.Hutao/View/UserView.xaml
@@ -14,6 +14,106 @@
xmlns:shvu="using:Snap.Hutao.ViewModel.User"
d:DataContext="{d:DesignInstance shvu:UserViewModel}"
mc:Ignorable="d">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Visible
+
+
+
+
+
+
+
+
+
+ Collapsed
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -57,7 +157,6 @@
-
@@ -79,17 +178,9 @@
Grid.Column="1"
Margin="1,0,0,0"
VerticalAlignment="Center"
- Text="{Binding SelectedUser.UserInfo.Nickname, Mode=OneWay}"
+ Text="{Binding SelectedUser.UserInfo.Nickname, Mode=OneWay, FallbackValue={shcm:ResourceString Name=ViewUserNoUserHint}}"
TextTrimming="CharacterEllipsis"
TextWrapping="NoWrap"/>
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
@@ -275,91 +358,6 @@
Severity="Warning"
Visibility="{Binding RuntimeOptions.IsElevated, Converter={StaticResource BoolToVisibilityConverter}}"/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Visible
-
-
-
-
-
-
-
-
-
- Collapsed
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-