diff --git a/src/openHAB.Windows/App.xaml b/src/openHAB.Windows/App.xaml index f0a03b42..29f10d03 100644 --- a/src/openHAB.Windows/App.xaml +++ b/src/openHAB.Windows/App.xaml @@ -92,6 +92,8 @@ MapViewTemplate="{StaticResource MapViewTemplate}" WebViewTemplate="{StaticResource WebViewTemplate}" TextTemplate="{StaticResource TextItemTemplate}" /> + + diff --git a/src/openHAB.Windows/App.xaml.cs b/src/openHAB.Windows/App.xaml.cs index eeacc938..ea04414e 100644 --- a/src/openHAB.Windows/App.xaml.cs +++ b/src/openHAB.Windows/App.xaml.cs @@ -82,7 +82,6 @@ protected override async void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventA // Initialize MainWindow here MainWindow = new MainWindow(); - MainWindow.ExtendsContentIntoTitleBar = true; //Frame rootFrame = MainWindow.RootFrame; //if (rootFrame == null) diff --git a/src/openHAB.Windows/Assets/StoreLogo.backup.png b/src/openHAB.Windows/Assets/StoreLogo.png similarity index 100% rename from src/openHAB.Windows/Assets/StoreLogo.backup.png rename to src/openHAB.Windows/Assets/StoreLogo.png diff --git a/src/openHAB.Windows/Controls/FrameWidget.xaml b/src/openHAB.Windows/Controls/FrameWidget.xaml index b504c14f..fb8bf8d0 100644 --- a/src/openHAB.Windows/Controls/FrameWidget.xaml +++ b/src/openHAB.Windows/Controls/FrameWidget.xaml @@ -11,8 +11,7 @@ d:DesignHeight="300" d:DesignWidth="400" mc:Ignorable="d" - Visibility="{x:Bind Widget.Visibility, Converter={StaticResource BooleanToVisibilityConverter}}" - Background="{StaticResource DarkAcrylicColor}"> + Visibility="{x:Bind Widget.Visibility, Converter={StaticResource BooleanToVisibilityConverter}}"> - - - + + + diff --git a/src/openHAB.Windows/MainWindow.xaml b/src/openHAB.Windows/MainWindow.xaml index ce31cc43..6b124e1c 100644 --- a/src/openHAB.Windows/MainWindow.xaml +++ b/src/openHAB.Windows/MainWindow.xaml @@ -5,7 +5,6 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:converters="using:openHAB.Windows.Converters" xmlns:core="using:Microsoft.Xaml.Interactions.Core" - xmlns:community="using:CommunityToolkit.WinUI.UI.Controls" xmlns:muxc="using:Microsoft.UI.Xaml.Controls" xmlns:interactivity="using:Microsoft.Xaml.Interactivity" xmlns:viewModel="using:openHAB.Windows.ViewModel" @@ -35,42 +34,26 @@ + Value="{StaticResource TextFillColorPrimaryBrush}" /> - - - - - - @@ -149,7 +132,7 @@ Margin="10"> @@ -167,29 +150,72 @@ - + - - - + + + + + + + + + + + + + + + + + + + @@ -270,11 +296,11 @@ + VerticalContentAlignment="Center"> diff --git a/src/openHAB.Windows/MainWindow.xaml.cs b/src/openHAB.Windows/MainWindow.xaml.cs index 4e8e3158..e35733de 100644 --- a/src/openHAB.Windows/MainWindow.xaml.cs +++ b/src/openHAB.Windows/MainWindow.xaml.cs @@ -3,6 +3,8 @@ using CommunityToolkit.Mvvm.Messaging; using CommunityToolkit.WinUI; using Microsoft.Extensions.Logging; +using Microsoft.UI; +using Microsoft.UI.Windowing; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using openHAB.Common; @@ -12,6 +14,7 @@ using openHAB.Windows.Services; using openHAB.Windows.View; using openHAB.Windows.ViewModel; +using Windows.ApplicationModel; namespace openHAB.Windows { @@ -38,6 +41,10 @@ public MainWindow() _logger = DIService.Instance.GetService>(); this.InitializeComponent(); + this.ExtendsContentIntoTitleBar = true; + this.AppWindow.TitleBar.PreferredHeightOption = TitleBarHeightOption.Tall; + this.AppWindow.TitleBar.ButtonForegroundColor = Colors.Black; + TitleBarTextBlock.Text = AppInfo.Current.DisplayInfo.DisplayName; Vm = DIService.Instance.GetService(); Root.DataContext = Vm; diff --git a/src/openHAB.Windows/Styles/DefaultTheme.xaml b/src/openHAB.Windows/Styles/DefaultTheme.xaml index bc88819a..a3f52471 100644 --- a/src/openHAB.Windows/Styles/DefaultTheme.xaml +++ b/src/openHAB.Windows/Styles/DefaultTheme.xaml @@ -1,58 +1,43 @@  - #FFFF5722 #EEEEEE #344040 - - - - - - - - - - - - - - - - + - - - - + + + diff --git a/src/openHAB.Windows/View/SettingsPage.xaml b/src/openHAB.Windows/View/SettingsPage.xaml index 333e1744..60a2784e 100644 --- a/src/openHAB.Windows/View/SettingsPage.xaml +++ b/src/openHAB.Windows/View/SettingsPage.xaml @@ -148,11 +148,11 @@ Orientation="Vertical"> - - - @@ -244,7 +244,7 @@ + VerticalAlignment="Stretch">