Skip to content

Commit c901f80

Browse files
committed
Improved settings' window layout for "Idling" block
1 parent b8132b2 commit c901f80

1 file changed

Lines changed: 33 additions & 15 deletions

File tree

VisualStudioDiscordRPC.Shared/Views/SettingsWindow.xaml

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -112,21 +112,39 @@
112112
IsChecked="{Binding UpdateNotificationsEnabled}">
113113
<TextBlock Text="Notify about extension updates"/>
114114
</CheckBox>
115-
<CheckBox Margin="5"
116-
IsChecked="{Binding DetectIdlingEnabled}">
117-
<TextBlock Text="Detect idling"/>
118-
</CheckBox>
119-
<CheckBox Margin="5"
120-
IsEnabled="{Binding DetectIdlingEnabled}"
121-
IsChecked="{Binding ResetTimersAfterIdling}">
122-
<TextBlock Text="Reset timers after idling"/>
123-
</CheckBox>
124-
<TextBlock Text="Idle time (minutes):"/>
125-
<TextBox Name="IdleTimeTextBox"
126-
IsEnabled="{Binding DetectIdlingEnabled}"
127-
Text="{Binding IdleTime}"
128-
PreviewTextInput="ValidateIdleTimeTextBox"/>
129-
115+
116+
<Expander Header="Idling"
117+
Margin="5 5 5 0">
118+
<StackPanel>
119+
<StackPanel
120+
Orientation="Horizontal"
121+
VerticalAlignment="Center"
122+
Margin="5 5 5 0"
123+
IsEnabled="{Binding DetectIdlingEnabled}">
124+
<CheckBox
125+
IsChecked="{Binding DetectIdlingEnabled}"
126+
VerticalAlignment="Center">
127+
<TextBlock Text="Detect idling after "/>
128+
</CheckBox>
129+
<TextBox Name="IdleTimeTextBox"
130+
VerticalAlignment="Center"
131+
TextAlignment="Center"
132+
VerticalContentAlignment="Center"
133+
Text="{Binding IdleTime}"
134+
MaxLength="5"
135+
PreviewTextInput="ValidateIdleTimeTextBox"
136+
Width="40"/>
137+
<TextBlock VerticalAlignment="Center"
138+
Text=" minutes"/>
139+
</StackPanel>
140+
<CheckBox Margin="5 3"
141+
IsEnabled="{Binding DetectIdlingEnabled}"
142+
IsChecked="{Binding ResetTimersAfterIdling}">
143+
<TextBlock Text="Reset timers after idling"/>
144+
</CheckBox>
145+
</StackPanel>
146+
</Expander>
147+
130148
<Expander Header="Advanced"
131149
Margin="5">
132150
<StackPanel Margin="5">

0 commit comments

Comments
 (0)