Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 54a2874

Browse files
committed
Message Style
1 parent ffc0401 commit 54a2874

4 files changed

Lines changed: 44 additions & 3 deletions

File tree

System.Application.SteamTools.Client.Desktop.Avalonia/Application/UI/Windows/MessageWindow.axaml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,24 @@
55
mc:Ignorable="d" d:DesignWidth="300" d:DesignHeight="200"
66
x:Class="System.Application.UI.Windows.MessageWindow"
77
Title="{Binding Title}">
8-
<Grid>
9-
<TextBlock Text="{Binding Content}"></TextBlock>
8+
<Grid RowDefinitions="Auto,Auto">
9+
<StackPanel Margin="12">
10+
<DockPanel>
11+
<TextBlock Text="{Binding Content}"
12+
Margin="12,0"
13+
HorizontalAlignment="Left"
14+
TextWrapping="WrapWithOverflow"
15+
VerticalAlignment="Center"></TextBlock>
16+
</DockPanel>
17+
<Border Height="12" />
18+
19+
<Border Background="{DynamicResource SystemControlHighlightBaseLowBrush}" BorderThickness="1" Margin="10 15"/>
20+
</StackPanel>
21+
<WrapPanel Grid.Row="1"
22+
HorizontalAlignment="Right"
23+
Margin="6,-6,6,6">
24+
<Button MinWidth="110" Padding="30,6" Margin="6" IsDefault="True"></Button>
25+
<Button MinWidth="110" Padding="30,6" Margin="6" IsCancel="True"></Button>
26+
</WrapPanel>
1027
</Grid>
1128
</Window>

System.Application.SteamTools.Client.Desktop/UI/Resx/AppResources.Designer.cs

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

System.Application.SteamTools.Client.Desktop/UI/Resx/AppResources.resx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,15 @@
141141
<data name="ArchiSteamFarmPlus" xml:space="preserve">
142142
<value>ASF Plus</value>
143143
</data>
144+
<data name="Cancel" xml:space="preserve">
145+
<value>取消</value>
146+
</data>
144147
<data name="CommunityFix" xml:space="preserve">
145148
<value>社区加速</value>
146149
</data>
150+
<data name="Confirm" xml:space="preserve">
151+
<value>确定</value>
152+
</data>
147153
<data name="GameList" xml:space="preserve">
148154
<value>库存游戏</value>
149155
</data>

source/SteamTools/Views/Window/MessageDialog.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
Foreground="{DynamicResource ActiveForegroundBrushKey}"
5050
Margin="12,0"
5151
HorizontalAlignment="Left"
52-
TextWrapping="WrapWithOverflow"
52+
TextWrapping="WrapWithOverflow"
5353
VerticalAlignment="Center" />
5454
</DockPanel>
5555

0 commit comments

Comments
 (0)