mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add PlaceHolder Text in Searchbox
This commit is contained in:
parent
919ea0d3b3
commit
dff67ac670
2 changed files with 65 additions and 4 deletions
|
|
@ -53,6 +53,7 @@
|
||||||
|
|
||||||
<!-- Setting Plugin -->
|
<!-- Setting Plugin -->
|
||||||
<system:String x:Key="plugin">Plugins</system:String>
|
<system:String x:Key="plugin">Plugins</system:String>
|
||||||
|
<system:String x:Key="searchplugin">Search Plugin</system:String>
|
||||||
<system:String x:Key="browserMorePlugins">Find more plugins</system:String>
|
<system:String x:Key="browserMorePlugins">Find more plugins</system:String>
|
||||||
<system:String x:Key="enable">On</system:String>
|
<system:String x:Key="enable">On</system:String>
|
||||||
<system:String x:Key="disable">Off</system:String>
|
<system:String x:Key="disable">Off</system:String>
|
||||||
|
|
|
||||||
|
|
@ -919,7 +919,7 @@
|
||||||
<DockPanel DockPanel.Dock="Right">
|
<DockPanel DockPanel.Dock="Right">
|
||||||
<TextBox
|
<TextBox
|
||||||
Name="pluginFilterTxb"
|
Name="pluginFilterTxb"
|
||||||
Width="150"
|
Width="250"
|
||||||
Height="34"
|
Height="34"
|
||||||
Margin="0,5,26,0"
|
Margin="0,5,26,0"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
|
|
@ -927,7 +927,37 @@
|
||||||
FontSize="14"
|
FontSize="14"
|
||||||
Text=""
|
Text=""
|
||||||
TextAlignment="Left"
|
TextAlignment="Left"
|
||||||
TextChanged="OnPluginSearchTextChanged" />
|
TextChanged="OnPluginSearchTextChanged">
|
||||||
|
<TextBox.Style>
|
||||||
|
<Style BasedOn="{StaticResource DefaultTextBoxStyle}" TargetType="TextBox">
|
||||||
|
<Style.Resources>
|
||||||
|
<VisualBrush
|
||||||
|
x:Key="CueBannerBrush"
|
||||||
|
AlignmentX="Left"
|
||||||
|
AlignmentY="Center"
|
||||||
|
Stretch="None">
|
||||||
|
<VisualBrush.Visual>
|
||||||
|
<Label
|
||||||
|
Padding="10,0,0,0"
|
||||||
|
Content="{DynamicResource searchplugin}"
|
||||||
|
Foreground="{DynamicResource CustomContextDisabled}" />
|
||||||
|
</VisualBrush.Visual>
|
||||||
|
</VisualBrush>
|
||||||
|
</Style.Resources>
|
||||||
|
<Style.Triggers>
|
||||||
|
<Trigger Property="Text" Value="{x:Static sys:String.Empty}">
|
||||||
|
<Setter Property="Background" Value="{StaticResource CueBannerBrush}" />
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="Text" Value="{x:Null}">
|
||||||
|
<Setter Property="Background" Value="{StaticResource CueBannerBrush}" />
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="IsKeyboardFocused" Value="True">
|
||||||
|
<Setter Property="Background" Value="{DynamicResource Color02B}" />
|
||||||
|
</Trigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</TextBox.Style>
|
||||||
|
</TextBox>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
@ -1319,14 +1349,44 @@
|
||||||
DockPanel.Dock="Right"
|
DockPanel.Dock="Right"
|
||||||
FontSize="13" />
|
FontSize="13" />
|
||||||
<TextBox
|
<TextBox
|
||||||
Width="150"
|
Width="250"
|
||||||
Height="34"
|
Height="34"
|
||||||
Margin="0,0,6,0"
|
Margin="0,0,6,0"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
DockPanel.Dock="Right"
|
DockPanel.Dock="Right"
|
||||||
FontSize="14"
|
FontSize="14"
|
||||||
Text=""
|
Text=""
|
||||||
TextAlignment="Left" />
|
TextAlignment="Left">
|
||||||
|
<TextBox.Style>
|
||||||
|
<Style BasedOn="{StaticResource DefaultTextBoxStyle}" TargetType="TextBox">
|
||||||
|
<Style.Resources>
|
||||||
|
<VisualBrush
|
||||||
|
x:Key="CueBannerBrush"
|
||||||
|
AlignmentX="Left"
|
||||||
|
AlignmentY="Center"
|
||||||
|
Stretch="None">
|
||||||
|
<VisualBrush.Visual>
|
||||||
|
<Label
|
||||||
|
Padding="10,0,0,0"
|
||||||
|
Content="{DynamicResource searchplugin}"
|
||||||
|
Foreground="{DynamicResource CustomContextDisabled}" />
|
||||||
|
</VisualBrush.Visual>
|
||||||
|
</VisualBrush>
|
||||||
|
</Style.Resources>
|
||||||
|
<Style.Triggers>
|
||||||
|
<Trigger Property="Text" Value="{x:Static sys:String.Empty}">
|
||||||
|
<Setter Property="Background" Value="{StaticResource CueBannerBrush}" />
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="Text" Value="{x:Null}">
|
||||||
|
<Setter Property="Background" Value="{StaticResource CueBannerBrush}" />
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="IsKeyboardFocused" Value="True">
|
||||||
|
<Setter Property="Background" Value="{DynamicResource Color02B}" />
|
||||||
|
</Trigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</TextBox.Style>
|
||||||
|
</TextBox>
|
||||||
|
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
<Border
|
<Border
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue