🚸 背景渐变色交互优化
This commit is contained in:
@@ -3,11 +3,24 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:hc="https://handyorg.github.io/handycontrol"
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
||||||
CornerRadius="4"
|
CornerRadius="4"
|
||||||
|
>
|
||||||
|
<Grid>
|
||||||
|
<StackPanel>
|
||||||
|
<Grid Width="750"
|
||||||
|
Height="550"
|
||||||
|
Panel.ZIndex="0"
|
||||||
|
MouseDown="DragMove"
|
||||||
|
>
|
||||||
|
<Grid.Background>
|
||||||
|
<SolidColorBrush Color="Black" Opacity="0.01"/>
|
||||||
|
</Grid.Background>
|
||||||
|
</Grid>
|
||||||
|
<hc:TransitioningContentControl TransitionMode="Fade"
|
||||||
|
Panel.ZIndex="99"
|
||||||
Width="600"
|
Width="600"
|
||||||
Height="400"
|
Height="400"
|
||||||
Style="{StaticResource BorderBG}"
|
Margin="0,-620,0,0">
|
||||||
>
|
<Border Style="{StaticResource BorderBG}">
|
||||||
<hc:TransitioningContentControl TransitionMode="Fade">
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<ListBox x:Name="GradientBGs"
|
<ListBox x:Name="GradientBGs"
|
||||||
ItemsSource="{Binding}"
|
ItemsSource="{Binding}"
|
||||||
@@ -53,6 +66,9 @@
|
|||||||
<Button Content="关闭" Style="{StaticResource Btn1}" Click="Close_Click" HorizontalAlignment="Stretch" Margin="524,360,-524,10" VerticalAlignment="Stretch"/>
|
<Button Content="关闭" Style="{StaticResource Btn1}" Click="Close_Click" HorizontalAlignment="Stretch" Margin="524,360,-524,10" VerticalAlignment="Stretch"/>
|
||||||
</hc:UniformSpacingPanel>
|
</hc:UniformSpacingPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
|
||||||
</hc:TransitioningContentControl>
|
</hc:TransitioningContentControl>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
@@ -3,7 +3,7 @@ using GeekDesk.ViewModel;
|
|||||||
using GeekDesk.ViewModel.Temp;
|
using GeekDesk.ViewModel.Temp;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Input;
|
||||||
|
|
||||||
namespace GeekDesk.Control.Other
|
namespace GeekDesk.Control.Other
|
||||||
{
|
{
|
||||||
@@ -31,5 +31,22 @@ namespace GeekDesk.Control.Other
|
|||||||
MainWindow.appData.AppConfig.GradientBGParam = bgParam;
|
MainWindow.appData.AppConfig.GradientBGParam = bgParam;
|
||||||
BGSettingUtil.BGSetting();
|
BGSettingUtil.BGSetting();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 移动窗口
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
private void DragMove(object sender, System.Windows.Input.MouseButtonEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.LeftButton == MouseButtonState.Pressed)
|
||||||
|
{
|
||||||
|
Window.GetWindow(this).DragMove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,10 +13,9 @@ namespace GeekDesk.ViewModel.Temp
|
|||||||
//gradientBGParams = (ObservableCollection<GradientBGParam>)ConfigurationManager.GetSection("SystemBGs")
|
//gradientBGParams = (ObservableCollection<GradientBGParam>)ConfigurationManager.GetSection("SystemBGs")
|
||||||
gradientBGParams = new ObservableCollection<GradientBGParam>
|
gradientBGParams = new ObservableCollection<GradientBGParam>
|
||||||
{
|
{
|
||||||
new GradientBGParam("诸神黄昏", "#FCCF31", "#F55555"),
|
|
||||||
new GradientBGParam ("森林之友", "#EBF7E3", "#A8E4C0"),
|
|
||||||
new GradientBGParam("魅惑妖术", "#FFDDE1", "#EE9CA7"),
|
new GradientBGParam("魅惑妖术", "#FFDDE1", "#EE9CA7"),
|
||||||
new GradientBGParam("魅惑妖术", "#D2F6FF", "#91B0E4")
|
new GradientBGParam ("森林之友", "#EBF7E3", "#A8E4C0"),
|
||||||
|
new GradientBGParam("完美谢幕", "#D76D77", "#FFAF7B")
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user