Skip to content

Commit de21a43

Browse files
committed
Adjust Template
1 parent 3f1267f commit de21a43

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Flow.Launcher/Languages/en.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
<system:String x:Key="shadowEffectNotAllowed">Shadow effect is not allowed while current theme has blur effect enabled</system:String>
110110
<system:String x:Key="searchDelay">Search Delay</system:String>
111111
<system:String x:Key="searchDelayToolTip">Adds a short delay while typing to reduce UI flicker and result load. Recommended if your typing speed is average.</system:String>
112+
<system:String x:Key="searchDelayNumberBoxToolTip">Enter the wait time (in ms) until input is considered complete. This can only be edited if Search Delay is enabled.</system:String>
112113
<system:String x:Key="searchDelayTime">Default Search Delay Time</system:String>
113114
<system:String x:Key="searchDelayTimeToolTip">Wait time before showing results after typing stops. Higher values wait longer. (ms)</system:String>
114115

Flow.Launcher/Resources/Controls/InstalledPluginDisplay.xaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,11 @@
9696
PlaceholderText="{Binding DefaultSearchDelay}"
9797
SmallChange="10"
9898
SpinButtonPlacementMode="Compact"
99-
ToolTip="{DynamicResource searchDelayToolTip}"
99+
ToolTip="{DynamicResource searchDelayNumberBoxToolTip}"
100+
ToolTipService.InitialShowDelay="0"
101+
ToolTipService.ShowOnDisabled="True"
100102
Value="{Binding PluginSearchDelayTime, Mode=TwoWay}" />
103+
101104
</StackPanel>
102105

103106
<!-- Put OnOffControl after PriorityControl & SearchDelayControl so that it can display correctly -->

Flow.Launcher/Resources/CustomControlTemplate.xaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2784,10 +2784,12 @@
27842784
</Trigger>
27852785
<Trigger Property="IsEnabled" Value="false">
27862786
<Setter TargetName="HeaderContentPresenter" Property="Foreground" Value="{DynamicResource TextControlHeaderForegroundDisabled}" />
2787-
<Setter Property="Background" Value="{DynamicResource TextControlBackgroundDisabled}" />
2787+
<Setter Property="Background" Value="{DynamicResource CustomNumberBoxBGDisabled}" />
27882788
<Setter TargetName="BorderElementInline" Property="Background" Value="{DynamicResource TextControlBackgroundDisabled}" />
27892789
<Setter TargetName="BorderElement" Property="BorderBrush" Value="{DynamicResource TextControlBorderBrushDisabled}" />
2790-
<Setter Property="Foreground" Value="{DynamicResource TextControlForegroundDisabled}" />
2790+
<Setter TargetName="BorderElement" Property="BorderThickness" Value="0 0 0 0" />
2791+
<Setter TargetName="BorderElementInline" Property="BorderThickness" Value="0 0 0 0" />
2792+
<Setter Property="Foreground" Value="{DynamicResource TextControlPlaceholderForegroundDisabled}" />
27912793
<Setter TargetName="PlaceholderTextContentPresenter" Property="Foreground" Value="{DynamicResource TextControlPlaceholderForegroundDisabled}" />
27922794
</Trigger>
27932795
<Trigger Property="IsMouseOver" Value="true">
@@ -2873,7 +2875,7 @@
28732875
FontFamily="{TemplateBinding FontFamily}"
28742876
FontSize="{TemplateBinding FontSize}"
28752877
FontWeight="{TemplateBinding FontWeight}"
2876-
Foreground="{TemplateBinding Foreground}"
2878+
Foreground="{DynamicResource ForeGround}"
28772879
InputScope="{TemplateBinding InputScope}"
28782880
SelectionBrush="{TemplateBinding SelectionBrush}"
28792881
TextAlignment="{TemplateBinding TextAlignment}" />

0 commit comments

Comments
 (0)