|
74 | 74 | </DataTrigger> |
75 | 75 | </Style.Triggers> |
76 | 76 | </Style> |
| 77 | + <SolidColorBrush x:Key="VolumeSelectedBackgroundBrush" |
| 78 | + Color="{DynamicResource ControlStrongFillColorDefault}" |
| 79 | + Opacity="0.22" /> |
| 80 | + <SolidColorBrush x:Key="VolumeHoverBackgroundBrush" |
| 81 | + Color="{DynamicResource ControlStrongFillColorDefault}" |
| 82 | + Opacity="0.12" /> |
| 83 | + <SolidColorBrush x:Key="VolumeStrokeBrush" |
| 84 | + Color="{DynamicResource ControlStrongFillColorDefault}" |
| 85 | + Opacity="0.35" /> |
| 86 | + <Style x:Key="VolumeChoiceStyle" TargetType="RadioButton"> |
| 87 | + <Setter Property="Height" Value="28" /> |
| 88 | + <Setter Property="Background" Value="Transparent" /> |
| 89 | + <Setter Property="Foreground" Value="{DynamicResource TextFillColorPrimaryBrush}" /> |
| 90 | + <Setter Property="HorizontalContentAlignment" Value="Center" /> |
| 91 | + <Style.Triggers> |
| 92 | + <Trigger Property="IsMouseOver" Value="True"> |
| 93 | + <Setter Property="Background" Value="{StaticResource VolumeHoverBackgroundBrush}" /> |
| 94 | + </Trigger> |
| 95 | + <Trigger Property="IsChecked" Value="True"> |
| 96 | + <Setter Property="Background" Value="{StaticResource VolumeSelectedBackgroundBrush}" /> |
| 97 | + </Trigger> |
| 98 | + </Style.Triggers> |
| 99 | + </Style> |
| 100 | + <Style x:Key="LeftVolumeChoiceStyle" |
| 101 | + TargetType="RadioButton" |
| 102 | + BasedOn="{StaticResource VolumeChoiceStyle}"> |
| 103 | + <Setter Property="Template"> |
| 104 | + <Setter.Value> |
| 105 | + <ControlTemplate TargetType="RadioButton"> |
| 106 | + <Border Background="{TemplateBinding Background}" |
| 107 | + CornerRadius="3,0,0,3"> |
| 108 | + <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 109 | + VerticalAlignment="Center" /> |
| 110 | + </Border> |
| 111 | + </ControlTemplate> |
| 112 | + </Setter.Value> |
| 113 | + </Setter> |
| 114 | + </Style> |
| 115 | + <Style x:Key="RightVolumeChoiceStyle" |
| 116 | + TargetType="RadioButton" |
| 117 | + BasedOn="{StaticResource VolumeChoiceStyle}"> |
| 118 | + <Setter Property="Template"> |
| 119 | + <Setter.Value> |
| 120 | + <ControlTemplate TargetType="RadioButton"> |
| 121 | + <Border Background="{TemplateBinding Background}" |
| 122 | + CornerRadius="0,3,3,0"> |
| 123 | + <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 124 | + VerticalAlignment="Center" /> |
| 125 | + </Border> |
| 126 | + </ControlTemplate> |
| 127 | + </Setter.Value> |
| 128 | + </Setter> |
| 129 | + </Style> |
77 | 130 | </Window.Resources> |
78 | 131 | <Border Padding="12" |
79 | 132 | Background="Transparent" |
|
180 | 233 | </ToggleButton.ContextMenu> |
181 | 234 | </ToggleButton> |
182 | 235 |
|
183 | | - <TextBlock Grid.Row="2" Text="Volume control" VerticalAlignment="Center" Margin="0,0,8,12" /> |
184 | | - <ComboBox x:Name="ScrollVolumeComboBox" |
185 | | - Grid.Row="2" |
186 | | - Grid.Column="1" |
187 | | - Margin="0,0,0,12" |
188 | | - AutomationProperties.Name="Volume control" |
189 | | - SelectionChanged="Input_Changed"> |
190 | | - <ComboBoxItem Content="Current app" /> |
191 | | - <ComboBoxItem Content="System volume" /> |
192 | | - </ComboBox> |
193 | | - |
194 | | - <TextBlock Grid.Row="3" Text="Show app icons" VerticalAlignment="Center" Margin="0,0,8,12" /> |
| 236 | + <TextBlock Grid.Row="2" Text="Show app icons" VerticalAlignment="Center" Margin="0,0,8,12" /> |
195 | 237 | <ComboBox x:Name="AppIconModeComboBox" |
196 | | - Grid.Row="3" |
| 238 | + Grid.Row="2" |
197 | 239 | Grid.Column="1" |
198 | 240 | Margin="0,0,0,12" |
199 | 241 | AutomationProperties.Name="Show app icons" |
|
203 | 245 | <ComboBoxItem Content="Multiple sources" /> |
204 | 246 | </ComboBox> |
205 | 247 |
|
| 248 | + <TextBlock Grid.Row="3" Text="Volume control" VerticalAlignment="Center" Margin="0,0,8,12" /> |
| 249 | + <Border Grid.Row="3" |
| 250 | + Grid.Column="1" |
| 251 | + Margin="0,0,0,12" |
| 252 | + BorderBrush="{StaticResource VolumeStrokeBrush}" |
| 253 | + BorderThickness="1" |
| 254 | + CornerRadius="4"> |
| 255 | + <Grid> |
| 256 | + <Grid.ColumnDefinitions> |
| 257 | + <ColumnDefinition Width="*" /> |
| 258 | + <ColumnDefinition Width="1" /> |
| 259 | + <ColumnDefinition Width="*" /> |
| 260 | + </Grid.ColumnDefinitions> |
| 261 | + <RadioButton x:Name="VolumeCurrentAppRadio" |
| 262 | + Content="Current app" |
| 263 | + Style="{StaticResource LeftVolumeChoiceStyle}" |
| 264 | + AutomationProperties.Name="Current app volume" |
| 265 | + Checked="VolumeTarget_Checked" /> |
| 266 | + <Border Grid.Column="1" |
| 267 | + Background="{StaticResource VolumeStrokeBrush}" /> |
| 268 | + <RadioButton x:Name="VolumeSystemVolumeRadio" |
| 269 | + Grid.Column="2" |
| 270 | + Content="System" |
| 271 | + Style="{StaticResource RightVolumeChoiceStyle}" |
| 272 | + AutomationProperties.Name="System volume" |
| 273 | + Checked="VolumeTarget_Checked" /> |
| 274 | + </Grid> |
| 275 | + </Border> |
| 276 | + |
206 | 277 | <TextBlock Grid.Row="4" Text="Player size" VerticalAlignment="Center" Margin="0,0,8,0" /> |
207 | 278 | <Grid Grid.Row="4" Grid.Column="1"> |
208 | 279 | <Grid.ColumnDefinitions> |
|
0 commit comments