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>
|
<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>
|
||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user