Skip to content

Commit c07c279

Browse files
committed
ux: new style for Push to a NEW branch dialog
Signed-off-by: leo <[email protected]>
1 parent d9a3c22 commit c07c279

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

src/Views/PushToNewBranch.axaml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,18 @@
3939
<TextBlock Text="{DynamicResource Text.PushToNewBranch.Title}"/>
4040
</Border>
4141

42-
<Grid ColumnDefinitions="Auto,*" Margin="16,8,16,0">
43-
<TextBlock Grid.Column="0" x:Name="TxtPrefix" Text="REMOTE/" Margin="0,0,6,0"/>
44-
<TextBox Grid.Column="1"
45-
x:Name="TxtName"
46-
MinWidth="300" Height="32"
47-
CornerRadius="3"
48-
Focusable="True"
49-
v:AutoFocusBehaviour.IsEnabled="True"/>
50-
</Grid>
42+
<TextBox x:Name="TxtName"
43+
MinWidth="300" Height="32"
44+
Margin="16,8,16,0"
45+
CornerRadius="3"
46+
Focusable="True"
47+
v:AutoFocusBehaviour.IsEnabled="True">
48+
<TextBox.InnerLeftContent>
49+
<Border Height="22" CornerRadius="10" Margin="4,0,0,0" Background="Green">
50+
<TextBlock Grid.Column="0" x:Name="TxtPrefix" Text="REMOTE" Foreground="White" Margin="8,0"/>
51+
</Border>
52+
</TextBox.InnerLeftContent>
53+
</TextBox>
5154

5255
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,16,0,0">
5356
<Button Classes="flat primary"

src/Views/PushToNewBranch.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public PushToNewBranch()
1212

1313
public void SetRemote(string remote)
1414
{
15-
TxtPrefix.Text = remote + "/";
15+
TxtPrefix.Text = remote;
1616
}
1717

1818
private void OnSure(object _1, RoutedEventArgs _2)

0 commit comments

Comments
 (0)