From e308fcbf349ace719a8bb43dd727508e6e7ae6a8 Mon Sep 17 00:00:00 2001 From: hj615 Date: Thu, 27 Nov 2025 16:07:48 +0900 Subject: [PATCH] =?UTF-8?q?design:=20=EB=A6=AC=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EB=B0=95=EC=8A=A4=20=EC=8A=A4=ED=83=80=EC=9D=BC=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SmartAquaViewer/App.xaml | 40 +- SmartAquaViewer/Classes/Converter.cs | 29 + SmartAquaViewer/Resources/Generic.xaml | 122 ++- SmartAquaViewer/View/MonitoringView.xaml | 1002 +++++++++++----------- 4 files changed, 685 insertions(+), 508 deletions(-) diff --git a/SmartAquaViewer/App.xaml b/SmartAquaViewer/App.xaml index 7961e0e..a0a735b 100644 --- a/SmartAquaViewer/App.xaml +++ b/SmartAquaViewer/App.xaml @@ -2,31 +2,34 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:SmartAquaViewer" + xmlns:classes="clr-namespace:SmartAquaViewer.Classes" xmlns:view="clr-namespace:SmartAquaViewer.View" xmlns:vm="clr-namespace:SmartAquaViewer.ViewModel" StartupUri="MainWindow.xaml"> + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - @@ -41,6 +44,7 @@ + diff --git a/SmartAquaViewer/Classes/Converter.cs b/SmartAquaViewer/Classes/Converter.cs index 9023b12..4e2b20c 100644 --- a/SmartAquaViewer/Classes/Converter.cs +++ b/SmartAquaViewer/Classes/Converter.cs @@ -4,6 +4,7 @@ using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; +using System.Windows; using System.Windows.Data; namespace SmartAquaViewer.Classes @@ -78,4 +79,32 @@ namespace SmartAquaViewer.Classes public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) => throw new NotImplementedException(); } + + public class BoolToVisibilityConverter : IValueConverter + { + public bool Inverse { get; set; } + + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + bool flag = false; + + if (value is bool b) + flag = b; + + if (Inverse) + flag = !flag; + + return flag ? Visibility.Visible : Visibility.Collapsed; + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + if (value is Visibility visibility) + { + bool flag = visibility == Visibility.Visible; + return Inverse ? !flag : flag; + } + return false; + } + } } diff --git a/SmartAquaViewer/Resources/Generic.xaml b/SmartAquaViewer/Resources/Generic.xaml index 18947f5..57cb6c4 100644 --- a/SmartAquaViewer/Resources/Generic.xaml +++ b/SmartAquaViewer/Resources/Generic.xaml @@ -1,11 +1,15 @@  + + pack://application:,,,/Fonts/#S-Core Dream 1 Thin pack://application:,,,/Fonts/#S-Core Dream 2 ExtraLight pack://application:,,,/Fonts/#S-Core Dream 3 Light @@ -192,6 +196,8 @@ + + + + + \ No newline at end of file diff --git a/SmartAquaViewer/View/MonitoringView.xaml b/SmartAquaViewer/View/MonitoringView.xaml index 8b5cec8..9884b1d 100644 --- a/SmartAquaViewer/View/MonitoringView.xaml +++ b/SmartAquaViewer/View/MonitoringView.xaml @@ -22,509 +22,520 @@ - - - - - - - - - - - + + + + + + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + - - - - - - - - + + + + + + + - - - - - - - + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + @@ -585,17 +596,30 @@ - + + Style="{StaticResource MaterialDesignChoiceChipListBox}" + ItemContainerStyle="{StaticResource TransparentListBoxItemStyle}" + Background="Transparent"> + + + + + + + +