Skip to content

Commit 75420c0

Browse files
Merge pull request #117 from nullinside-development-group/bug/volume
Bug/volume
2 parents c16f5bc + 51ac4f6 commit 75420c0

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

src/TwitchStreamingTools/ViewModels/Pages/ChatViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ from user in _selectedTwitchChatNames
169169
OutputDevice = Configuration.GetDefaultAudioDevice(),
170170
TtsOn = true,
171171
TtsVoice = Configuration.GetDefaultTtsVoice(),
172-
TtsVolume = 50
172+
TtsVolume = Configuration.GetDefaultTtsVolume() ?? 50u
173173
}).ToList();
174174

175175
_configuration.WriteConfiguration();
@@ -194,7 +194,7 @@ from user in _selectedTwitchChatNames
194194
OutputDevice = Configuration.GetDefaultAudioDevice(),
195195
TtsOn = true,
196196
TtsVoice = Configuration.GetDefaultTtsVoice(),
197-
TtsVolume = 50
197+
TtsVolume = Configuration.GetDefaultTtsVolume() ?? 50u
198198
}).ToList();
199199

200200
_configuration.WriteConfiguration();

src/TwitchStreamingTools/Views/MainWindow.axaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,32 +19,65 @@
1919
Icon="/Assets/logo.ico"
2020
Title="Twitch Streaming Tools">
2121
<Window.Styles>
22+
<Style Selector="Slider">
23+
<Setter Property="FocusAdorner">
24+
<FocusAdornerTemplate>
25+
<Rectangle Stroke="rgb(204, 200, 175)" StrokeThickness="2" />
26+
</FocusAdornerTemplate>
27+
</Setter>
28+
</Style>
29+
<Style Selector="CheckBox">
30+
<Setter Property="FocusAdorner">
31+
<FocusAdornerTemplate>
32+
<Rectangle Stroke="rgb(204, 200, 175)" StrokeThickness="2" />
33+
</FocusAdornerTemplate>
34+
</Setter>
35+
</Style>
2236
<Style Selector="Label">
2337
<Setter Property="Foreground">rgb(204, 200, 175)</Setter>
2438
</Style>
2539
<Style Selector="TextBox">
2640
<Setter Property="Foreground">rgb(204, 200, 175)</Setter>
41+
<Setter Property="SelectionBrush">rgb(54, 52, 46)</Setter>
2742
</Style>
2843
<Style Selector="TextBox:focus">
2944
<Setter Property="Foreground">rgb(204, 200, 175)</Setter>
3045
</Style>
46+
<Style Selector="TextBox:focus /template/ Border#PART_BorderElement">
47+
<Setter Property="BorderBrush">rgb(204, 200, 175)</Setter>
48+
</Style>
3149
<Style Selector="TextBlock">
3250
<Setter Property="Foreground">rgb(204, 200, 175)</Setter>
3351
</Style>
3452
<Style Selector="Button">
3553
<Setter Property="Background">#353332</Setter>
3654
<Setter Property="Foreground">rgb(204, 200, 175)</Setter>
55+
<Setter Property="FocusAdorner">
56+
<FocusAdornerTemplate>
57+
<Rectangle Stroke="rgb(204, 200, 175)" StrokeThickness="2" />
58+
</FocusAdornerTemplate>
59+
</Setter>
3760
</Style>
3861
<Style Selector="ListBoxItem">
3962
<Setter Property="Background">#353332</Setter>
4063
<Setter Property="Foreground">rgb(204, 200, 175)</Setter>
64+
<Setter Property="FocusAdorner">
65+
<FocusAdornerTemplate>
66+
<Rectangle Stroke="rgb(204, 200, 175)" StrokeThickness="2" />
67+
</FocusAdornerTemplate>
68+
</Setter>
4169
</Style>
4270
<Style Selector="ListBoxItem:selected /template/ ContentPresenter">
4371
<Setter Property="Background">#4F4D4C</Setter>
4472
<Setter Property="Foreground">rgb(204, 200, 175)</Setter>
4573
</Style>
4674
<Style Selector="PathIcon">
4775
<Setter Property="Foreground">rgb(204, 200, 175)</Setter>
76+
<Setter Property="FocusAdorner">
77+
<FocusAdornerTemplate>
78+
<Rectangle Stroke="rgb(204, 200, 175)" StrokeThickness="2" />
79+
</FocusAdornerTemplate>
80+
</Setter>
4881
</Style>
4982
</Window.Styles>
5083

0 commit comments

Comments
 (0)