Skip to content

Commit 72c8b93

Browse files
authored
Merge branch 'main' into 5bfa/CQ-Net9-Real
2 parents 916b315 + 973a3f8 commit 72c8b93

File tree

61 files changed

+3899
-178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+3899
-178
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,11 @@ jobs:
239239
$env:AUTOMATED_TESTS_ASSEMBLY_DIR\**\Files.InteractionTests.dll `
240240
--logger "trx;LogFileName=$env:AUTOMATED_TESTS_ASSEMBLY_DIR\testResults.trx"
241241
242+
- if: github.event_name == 'pull_request'
243+
uses: geekyeggo/delete-artifact@v5
244+
with:
245+
name: '*'
246+
242247
# - name: Generate markdown from the tests result
243248
# shell: pwsh
244249
# run: |
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) 2024 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
namespace Files.App.Controls
5+
{
6+
/// <summary>
7+
/// Defines BarShape for <see cref="StorageBar"/>.
8+
/// </summary>
9+
public enum BarShapes
10+
{
11+
/// <summary>
12+
/// The BarShape for Round StorageBars. Default state.
13+
/// </summary>
14+
Round,
15+
16+
/// <summary>
17+
/// The BarShape for Soft StorageBars.
18+
/// </summary>
19+
Soft,
20+
21+
/// <summary>
22+
/// The BarShape for Flat StorageBars.
23+
/// </summary>
24+
Flat,
25+
}
26+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (c) 2024 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
namespace Files.App.Controls
5+
{
6+
/// <summary>
7+
/// Defines ThicknessCheck values for <see cref="StorageRing"/> and <see cref="StorageBar"/>.
8+
/// </summary>
9+
public enum ThicknessCheck
10+
{
11+
/// <summary>
12+
/// The ThicknessCheck for when the Value Thickness is thickest.
13+
/// </summary>
14+
Value,
15+
16+
/// <summary>
17+
/// The ThicknessCheck for when the Track Thickness is thickest.
18+
/// </summary>
19+
Track,
20+
21+
/// <summary>
22+
/// The ThicknessCheck for when the both Value and Track
23+
/// Thickness is equal.
24+
/// </summary>
25+
Equal,
26+
}
27+
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
// Copyright (c) 2024 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
using Microsoft.UI.Xaml;
5+
using Microsoft.UI.Xaml.Media;
6+
using Microsoft.UI.Xaml.Shapes;
7+
using Windows.Foundation;
8+
9+
namespace Files.App.Controls.Primitives
10+
{
11+
[DependencyProperty<double>("StartAngle", nameof(OnStartAngleChanged), DefaultValue = "(double)0.0")]
12+
[DependencyProperty<double>("EndAngle", nameof(OnEndAngleChanged), DefaultValue = "(double)90.0")]
13+
[DependencyProperty<SweepDirection>("SweepDirection", nameof(OnSweepDirectionChanged), DefaultValue = "global::Microsoft.UI.Xaml.Media.SweepDirection.Clockwise")]
14+
[DependencyProperty<double>("MinAngle", nameof(OnMinAngleChanged), DefaultValue = "(double)0.0")]
15+
[DependencyProperty<double>("MaxAngle", nameof(OnMaxAngleChanged), DefaultValue = "(double)360.0")]
16+
[DependencyProperty<double>("RadiusWidth", nameof(OnRadiusWidthChanged), DefaultValue = "(double)0.0")]
17+
[DependencyProperty<double>("RadiusHeight", nameof(OnRadiusHeightChanged), DefaultValue = "(double)0.0")]
18+
[DependencyProperty<bool>("IsCircle", nameof(OnIsCircleChanged), DefaultValue = "(bool)false")]
19+
[DependencyProperty<Point>("Center")]
20+
[DependencyProperty<double>("ActualRadiusWidth")]
21+
[DependencyProperty<double>("ActualRadiusHeight")]
22+
public partial class RingShape : Path
23+
{
24+
protected virtual void OnStartAngleChanged(double oldValue, double newValue)
25+
{
26+
StartAngleChanged();
27+
}
28+
29+
protected virtual void OnEndAngleChanged(double oldValue, double newValue)
30+
{
31+
EndAngleChanged();
32+
}
33+
34+
protected virtual void OnSweepDirectionChanged(SweepDirection oldValue, SweepDirection newValue)
35+
{
36+
SweepDirectionChanged();
37+
}
38+
39+
protected virtual void OnMinAngleChanged(double oldValue, double newValue)
40+
{
41+
MinMaxAngleChanged(false);
42+
}
43+
44+
protected virtual void OnMaxAngleChanged(double oldValue, double newValue)
45+
{
46+
MinMaxAngleChanged(true);
47+
}
48+
49+
protected virtual void OnRadiusWidthChanged(double oldValue, double newValue)
50+
{
51+
RadiusWidthChanged();
52+
}
53+
54+
protected virtual void OnRadiusHeightChanged(double oldValue, double newValue)
55+
{
56+
RadiusHeightChanged();
57+
}
58+
59+
protected virtual void OnIsCircleChanged(bool oldValue, bool newValue)
60+
{
61+
IsCircleChanged();
62+
}
63+
}
64+
}

0 commit comments

Comments
 (0)