mirror of
https://github.com/Stone-Red-Code/Decho.git
synced 2026-09-04 00:46:11 +02:00
Fix IconButton style for transparent button backgrounds and hover effects
This commit is contained in:
@@ -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>
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user