File tree Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Diagnostics ;
3
3
using System . Reactive ;
4
+ using System . Reflection ;
4
5
using System . Threading . Tasks ;
5
6
6
7
using ReactiveUI ;
@@ -79,6 +80,11 @@ public string? TwitchUsername {
79
80
set => this . RaiseAndSetIfChanged ( ref _twitchUsername , value ) ;
80
81
}
81
82
83
+ /// <summary>
84
+ /// The application version number.
85
+ /// </summary>
86
+ public string ? Version => Assembly . GetEntryAssembly ( ) ? . GetName ( ) . Version ? . ToString ( ) ;
87
+
82
88
/// <inheritdoc />
83
89
public void Dispose ( ) {
84
90
_clipboardPoller ? . Dispose ( ) ;
Original file line number Diff line number Diff line change 22
22
Icon =" /Assets/logo.ico"
23
23
Title =" Twitch Streaming Tools" >
24
24
<Window .Styles>
25
+ <Style Selector =" Label" >
26
+ <Setter Property =" Foreground" >rgb(204, 200, 175)</Setter >
27
+ </Style >
28
+ <Style Selector =" TextBox" >
29
+ <Setter Property =" Foreground" >rgb(204, 200, 175)</Setter >
30
+ </Style >
31
+ <Style Selector =" TextBox:focus" >
32
+ <Setter Property =" Foreground" >rgb(204, 200, 175)</Setter >
33
+ </Style >
25
34
<Style Selector =" TextBlock" >
26
35
<Setter Property =" Foreground" >rgb(204, 200, 175)</Setter >
27
36
</Style >
Original file line number Diff line number Diff line change 4
4
using System . Threading . Tasks ;
5
5
6
6
using Avalonia . Controls ;
7
- using Avalonia . Threading ;
8
7
9
8
using Nullinside . Api . Common . Desktop ;
10
-
11
- using TwitchStreamingTools . ViewModels ;
12
9
#if ! DEBUG
13
10
using Microsoft . Extensions . DependencyInjection ;
14
11
12
+ using Avalonia . Threading ;
13
+
14
+ using TwitchStreamingTools . ViewModels ;
15
15
#else
16
16
using Avalonia ;
17
17
#endif
Original file line number Diff line number Diff line change 14
14
<DockPanel HorizontalAlignment =" Stretch"
15
15
VerticalAlignment =" Stretch"
16
16
Name =" ContentWrapper" >
17
+ <Label HorizontalAlignment =" Right"
18
+ VerticalAlignment =" Top"
19
+ DockPanel.Dock=" Top"
20
+ Content =" {Binding Version, StringFormat='Version: {0}'}" />
17
21
<StackPanel Orientation =" Vertical"
18
22
HorizontalAlignment =" Center"
19
23
VerticalAlignment =" Center"
24
+ DockPanel.Dock=" Top"
20
25
Spacing =" 25" >
21
26
<Image Width =" 200" Source =" /Assets/twitch-wordart.png" />
22
27
<Button IsVisible =" {Binding !HasValidOAuthToken}"
You can’t perform that action at this time.
0 commit comments