From 0d4e5725f7855b7ebe9ff5407148184294329d17 Mon Sep 17 00:00:00 2001 From: martinchrzan Date: Sun, 13 Dec 2020 17:40:13 +0100 Subject: [PATCH] Updated settings design --- ColorPicker/App.xaml | 3 ++ ColorPicker/ColorPicker.csproj | 3 ++ ColorPicker/MainWindow.xaml | 2 +- ColorPicker/SettingsWindow.xaml | 4 +-- ColorPicker/Views/SettingsView.xaml | 53 +++++++++++++++++------------ 5 files changed, 40 insertions(+), 25 deletions(-) diff --git a/ColorPicker/App.xaml b/ColorPicker/App.xaml index ef68112..9e5cdfe 100644 --- a/ColorPicker/App.xaml +++ b/ColorPicker/App.xaml @@ -2,12 +2,15 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:ColorPicker" + xmlns:ui="http://schemas.modernwpf.com/2019" StartupUri="MainWindow.xaml"> + + diff --git a/ColorPicker/ColorPicker.csproj b/ColorPicker/ColorPicker.csproj index 9fc660b..2865f8c 100644 --- a/ColorPicker/ColorPicker.csproj +++ b/ColorPicker/ColorPicker.csproj @@ -222,6 +222,9 @@ + + 0.9.3-preview.201204.0 + 5.5.1 runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/ColorPicker/MainWindow.xaml b/ColorPicker/MainWindow.xaml index 730213d..c126f06 100644 --- a/ColorPicker/MainWindow.xaml +++ b/ColorPicker/MainWindow.xaml @@ -13,5 +13,5 @@ - + diff --git a/ColorPicker/SettingsWindow.xaml b/ColorPicker/SettingsWindow.xaml index a1e424e..69706cd 100644 --- a/ColorPicker/SettingsWindow.xaml +++ b/ColorPicker/SettingsWindow.xaml @@ -5,6 +5,6 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:ColorPicker" mc:Ignorable="d" - Title="Color picker settings" Width="300" SizeToContent="Height" ResizeMode="NoResize" - ShowInTaskbar="False" WindowStartupLocation="CenterScreen" Topmost="True" WindowStyle="SingleBorderWindow"> + Title="Color picker settings" ResizeMode="NoResize" + ShowInTaskbar="False" WindowStartupLocation="CenterScreen" Topmost="True" WindowStyle="SingleBorderWindow" SizeToContent="WidthAndHeight"> diff --git a/ColorPicker/Views/SettingsView.xaml b/ColorPicker/Views/SettingsView.xaml index de420f8..41b263c 100644 --- a/ColorPicker/Views/SettingsView.xaml +++ b/ColorPicker/Views/SettingsView.xaml @@ -9,20 +9,14 @@ xmlns:behaviors="clr-namespace:ColorPicker.Behaviors" xmlns:System="clr-namespace:System;assembly=mscorlib" xmlns:ColorPickerSettings="clr-namespace:ColorPicker.Settings" - d:DesignHeight="450" d:DesignWidth="800" Background="#303030"> + d:DesignHeight="450" d:DesignWidth="800" Background="#303030" Width="310"> - - - @@ -35,31 +29,46 @@ - - - + + + + - - + + - - - - + + + + +