Skip to content

Commit 58e3130

Browse files
committed
ux: makes BranchSelector looks like normal ComboBox
Signed-off-by: leo <longshuang@msn.cn>
1 parent 4dd2847 commit 58e3130

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/Views/BranchSelector.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
InheritsTransform="True">
6666
<Border Background="{DynamicResource Brush.Contents}"
6767
BorderThickness="1"
68-
BorderBrush="{DynamicResource Brush.Border1}"
68+
BorderBrush="{DynamicResource Brush.Accent}"
6969
CornerRadius="4"
7070
Padding="4"
7171
HorizontalAlignment="Stretch">

src/Views/BranchSelector.axaml.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,6 @@ public Models.Branch SelectedBranch
3939
set => SetValue(SelectedBranchProperty, value);
4040
}
4141

42-
public static readonly StyledProperty<bool> UseFriendlyNameProperty =
43-
AvaloniaProperty.Register<BranchSelector, bool>(nameof(UseFriendlyName));
44-
45-
public bool UseFriendlyName
46-
{
47-
get => GetValue(UseFriendlyNameProperty);
48-
set => SetValue(UseFriendlyNameProperty, value);
49-
}
50-
5142
public static readonly StyledProperty<bool> IsDropDownOpenedProperty =
5243
AvaloniaProperty.Register<BranchSelector, bool>(nameof(IsDropDownOpened));
5344

@@ -93,6 +84,7 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
9384
var visible = new List<Models.Branch>();
9485
var oldSelection = SelectedBranch;
9586
var keepSelection = false;
87+
9688
foreach (var b in Branches)
9789
{
9890
if (b.FriendlyName.Contains(SearchFilter, StringComparison.OrdinalIgnoreCase))

0 commit comments

Comments
 (0)