diff --git a/WonderLab.Desktop/WonderLab.Desktop.csproj b/WonderLab.Desktop/WonderLab.Desktop.csproj index eba86131..24daeb48 100644 --- a/WonderLab.Desktop/WonderLab.Desktop.csproj +++ b/WonderLab.Desktop/WonderLab.Desktop.csproj @@ -10,8 +10,8 @@ true - - + + @@ -30,6 +30,7 @@ + /usr/share/icons/wonderlab.png @@ -53,5 +54,6 @@ 2.0.0 650eae67-f1f5-4fc8-9914-ea217ada8a3b com.blessing-studio.wonderlab + wonderlab.ico \ No newline at end of file diff --git a/WonderLab/App.axaml b/WonderLab/App.axaml index 832dc91d..464d9fb8 100644 --- a/WonderLab/App.axaml +++ b/WonderLab/App.axaml @@ -19,11 +19,13 @@ + + diff --git a/WonderLab/Services/UI/WindowService.cs b/WonderLab/Services/UI/WindowService.cs index 2b051014..264b2385 100644 --- a/WonderLab/Services/UI/WindowService.cs +++ b/WonderLab/Services/UI/WindowService.cs @@ -70,6 +70,10 @@ public async void CopyText(string text) { } public async void SetBackground(int type) { + if (Design.IsDesignMode) { + return; + } + var main = _mainWindow as MainWindow; if (main is null) { return; diff --git a/WonderLab/Views/Controls/Themes/ColorTheme.axaml b/WonderLab/Views/Controls/Themes/ColorTheme.axaml index d8efd6ae..5129a174 100644 --- a/WonderLab/Views/Controls/Themes/ColorTheme.axaml +++ b/WonderLab/Views/Controls/Themes/ColorTheme.axaml @@ -184,6 +184,9 @@ + + + @@ -374,7 +377,10 @@ + + + diff --git a/WonderLab/Views/Controls/Themes/Controls/ComboBoxItemTheme.axaml b/WonderLab/Views/Controls/Themes/Controls/ComboBoxItemTheme.axaml new file mode 100644 index 00000000..db030350 --- /dev/null +++ b/WonderLab/Views/Controls/Themes/Controls/ComboBoxItemTheme.axaml @@ -0,0 +1,88 @@ + + + + + + Item 1 + Item 2 long + Item 4 + Item 3 + Item 5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/WonderLab/Views/Controls/Themes/Controls/ComboBoxTheme.axaml b/WonderLab/Views/Controls/Themes/Controls/ComboBoxTheme.axaml index 08ef4e5f..05b77e42 100644 --- a/WonderLab/Views/Controls/Themes/Controls/ComboBoxTheme.axaml +++ b/WonderLab/Views/Controls/Themes/Controls/ComboBoxTheme.axaml @@ -1,5 +1,6 @@ + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:controls="using:WonderLab.Views.Controls"> @@ -27,17 +28,18 @@ 32 - - + + + + + + - - - @@ -52,13 +54,26 @@ Grid.ColumnSpan="2" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" - BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding CornerRadius}" - MinWidth="{DynamicResource ComboBoxThemeMinWidth}" /> + BorderThickness="{TemplateBinding BorderThickness}" + MinWidth="{DynamicResource ComboBoxThemeMinWidth}"> + + + + + + + + + - + + + + + + + - + CornerRadius="{TemplateBinding CornerRadius}"> + - + ItemsPanel="{TemplateBinding ItemsPanel}" + Margin="{DynamicResource ComboBoxDropdownContentMargin}"/> + @@ -128,14 +153,12 @@ - @@ -157,7 +180,7 @@ -