mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Change the Button Label Text to Icon
This commit is contained in:
parent
6e34218f8e
commit
2f63079d5a
1 changed files with 26 additions and 12 deletions
|
|
@ -5,6 +5,7 @@
|
|||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:input="clr-namespace:System.Windows.Input;assembly=PresentationCore"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:ui="http://schemas.modernwpf.com/2019"
|
||||
d:DesignWidth="300"
|
||||
mc:Ignorable="d">
|
||||
<Grid>
|
||||
|
|
@ -40,12 +41,12 @@
|
|||
|
||||
<ToggleButton
|
||||
x:Name="HotkeyBtn"
|
||||
Click="OnStartRecordingClicked"
|
||||
FontSize="13"
|
||||
FontWeight="Bold"
|
||||
Foreground="{DynamicResource Color01B}"
|
||||
Click="OnStartRecordingClicked"
|
||||
PreviewKeyDown="OnPreviewKeyDown"
|
||||
KeyboardNavigation.TabNavigation="Continue">
|
||||
KeyboardNavigation.TabNavigation="Continue"
|
||||
PreviewKeyDown="OnPreviewKeyDown">
|
||||
<ToggleButton.Template>
|
||||
<ControlTemplate TargetType="ToggleButton">
|
||||
<Grid>
|
||||
|
|
@ -56,15 +57,31 @@
|
|||
<Border
|
||||
x:Name="MenuBorder"
|
||||
Grid.Column="0"
|
||||
Margin="0,0,5,0"
|
||||
Padding="5,0,5,0"
|
||||
Background="{DynamicResource Color12B}"
|
||||
BorderBrush="{DynamicResource ButtonInsideBorder}"
|
||||
BorderThickness="1"
|
||||
CornerRadius="5">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button Content="Reset" Click="OnResetToDefaultClicked" />
|
||||
<Button Content="Delete" Click="OnDeleteClicked" />
|
||||
<Button Content="Stop Rec" Click="OnStopRecordingClicked" />
|
||||
<Button Margin="2" Click="OnResetToDefaultClicked">
|
||||
<Button.Content>
|
||||
<ui:FontIcon FontSize="13" Glyph="" />
|
||||
</Button.Content>
|
||||
</Button>
|
||||
<Button Margin="2" Click="OnDeleteClicked">
|
||||
<Button.Content>
|
||||
<ui:FontIcon FontSize="13" Glyph="" />
|
||||
</Button.Content>
|
||||
</Button>
|
||||
<Button
|
||||
Margin="2"
|
||||
Click="OnStopRecordingClicked"
|
||||
Foreground="red">
|
||||
<Button.Content>
|
||||
<ui:FontIcon FontSize="13" Glyph="" />
|
||||
</Button.Content>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
|
|
@ -81,14 +98,11 @@
|
|||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="ButtonBorder" Property="Background"
|
||||
Value="{DynamicResource CustomContextHover}" />
|
||||
<Setter TargetName="ButtonBorder" Property="Background" Value="{DynamicResource CustomContextHover}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="True">
|
||||
<Setter TargetName="ButtonBorder" Property="Background"
|
||||
Value="{DynamicResource ButtonMousePressed}" />
|
||||
<Setter TargetName="ButtonBorder" Property="BorderBrush"
|
||||
Value="{DynamicResource ButtonMousePressedInsideBorder}" />
|
||||
<Setter TargetName="ButtonBorder" Property="Background" Value="{DynamicResource ButtonMousePressed}" />
|
||||
<Setter TargetName="ButtonBorder" Property="BorderBrush" Value="{DynamicResource ButtonMousePressedInsideBorder}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsChecked" Value="True">
|
||||
<Setter TargetName="MenuBorder" Property="Visibility" Value="Visible" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue