Skip to content

Commit a42412c

Browse files
committed
ux: style for squash popup
1 parent 184c89e commit a42412c

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

src/Resources/Locales/en_US.axaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@
533533
<x:String x:Key="Text.SelfUpdate.Title" xml:space="preserve">Software Update</x:String>
534534
<x:String x:Key="Text.SelfUpdate.UpToDate" xml:space="preserve">There are currently no updates available.</x:String>
535535
<x:String x:Key="Text.Squash" xml:space="preserve">Squash Commits</x:String>
536+
<x:String x:Key="Text.Squash.Into" xml:space="preserve">Into:</x:String>
536537
<x:String x:Key="Text.SSHKey" xml:space="preserve">SSH Private Key:</x:String>
537538
<x:String x:Key="Text.SSHKey.Placeholder" xml:space="preserve">Private SSH key store path</x:String>
538539
<x:String x:Key="Text.Start" xml:space="preserve">START</x:String>

src/Resources/Locales/zh_CN.axaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@
535535
<x:String x:Key="Text.SelfUpdate.Title" xml:space="preserve">软件更新</x:String>
536536
<x:String x:Key="Text.SelfUpdate.UpToDate" xml:space="preserve">当前已是最新版本。</x:String>
537537
<x:String x:Key="Text.Squash" xml:space="preserve">压缩为单个提交</x:String>
538+
<x:String x:Key="Text.Squash.Into" xml:space="preserve">合并入:</x:String>
538539
<x:String x:Key="Text.SSHKey" xml:space="preserve">SSH密钥 :</x:String>
539540
<x:String x:Key="Text.SSHKey.Placeholder" xml:space="preserve">SSH密钥文件</x:String>
540541
<x:String x:Key="Text.Start" xml:space="preserve">开 始</x:String>

src/Resources/Locales/zh_TW.axaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@
536536
<x:String x:Key="Text.SelfUpdate.Title" xml:space="preserve">軟體更新</x:String>
537537
<x:String x:Key="Text.SelfUpdate.UpToDate" xml:space="preserve">目前已是最新版本。</x:String>
538538
<x:String x:Key="Text.Squash" xml:space="preserve">壓縮為單個提交</x:String>
539+
<x:String x:Key="Text.Squash.Into" xml:space="preserve">合併入:</x:String>
539540
<x:String x:Key="Text.SSHKey" xml:space="preserve">SSH 金鑰:</x:String>
540541
<x:String x:Key="Text.SSHKey.Placeholder" xml:space="preserve">SSH 金鑰檔案</x:String>
541542
<x:String x:Key="Text.Start" xml:space="preserve">開 始</x:String>

src/Views/Squash.axaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,19 @@
1313
Classes="bold"
1414
Text="{DynamicResource Text.Squash}"/>
1515

16-
<Grid Margin="0,18,0,0" ColumnDefinitions="Auto,Auto,*">
17-
<Path Grid.Column="0"
18-
Margin="2,6,8,0"
16+
<Grid Margin="0,18,0,0" ColumnDefinitions="Auto,Auto,Auto,*">
17+
<TextBlock Grid.Column="0"
18+
Text="{DynamicResource Text.Squash.Into}"/>
19+
<Path Grid.Column="1"
20+
Margin="8,6,8,0"
1921
Width="14" Height="14"
2022
Fill="{DynamicResource Brush.FG1}"
2123
Data="{StaticResource Icons.Commit}"/>
22-
<TextBlock Grid.Column="1"
24+
<TextBlock Grid.Column="2"
2325
Classes="primary"
2426
Text="{Binding Target.SHA, Converter={x:Static c:StringConverters.ToShortSHA}}"
2527
Foreground="DarkOrange"/>
26-
<TextBlock Grid.Column="2" Margin="8,0,0,0" Text="{Binding Target.Subject}" TextTrimming="CharacterEllipsis"/>
28+
<TextBlock Grid.Column="3" Margin="8,0,0,0" Text="{Binding Target.Subject}" TextTrimming="CharacterEllipsis"/>
2729
</Grid>
2830

2931
<v:CommitMessageTextBox Height="120" Margin="0,4,0,0" Text="{Binding Message, Mode=TwoWay}"/>

0 commit comments

Comments
 (0)