Skip to content

Commit 0a397c4

Browse files
committed
ux: always show tab selector button and use single-clicking instead of double-clicking to select item in list (#1711)
Signed-off-by: leo <[email protected]>
1 parent 786ca31 commit 0a397c4

11 files changed

+32
-234
lines changed

src/Resources/Icons.axaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<StreamGeometry x:Key="Icons.CheckCircled">M512 32C246 32 32 250 32 512s218 480 480 480 480-218 480-480S774 32 512 32zm269 381L496 698c-26 26-61 26-83 0L243 528c-26-26-26-61 0-83s61-26 83 0l128 128 240-240c26-26 61-26 83 0 26 19 26 54 3 80z</StreamGeometry>
1515
<StreamGeometry x:Key="Icons.Changes">M747 467c29 0 56 4 82 12v-363c0-47-38-84-84-84H125c-47 0-84 38-84 84v707c0 47 38 84 84 84h375a287 287 0 01-43-152c0-160 129-289 289-289zm-531-250h438c19 0 34 15 34 34s-15 34-34 34H216c-19 0-34-15-34-34s15-34 34-34zm0 179h263c19 0 34 15 34 34s-15 34-34 34H216c-19 0-34-15-34-34s15-34 34-34zm131 247h-131c-19 0-34-15-34-34s15-34 34-34h131c19 0 34 15 34 34s-15 34-34 34zM747 521c-130 0-236 106-236 236S617 992 747 992s236-106 236-236S877 521 747 521zm11 386v-65h-130c-12 0-22-10-22-22s10-22 22-22h260l-130 108zm108-192H606l130-108v65h130c12 0 22 10 22 22s-10 22-22 22z</StreamGeometry>
1616
<StreamGeometry x:Key="Icons.CherryPick">M529 511c115 0 212 79 239 185h224a62 62 0 017 123l-7 0-224 0a247 247 0 01-479 0H65a62 62 0 01-7-123l7-0h224a247 247 0 01239-185zm0 124a124 124 0 100 247 124 124 0 000-247zm0-618c32 0 58 24 61 55l0 7V206c89 11 165 45 225 103a74 74 0 0122 45l0 9v87a62 62 0 01-123 7l-0-7v-65l-6-4c-43-33-97-51-163-53l-17-0c-74 0-133 18-180 54l-6 4v65a62 62 0 01-55 61l-7 0a62 62 0 01-61-55l-0-7V362c0-20 8-39 23-53 60-58 135-92 224-103V79c0-34 28-62 62-62z</StreamGeometry>
17-
<StreamGeometry x:Key="Icons.CircleDown">M512 926c-229 0-414-186-414-414S283 98 512 98s414 186 414 414-186 414-414 414zm0-73c189 0 341-153 341-341S701 171 512 171 171 323 171 512s153 341 341 341zm-6-192L284 439l52-52 171 171 171-171L728 439l-222 222z</StreamGeometry>
1817
<StreamGeometry x:Key="Icons.Clear">M512 57c251 0 455 204 455 455S763 967 512 967 57 763 57 512 261 57 512 57zm181 274c-11-11-29-11-40 0L512 472 371 331c-11-11-29-11-40 0-11 11-11 29 0 40L471 512 331 653c-11 11-11 29 0 40 11 11 29 11 40 0l141-141 141 141c11 11 29 11 40 0 11-11 11-29 0-40L552 512l141-141c11-11 11-29 0-40z</StreamGeometry>
1918
<StreamGeometry x:Key="Icons.ClearNotifications">M591 907A85 85 0 01427 875h114a299 299 0 0050 32zM725 405c130 0 235 105 235 235s-105 235-235 235-235-105-235-235 105-235 235-235zM512 64a43 43 0 0143 43v24c126 17 229 107 264 225A298 298 0 00725 341l-4 0A235 235 0 00512 213l-5 0c-125 4-224 104-228 229l-0 6v167a211 211 0 01-26 101l-4 7-14 23h211a298 298 0 0050 85l-276-0a77 77 0 01-66-39c-13-22-14-50-2-73l2-4 22-36c10-17 16-37 17-57l0-7v-167C193 287 313 153 469 131V107a43 43 0 0139-43zm345 505L654 771a149 149 0 00202-202zM725 491a149 149 0 00-131 220l202-202A149 149 0 00725 491z</StreamGeometry>
2019
<StreamGeometry x:Key="Icons.Clean">M797 829a49 49 0 1049 49 49 49 0 00-49-49zm147-114A49 49 0 10992 764a49 49 0 00-49-49zM928 861a49 49 0 1049 49A49 49 0 00928 861zm-5-586L992 205 851 64l-71 71a67 67 0 00-94 0l235 235a67 67 0 000-94zm-853 128a32 32 0 00-32 50 1291 1291 0 0075 112L288 552c20 0 25 21 8 37l-93 86a1282 1282 0 00120 114l100-32c19-6 28 15 14 34l-40 55c26 19 53 36 82 53a89 89 0 00115-20 1391 1391 0 00256-485l-188-188s-306 224-595 198z</StreamGeometry>
@@ -125,6 +124,7 @@
125124
<StreamGeometry x:Key="Icons.Submodules">M416 587c21 0 37 17 37 37v299A37 37 0 01416 960h-299a37 37 0 01-37-37v-299c0-21 17-37 37-37h299zm448 0c21 0 37 17 37 37v299A37 37 0 01864 960h-299a37 37 0 01-37-37v-299c0-21 17-37 37-37h299zM758 91l183 189a37 37 0 010 52l-182 188a37 37 0 01-53 1l-183-189a37 37 0 010-52l182-188a37 37 0 0153-1zM416 139c21 0 37 17 37 37v299A37 37 0 01416 512h-299a37 37 0 01-37-37v-299c0-21 17-37 37-37h299z</StreamGeometry>
126125
<StreamGeometry x:Key="Icons.Subject">M512 0C230 0 0 230 0 512c0 145 60 282 166 375L90 1024H512c282 0 512-230 512-512S794 0 512 0z</StreamGeometry>
127126
<StreamGeometry x:Key="Icons.SyntaxHighlight">M875 128h-725A107 107 0 0043 235v555A107 107 0 00149 896h725a107 107 0 00107-107v-555A107 107 0 00875 128zm-115 640h-183v-58l25-3c15 0 19-8 14-24l-22-61H419l-28 82 39 2V768h-166v-58l18-3c18-2 22-11 26-24l125-363-40-4V256h168l160 448 39 3zM506 340l-72 218h145l-71-218h-2z</StreamGeometry>
127+
<StreamGeometry x:Key="Icons.Tabs">M1097 372h-460l-146-299H146a73 73 0 00-73 73v731a73 73 0 0073 73h878a73 73 0 0073-73V372zM146 0h390l146 299h488V878a146 146 0 01-146 146H146a146 146 0 01-146-146V146a146 146 0 01146-146zm439 0h195l146 246h-195l-146-246zm244 0h195a146 146 0 01146 146v100h-195l-146-246z</StreamGeometry>
128128
<StreamGeometry x:Key="Icons.Tag">M177 156c-22 5-33 17-36 37c-10 57-33 258-13 278l445 445c23 23 61 23 84 0l246-246c23-23 23-61 0-84l-445-445C437 120 231 145 177 156zM331 344c-26 26-69 26-95 0c-26-26-26-69 0-95s69-26 95 0C357 276 357 318 331 344z</StreamGeometry>
129129
<StreamGeometry x:Key="Icons.Tag.Add">M683 537h-144v-142h-142V283H239a44 44 0 00-41 41v171a56 56 0 0014 34l321 321a41 41 0 0058 0l174-174a41 41 0 000-58zm-341-109a41 41 0 110-58a41 41 0 010 58zM649 284V142h-69v142h-142v68h142v142h69v-142h142v-68h-142z</StreamGeometry>
130130
<StreamGeometry x:Key="Icons.Tags">M996 452 572 28A96 96 0 00504 0H96C43 0 0 43 0 96v408a96 96 0 0028 68l424 424c37 37 98 37 136 0l408-408c37-37 37-98 0-136zM224 320c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96zm1028 268L844 996c-37 37-98 37-136 0l-1-1L1055 647c34-34 53-79 53-127s-19-93-53-127L663 0h97a96 96 0 0168 28l424 424c37 37 37 98 0 136z</StreamGeometry>
@@ -147,7 +147,7 @@
147147
<StreamGeometry x:Key="Icons.Window.Maximize">M153 154h768v768h-768v-768zm64 64v640h640v-640h-640z</StreamGeometry>
148148
<StreamGeometry x:Key="Icons.Window.Restore">M796 231v727H64V231h732zm-82 78H146V880h567V309zM229 66H960v732H796v-82h82V148h-567v82h-82V66z</StreamGeometry>
149149
<StreamGeometry x:Key="Icons.WordWrap">M248 221a77 77 0 00-30-21c-18-7-40-10-68-5a224 224 0 00-45 13c-5 2-10 5-15 8l-3 2v68l11-9c10-8 21-14 34-19 13-5 26-7 39-7 12 0 21 3 28 10 6 6 9 16 9 29l-62 9c-14 2-26 6-36 11a80 80 0 00-25 20c-7 8-12 17-15 27-6 21-6 44 1 65a70 70 0 0041 43c10 4 21 6 34 6a80 80 0 0063-28v22h64V298c0-16-2-31-6-44a91 91 0 00-18-33zm-41 121v15c0 8-1 15-4 22a48 48 0 01-24 29 44 44 0 01-33 2 29 29 0 01-10-6 25 25 0 01-6-9 30 30 0 01-2-12c0-5 1-9 2-14a21 21 0 015-9 28 28 0 0110-7 83 83 0 0120-5l42-6zm323-68a144 144 0 00-16-42 87 87 0 00-28-29 75 75 0 00-41-11 73 73 0 00-44 14c-6 5-12 11-17 17V64H326v398h59v-18c8 10 18 17 30 21 6 2 13 3 21 3 16 0 31-4 43-11 12-7 23-18 31-31a147 147 0 0019-46 248 248 0 006-57c0-17-2-33-5-49zm-55 49c0 15-1 28-4 39-2 11-6 20-10 27a41 41 0 01-15 15 37 37 0 01-36 1 44 44 0 01-13-12 59 59 0 01-9-18A76 76 0 01384 352v-33c0-10 1-20 4-29 2-8 6-15 10-22a43 43 0 0115-13 37 37 0 0119-5 35 35 0 0132 18c4 6 7 14 9 23 2 9 3 20 3 31zM154 634a58 58 0 0120-15c14-6 35-7 49-1 7 3 13 6 20 12l21 17V572l-6-4a124 124 0 00-58-14c-20 0-38 4-54 11-16 7-30 17-41 30-12 13-20 29-26 46-6 17-9 36-9 57 0 18 3 36 8 52 6 16 14 30 24 42 10 12 23 21 38 28 15 7 32 10 50 10 15 0 28-2 39-5 11-3 21-8 30-14l5-4v-57l-13 6a26 26 0 01-5 2c-3 1-6 2-8 3-2 1-15 6-15 6-4 2-9 3-14 4a63 63 0 01-38-4 53 53 0 01-20-14 70 70 0 01-13-24 111 111 0 01-5-34c0-13 2-26 5-36 3-10 8-19 14-26zM896 384h-256V320h288c21 1 32 12 32 32v384c0 18-12 32-32 32H504l132 133-45 45-185-185c-16-21-16-25 0-45l185-185L637 576l-128 128H896V384z</StreamGeometry>
150-
<StreamGeometry x:Key="Icons.Workspace">M128 691H6V38h838v160h-64V102H70v525H128zM973 806H154V250h819v557zm-755-64h691V314H218v429zM365 877h448v64h-448z</StreamGeometry>
150+
<StreamGeometry x:Key="Icons.Workspace">M0 512M1024 512M512 0M512 1024M128 691H6V38h838v160h-64V102H70v525H128zM973 806H154V250h819v557zm-755-64h691V314H218v429zM365 877h448v64h-448z</StreamGeometry>
151151
<StreamGeometry x:Key="Icons.Worktree">M853 267H514c-4 0-6-2-9-4l-38-66c-13-21-38-36-64-36H171c-41 0-75 34-75 75v555c0 41 34 75 75 75h683c41 0 75-34 75-75V341c0-41-34-75-75-75zm-683-43h233c4 0 6 2 9 4l38 66c13 21 38 36 64 36H853c6 0 11 4 11 11v75h-704V235c0-6 4-11 11-11zm683 576H171c-6 0-11-4-11-11V480h704V789c0 6-4 11-11 11z</StreamGeometry>
152152
<StreamGeometry x:Key="Icons.Worktree.Add">M896 96 614 96c-58 0-128-19-179-51C422 38 390 19 358 19L262 19 128 19c-70 0-128 58-128 128l0 736c0 70 58 128 128 128l768 0c70 0 128-58 128-128L1024 224C1024 154 966 96 896 96zM704 685 544 685l0 160c0 19-13 32-32 32s-32-13-32-32l0-160L320 685c-19 0-32-13-32-32 0-19 13-32 32-32l160 0L480 461c0-19 13-32 32-32s32 13 32 32l0 160L704 621c19 0 32 13 32 32C736 666 723 685 704 685zM890 326 102 326 102 250c0-32 32-64 64-64l659 0c38 0 64 32 64 64L890 326z</StreamGeometry>
153153
<StreamGeometry x:Key="Icons.Worktrees">M1182 527a91 91 0 00-88-117H92a91 91 0 00-88 117l137 441A80 80 0 00217 1024h752a80 80 0 0076-56zM133 295a31 31 0 0031 31h858a31 31 0 0031-31A93 93 0 00959 203H226a93 93 0 00-94 92zM359 123h467a31 31 0 0031-31A92 92 0 00765 0H421a92 92 0 00-92 92 31 31 0 0031 31z</StreamGeometry>

src/Resources/Locales/en_US.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,8 @@
488488
<x:String x:Key="Text.IssueLinkCM.OpenInBrowser" xml:space="preserve">Open in Browser</x:String>
489489
<x:String x:Key="Text.Launcher.Error" xml:space="preserve">ERROR</x:String>
490490
<x:String x:Key="Text.Launcher.Info" xml:space="preserve">NOTICE</x:String>
491-
<x:String x:Key="Text.Launcher.Workspaces" xml:space="preserve">Workspaces</x:String>
492491
<x:String x:Key="Text.Launcher.Pages" xml:space="preserve">Tabs</x:String>
492+
<x:String x:Key="Text.Launcher.Workspaces" xml:space="preserve">Workspaces</x:String>
493493
<x:String x:Key="Text.Merge" xml:space="preserve">Merge Branch</x:String>
494494
<x:String x:Key="Text.Merge.Edit" xml:space="preserve">Customize merge message</x:String>
495495
<x:String x:Key="Text.Merge.Into" xml:space="preserve">Into:</x:String>

src/ViewModels/LauncherPageSwitcher.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public LauncherPageSwitcher(Launcher launcher)
3232
{
3333
_launcher = launcher;
3434
UpdateVisiblePages();
35+
SelectedPage = launcher.ActivePage;
3536
}
3637

3738
public void ClearFilter()

src/Views/Launcher.axaml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
</Grid.RowDefinitions>
2020

2121
<!-- Custom TitleBar -->
22-
<Grid Grid.Row="0" ColumnDefinitions="Auto,Auto,*,Auto">
22+
<Grid Grid.Row="0" ColumnDefinitions="Auto,32,32,*,Auto">
2323
<!-- Bottom border -->
24-
<Border Grid.Column="0" Grid.ColumnSpan="4"
24+
<Border Grid.Column="0" Grid.ColumnSpan="5"
2525
Background="{DynamicResource Brush.TitleBar}"
2626
BorderThickness="0,0,0,1" BorderBrush="{DynamicResource Brush.Border0}"
2727
DoubleTapped="MaximizeOrRestoreWindow"
@@ -31,9 +31,9 @@
3131
<Border Grid.Column="0" Width="72" IsVisible="{Binding #ThisControl.HasLeftCaptionButton}"/>
3232

3333
<!-- Menu (Windows/Linux) -->
34-
<Button Grid.Column="0" Classes="icon_button" VerticalAlignment="Bottom" Margin="6,0,2,3" IsVisible="{OnPlatform True, macOS=False}">
34+
<Button Grid.Column="0" Classes="icon_button" VerticalAlignment="Bottom" Margin="6,0,0,3" IsVisible="{OnPlatform True, macOS=False}">
3535
<Button.Flyout>
36-
<MenuFlyout Placement="BottomEdgeAlignedLeft" VerticalOffset="-8">
36+
<MenuFlyout Placement="BottomEdgeAlignedLeft" VerticalOffset="-6">
3737
<MenuItem Header="{DynamicResource Text.Preferences}" Command="{x:Static s:App.OpenPreferencesCommand}" InputGesture="Ctrl+,">
3838
<MenuItem.Icon>
3939
<Path Width="14" Height="14" Data="{StaticResource Icons.Settings}"/>
@@ -84,11 +84,27 @@
8484
Fill="{Binding ActiveWorkspace.Brush}"/>
8585
</Button>
8686

87+
<!-- Pages Switcher Toggle Button -->
88+
<Button Grid.Column="2" Classes="icon_button" VerticalAlignment="Bottom" Margin="0,0,0,1" Command="{Binding OpenTabSwitcher}">
89+
<ToolTip.Tip>
90+
<StackPanel Orientation="Horizontal">
91+
<TextBlock Text="{DynamicResource Text.Launcher.Pages}"
92+
VerticalAlignment="Center"/>
93+
<TextBlock Margin="8,0,0,0"
94+
Text="{OnPlatform Ctrl+P, macOS=⌘+P}"
95+
FontSize="11"
96+
Foreground="{DynamicResource MenuFlyoutItemKeyboardAcceleratorTextForeground}"
97+
VerticalAlignment="Center"/>
98+
</StackPanel>
99+
</ToolTip.Tip>
100+
<Path Width="13" Height="13" Margin="0,2,0,0" Data="{StaticResource Icons.Tabs}"/>
101+
</Button>
102+
87103
<!-- Pages Tabs -->
88-
<v:LauncherTabBar Grid.Column="2" Height="30" Margin="0,0,16,0" VerticalAlignment="Bottom"/>
104+
<v:LauncherTabBar Grid.Column="3" Height="30" Margin="0,0,16,0" VerticalAlignment="Bottom"/>
89105

90106
<!-- Caption Buttons (Windows/Linux) -->
91-
<Border Grid.Column="3" Margin="16,0,0,0" IsVisible="{Binding #ThisControl.HasRightCaptionButton}">
107+
<Border Grid.Column="4" Margin="16,0,0,0" IsVisible="{Binding #ThisControl.HasRightCaptionButton}">
92108
<v:CaptionButtons Height="30" VerticalAlignment="Top"/>
93109
</Border>
94110
</Grid>

src/Views/Launcher.axaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ private void OnOpenWorkspaceMenu(object sender, RoutedEventArgs e)
317317
{
318318
var pref = ViewModels.Preferences.Instance;
319319
var menu = new ContextMenu();
320+
menu.Placement = PlacementMode.BottomEdgeAlignedLeft;
321+
menu.VerticalOffset = -6;
320322

321323
for (var i = 0; i < pref.Workspaces.Count; i++)
322324
{

src/Views/LauncherPageSwitcher.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383

8484
<ListBox.ItemTemplate>
8585
<DataTemplate DataType="vm:LauncherPage">
86-
<Grid ColumnDefinitions="Auto,6,*" Background="Transparent" DoubleTapped="OnItemDoubleTapped">
86+
<Grid ColumnDefinitions="Auto,6,*" Background="Transparent" Tapped="OnItemTapped">
8787
<Path Grid.Column="0"
8888
Width="12" Height="12"
8989
Fill="{Binding Node.Bookmark, Converter={x:Static c:IntConverters.ToBookmarkBrush}}"

src/Views/LauncherPageSwitcher.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected override void OnKeyDown(KeyEventArgs e)
2121
}
2222
}
2323

24-
private void OnItemDoubleTapped(object sender, TappedEventArgs e)
24+
private void OnItemTapped(object sender, TappedEventArgs e)
2525
{
2626
if (DataContext is ViewModels.LauncherPageSwitcher switcher)
2727
{

src/Views/LauncherTabBar.axaml

Lines changed: 0 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -152,113 +152,6 @@
152152
<Path Width="8" Height="14" Stretch="Fill" Data="{StaticResource Icons.TriangleRight}"/>
153153
</RepeatButton>
154154

155-
<Button x:Name="PageSelector" Classes="icon_button" Width="16" Height="16" Margin="8,0">
156-
<Button.Flyout>
157-
<Flyout Opened="OnTabsDropdownOpened" Closed="OnTabsDropdownClosed">
158-
<Grid RowDefinitions="28,Auto" KeyDown="OnTabsDropdownKeyDown" LostFocus="OnTabsDropdownLostFocus">
159-
<TextBox Grid.Row="0"
160-
Height="24"
161-
Margin="4,0"
162-
BorderThickness="1"
163-
CornerRadius="12"
164-
Text="{Binding #ThisControl.SearchFilter, Mode=TwoWay}"
165-
BorderBrush="{DynamicResource Brush.Border2}"
166-
VerticalContentAlignment="Center"
167-
KeyDown="OnTabsDropdownSearchBoxKeyDown"
168-
v:AutoFocusBehaviour.IsEnabled="True">
169-
<TextBox.InnerLeftContent>
170-
<Path Width="14" Height="14"
171-
Margin="6,0,0,0"
172-
Fill="{DynamicResource Brush.FG2}"
173-
Data="{StaticResource Icons.Search}"/>
174-
</TextBox.InnerLeftContent>
175-
176-
<TextBox.InnerRightContent>
177-
<Button Classes="icon_button"
178-
Width="16"
179-
Margin="0,0,6,0"
180-
Click="OnClearSearchFilter"
181-
IsVisible="{Binding #ThisControl.SearchFilter, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
182-
HorizontalAlignment="Right">
183-
<Path Width="14" Height="14"
184-
Margin="0,1,0,0"
185-
Fill="{DynamicResource Brush.FG1}"
186-
Data="{StaticResource Icons.Clear}"/>
187-
</Button>
188-
</TextBox.InnerRightContent>
189-
</TextBox>
190-
191-
<ListBox Grid.Row="1"
192-
x:Name="TabsDropdownList"
193-
Focusable="True"
194-
Width="200"
195-
MaxHeight="400"
196-
Margin="0,4,0,0"
197-
Background="Transparent"
198-
SelectionMode="Single"
199-
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
200-
ScrollViewer.VerticalScrollBarVisibility="Auto"
201-
ItemsSource="{Binding #ThisControl.SelectablePages}"
202-
SelectedItem="{Binding ActivePage, Mode=OneWay}">
203-
<ListBox.Styles>
204-
<Style Selector="ListBoxItem">
205-
<Setter Property="Padding" Value="0"/>
206-
<Setter Property="MinHeight" Value="26"/>
207-
<Setter Property="CornerRadius" Value="4"/>
208-
</Style>
209-
210-
<Style Selector="ListBox">
211-
<Setter Property="FocusAdorner">
212-
<FocusAdornerTemplate>
213-
<Grid/>
214-
</FocusAdornerTemplate>
215-
</Setter>
216-
</Style>
217-
</ListBox.Styles>
218-
219-
<ListBox.ItemsPanel>
220-
<ItemsPanelTemplate>
221-
<StackPanel Orientation="Vertical"/>
222-
</ItemsPanelTemplate>
223-
</ListBox.ItemsPanel>
224-
225-
<ListBox.ItemTemplate>
226-
<DataTemplate DataType="vm:LauncherPage">
227-
<Grid ColumnDefinitions="Auto,*" Background="Transparent" Tapped="OnTabsDropdownItemTapped">
228-
<Path Grid.Column="0"
229-
Width="12" Height="12" Margin="12,0"
230-
Fill="{Binding Node.Bookmark, Converter={x:Static c:IntConverters.ToBookmarkBrush}}"
231-
Data="{StaticResource Icons.Bookmark}"
232-
IsVisible="{Binding Node.IsRepository}"
233-
IsHitTestVisible="False"/>
234-
<Path Grid.Column="0"
235-
Width="12" Height="12" Margin="12,0"
236-
Fill="{DynamicResource Brush.FG1}"
237-
Data="{StaticResource Icons.Repositories}"
238-
IsVisible="{Binding !Node.IsRepository}"
239-
IsHitTestVisible="False"/>
240-
<TextBlock Grid.Column="1"
241-
Classes="primary"
242-
VerticalAlignment="Center"
243-
Text="{Binding Node.Name}"
244-
IsVisible="{Binding Node.IsRepository}"
245-
IsHitTestVisible="False"/>
246-
<TextBlock Grid.Column="1"
247-
Classes="primary"
248-
VerticalAlignment="Center"
249-
Text="{DynamicResource Text.PageTabBar.Welcome.Title}"
250-
IsVisible="{Binding !Node.IsRepository}"
251-
IsHitTestVisible="False"/>
252-
</Grid>
253-
</DataTemplate>
254-
</ListBox.ItemTemplate>
255-
</ListBox>
256-
</Grid>
257-
</Flyout>
258-
</Button.Flyout>
259-
<Path Width="14" Height="14" Data="{StaticResource Icons.CircleDown}"/>
260-
</Button>
261-
262155
<Button Classes="icon_button" Width="16" Height="16" Command="{Binding AddNewTab}">
263156
<ToolTip.Tip>
264157
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">

0 commit comments

Comments
 (0)