Skip to content

Commit

Permalink
Change ToggleButton theme in other controls
Browse files Browse the repository at this point in the history
  • Loading branch information
SKProCH committed Apr 28, 2024
1 parent 4ba5ca6 commit 3f4540c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Material.Styles/Resources/Themes/ComboBox.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
<Setter Property="Template">
<ControlTemplate>
<StackPanel Name="PART_TemplateRoot">
<ToggleButton Classes="NoFeedback TransparentBack"
<ToggleButton Classes="no-ripple"
MinHeight="48" BorderThickness="0"
HorizontalContentAlignment="Stretch"
IsChecked="{TemplateBinding IsDropDownOpen, Mode=TwoWay}"
Expand Down
5 changes: 2 additions & 3 deletions Material.Styles/Resources/Themes/DatePicker.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@
</TextBox.Text>
<TextBox.InnerRightContent>
<ToggleButton Name="CalendarButton"
Classes="Icon"
Width="36"
Height="36"
Theme="{StaticResource MaterialFlatToggleButton}"
Width="36" Height="36"
Margin="8 8 8 6">
<controls:MaterialInternalIcon Kind="Calendar"
Width="20"
Expand Down
2 changes: 1 addition & 1 deletion Material.Styles/Resources/Themes/TextBox.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
</ControlTheme>

<ControlTheme x:Key="RevealTextMaskToggleButtonTheme"
BasedOn="{StaticResource MaterialFlatToggleButton}"
BasedOn="{StaticResource MaterialFlatButton}"
TargetType="ToggleButton">
<Setter Property="Height" Value="32" />
<Setter Property="Width" Value="32" />
Expand Down
5 changes: 2 additions & 3 deletions Material.Styles/Resources/Themes/TimePicker.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@
</TextBox.Text>
<TextBox.InnerRightContent>
<ToggleButton Name="PART_TimePickerPopupButton"
Classes="Icon"
Width="36"
Height="36"
Theme="{StaticResource MaterialFlatToggleButton}"
Width="36" Height="36"
Margin="8 8 8 6">
<controls:MaterialInternalIcon Kind="Clock"
Width="20"
Expand Down

0 comments on commit 3f4540c

Please sign in to comment.