浏览代码

Rename CornerRadius to be more clear

Daniel Chalmers 1 年之前
父节点
当前提交
40ee9501a7
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      DesktopClock/MainWindow.xaml
  2. 1 1
      DesktopClock/Properties/Settings.cs

+ 1 - 1
DesktopClock/MainWindow.xaml

@@ -116,7 +116,7 @@
 	</Window.Resources>
 
 	<Viewbox Height="{Binding Height, Source={x:Static p:Settings.Default}, Mode=OneWay}">
-		<Border CornerRadius="{Binding CornerRadius, Source={x:Static p:Settings.Default}, Mode=OneWay}" Padding="1,0,1,0">
+		<Border CornerRadius="{Binding BackgroundCornerRadius, Source={x:Static p:Settings.Default}, Mode=OneWay}" Padding="1,0,1,0">
 			<Border.Style>
 				<Style TargetType="Border">
 					<Setter Property="Background">

+ 1 - 1
DesktopClock/Properties/Settings.cs

@@ -60,8 +60,8 @@ public sealed class Settings : INotifyPropertyChanged, IDisposable
     public Color OuterColor { get; set; }
     public bool BackgroundEnabled { get; set; } = true;
     public double BackgroundOpacity { get; set; } = 0.90;
+    public double BackgroundCornerRadius { get; set; } = 1;
     public double OutlineThickness { get; set; } = 0.2;
-    public double CornerRadius { get; set; } = 1;
     public bool Topmost { get; set; } = true;
     public bool ShowInTaskbar { get; set; } = true;
     public int Height { get; set; } = 48;