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> <Application.Styles>
<RomzetronTheme /> <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.Styles>
</Application> </Application>
+2 -1
View File
@@ -24,7 +24,8 @@
Foreground="{DynamicResource UiTheme08}" Foreground="{DynamicResource UiTheme08}"
Command="{Binding ToggleUsersPanelCommand}" Command="{Binding ToggleUsersPanelCommand}"
VerticalAlignment="Top" VerticalAlignment="Top"
HorizontalAlignment="Right" /> HorizontalAlignment="Right"
Classes="IconButton" />
</Grid> </Grid>
<views:MessageListView Grid.Row="2" /> <views:MessageListView Grid.Row="2" />
<views:MessageComposerView Grid.Row="3" <views:MessageComposerView Grid.Row="3"
+4 -2
View File
@@ -27,7 +27,8 @@
DockPanel.Dock="Right" DockPanel.Dock="Right"
Background="Transparent" Background="Transparent"
Foreground="{DynamicResource UiTheme08}" Foreground="{DynamicResource UiTheme08}"
HorizontalAlignment="Right" /> HorizontalAlignment="Right"
Classes="IconButton" />
<Button i:Attached.Icon="fa-plus" <Button i:Attached.Icon="fa-plus"
Command="{Binding AddServerCommand}" Command="{Binding AddServerCommand}"
@@ -35,7 +36,8 @@
Background="Transparent" Background="Transparent"
Foreground="{DynamicResource UiTheme08}" Foreground="{DynamicResource UiTheme08}"
HorizontalAlignment="Right" HorizontalAlignment="Right"
ToolTip.Tip="Add Server" /> ToolTip.Tip="Add Server"
Classes="IconButton" />
</DockPanel> </DockPanel>
<views:SidebarView Grid.Row="1" <views:SidebarView Grid.Row="1"
Grid.Column="0" Grid.Column="0"
+2 -1
View File
@@ -38,7 +38,8 @@
Foreground="{DynamicResource UiTheme08}" Foreground="{DynamicResource UiTheme08}"
VerticalAlignment="Center" VerticalAlignment="Center"
i:Attached.Icon="fa-cog" i:Attached.Icon="fa-cog"
Click="OnSettingsClicked"> Click="OnSettingsClicked"
Classes="IconButton">
<Button.ContextMenu> <Button.ContextMenu>
<ContextMenu> <ContextMenu>
<MenuItem Header="Connect" <MenuItem Header="Connect"