Fix IconButton style for transparent button backgrounds and hover effects

This commit is contained in:
Stone_Red
2026-07-16 16:46:17 +02:00
parent 3f6f6d3adb
commit b98a00b527
4 changed files with 17 additions and 4 deletions
+9
View File
@@ -11,5 +11,14 @@
<Application.Styles>
<RomzetronTheme />
<Style Selector="Button.IconButton">
<Setter Property="Background" Value="Transparent" />
<Style Selector="^:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="#15FFFFFF" />
</Style>
<Style Selector="^:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="#25FFFFFF" />
</Style>
</Style>
</Application.Styles>
</Application>
+2 -1
View File
@@ -24,7 +24,8 @@
Foreground="{DynamicResource UiTheme08}"
Command="{Binding ToggleUsersPanelCommand}"
VerticalAlignment="Top"
HorizontalAlignment="Right" />
HorizontalAlignment="Right"
Classes="IconButton" />
</Grid>
<views:MessageListView Grid.Row="2" />
<views:MessageComposerView Grid.Row="3"
+4 -2
View File
@@ -27,7 +27,8 @@
DockPanel.Dock="Right"
Background="Transparent"
Foreground="{DynamicResource UiTheme08}"
HorizontalAlignment="Right" />
HorizontalAlignment="Right"
Classes="IconButton" />
<Button i:Attached.Icon="fa-plus"
Command="{Binding AddServerCommand}"
@@ -35,7 +36,8 @@
Background="Transparent"
Foreground="{DynamicResource UiTheme08}"
HorizontalAlignment="Right"
ToolTip.Tip="Add Server" />
ToolTip.Tip="Add Server"
Classes="IconButton" />
</DockPanel>
<views:SidebarView Grid.Row="1"
Grid.Column="0"
+2 -1
View File
@@ -38,7 +38,8 @@
Foreground="{DynamicResource UiTheme08}"
VerticalAlignment="Center"
i:Attached.Icon="fa-cog"
Click="OnSettingsClicked">
Click="OnSettingsClicked"
Classes="IconButton">
<Button.ContextMenu>
<ContextMenu>
<MenuItem Header="Connect"