✨ 更改部分样式
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using GeekDesk.Control.Windows;
|
||||
using GeekDesk.Util;
|
||||
using GeekDesk.ViewModel;
|
||||
using System;
|
||||
using System.Reflection;
|
||||
@@ -64,14 +65,15 @@ namespace GeekDesk.Control.Other
|
||||
private void MyColorPicker_SelectedColorChanged(object sender, HandyControl.Data.FunctionEventArgs<Color> e)
|
||||
{
|
||||
SolidColorBrush scb = MyColorPicker.SelectedBrush;
|
||||
Color c = scb.Color;
|
||||
switch (colorType)
|
||||
{
|
||||
case ColorType.COLOR_1:
|
||||
appConfig.GradientBGParam.Color1 = scb.ToString(); break;
|
||||
appConfig.GradientBGParam.Color1 = string.Format("#{0:X2}{1:X2}{2:X2}", c.R, c.G, c.B); break;
|
||||
case ColorType.COLOR_2:
|
||||
appConfig.GradientBGParam.Color2 = scb.ToString(); break;
|
||||
appConfig.GradientBGParam.Color2 = string.Format("#{0:X2}{1:X2}{2:X2}", c.R, c.G, c.B); break;
|
||||
default:
|
||||
appConfig.TextColor = scb.ToString(); break;
|
||||
appConfig.TextColor = string.Format("#{0:X2}{1:X2}{2:X2}", c.R, c.G, c.B); break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -181,7 +181,14 @@
|
||||
<DockPanel.Background>
|
||||
<SolidColorBrush Opacity="0.01"/>
|
||||
</DockPanel.Background>
|
||||
<Image Visibility="{Binding AppConfig.TitleLogoVisible}" Source="/Resource/Image/TitleLogo.png" RenderOptions.BitmapScalingMode="HighQuality" Margin="10,0,0,0" Width="200" Height="30" HorizontalAlignment="Left"/>
|
||||
<Image Visibility="{Binding AppConfig.TitleLogoVisible}"
|
||||
Source="/Resource/Image/TitleLogo.png"
|
||||
RenderOptions.BitmapScalingMode="HighQuality"
|
||||
Margin="10,0,0,0"
|
||||
Width="200"
|
||||
Height="30"
|
||||
Opacity="0.8"
|
||||
HorizontalAlignment="Left"/>
|
||||
</DockPanel>
|
||||
|
||||
<DockPanel Grid.Row="0" Grid.Column="2" MouseDown="DragMove">
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace GeekDesk.ViewModel.Temp
|
||||
//gradientBGParams = (ObservableCollection<GradientBGParam>)ConfigurationManager.GetSection("SystemBGs")
|
||||
gradientBGParams = new ObservableCollection<GradientBGParam>
|
||||
{
|
||||
new GradientBGParam("魅惑妖术", "#FFDDE1", "#EE9CA7"),
|
||||
new GradientBGParam("魅惑妖术", "#EE9CA7", "#FFDDE1"),
|
||||
new GradientBGParam ("森林之友", "#EBF7E3", "#A8E4C0"),
|
||||
new GradientBGParam("完美谢幕", "#D76D77", "#FFAF7B")
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user