跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

提交记录
修改UI/Controls/Charts/Charts.cs+9 −6看文件
@@ -571,13 +571,16 @@ namespace UI.Controls.Charts
571571 Render();
572572 }
573573
574删除: var parent = VisualTreeHelper.GetParent(this);
575删除: while (!(parent is System.Windows.Window))
574新增: if (ChartsType == ChartsType.HorizontalA && IsSearch)
576575 {
577删除: parent = VisualTreeHelper.GetParent(parent);
576新增: var parent = VisualTreeHelper.GetParent(this);
577新增: while (!(parent is System.Windows.Window))
578新增: {
579新增: parent = VisualTreeHelper.GetParent(parent);
580新增: }
581新增: var page = parent as System.Windows.Window;
582新增: page.SizeChanged += Page_SizeChanged;
578583 }
579删除: var page = parent as System.Windows.Window;
580删除: page.SizeChanged += Page_SizeChanged;
581584 }
582585
583586 private void _typeColumnCanvas_SizeChanged(object sender, SizeChangedEventArgs e)
@@ -1193,7 +1196,7 @@ namespace UI.Controls.Charts
11931196 colValueRect.Height = value / maxValue * canvasHeight;
11941197 colValueRect.Fill = UI.Base.Color.Colors.GetFromString(colColor);
11951198 colValueRect.RadiusX = 4;
1196删除: colValueRect.RadiusY= 4;
1199新增: colValueRect.RadiusY = 4;
11971200 Canvas.SetLeft(colValueRect, i * columnBorderWidth + margin);
11981201 Canvas.SetBottom(colValueRect, colNameHeight);
11991202