Skip to content

Commit 1af8101

Browse files
authored
Merge branch 'dev' into clock
2 parents 52cd8a8 + a200ada commit 1af8101

File tree

23 files changed

+110
-38
lines changed

23 files changed

+110
-38
lines changed

Flow.Launcher.Plugin/Result.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ public string IcoPath
6666
}
6767
}
6868
}
69+
/// <summary>
70+
/// Determines if Icon has a border radius
71+
/// </summary>
72+
public bool RoundedIcon { get; set; } = false;
6973

7074
/// <summary>
7175
/// Delegate function, see <see cref="Icon"/>

Flow.Launcher/ActionKeywords.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
<TextBlock
5959
Grid.Column="0"
6060
Margin="0,0,0,0"
61-
FontFamily="Segoe UI"
6261
FontSize="20"
6362
FontWeight="SemiBold"
6463
Text="{DynamicResource actionKeywordsTitle}"

Flow.Launcher/CustomQueryHotkeySetting.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
<TextBlock
6565
Grid.Column="0"
6666
Margin="0,0,0,0"
67-
FontFamily="Segoe UI"
6867
FontSize="20"
6968
FontWeight="SemiBold"
7069
Text="{DynamicResource customeQueryHotkeyTitle}"

Flow.Launcher/Languages/en.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
<system:String x:Key="plugin_query_time">Query time:</system:String>
8080
<system:String x:Key="plugin_query_version">| Version</system:String>
8181
<system:String x:Key="plugin_query_web">Website</system:String>
82+
<system:String x:Key="plugin_uninstall">Uninstall</system:String>
8283

8384

8485
<!-- Setting Plugin Store -->

Flow.Launcher/MainWindow.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@
174174
PreviewDragOver="OnPreviewDragOver"
175175
Style="{DynamicResource QueryBoxStyle}"
176176
Text="{Binding QueryText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
177+
PreviewKeyUp="QueryTextBox_KeyUp"
177178
Visibility="Visible">
178179
<TextBox.CommandBindings>
179180
<CommandBinding Command="ApplicationCommands.Copy" Executed="OnCopy" />

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
using System.Windows.Threading;
2424
using System.Globalization;
2525
using System.Reflection.Emit;
26+
using System.Windows.Data;
27+
using System.Diagnostics;
2628

2729
namespace Flow.Launcher
2830
{
@@ -598,5 +600,14 @@ public void InitializeColorScheme()
598600
ModernWpf.ThemeManager.Current.ApplicationTheme = ModernWpf.ApplicationTheme.Dark;
599601
}
600602
}
603+
604+
private void QueryTextBox_KeyUp(object sender, KeyEventArgs e)
605+
{
606+
if(_viewModel.QueryText != QueryTextBox.Text)
607+
{
608+
BindingExpression be = QueryTextBox.GetBindingExpression(System.Windows.Controls.TextBox.TextProperty);
609+
be.UpdateSource();
610+
}
611+
}
601612
}
602613
}

Flow.Launcher/PriorityChangeWindow.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
<TextBlock
6464
Grid.Column="0"
6565
Margin="0,0,0,0"
66-
FontFamily="Segoe UI"
6766
FontSize="20"
6867
FontWeight="SemiBold"
6968
Text="{DynamicResource changePriorityWindow}"

Flow.Launcher/Resources/CustomControlTemplate.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
</Style>
3030
<Style x:Key="TabMenu" TargetType="{x:Type TextBlock}">
3131
<Setter Property="FontSize" Value="14" />
32-
<Setter Property="FontFamily" Value="Segoe UI" />
3332
<Setter Property="VerticalAlignment" Value="Center" />
3433
<Setter Property="Foreground" Value="{DynamicResource Color05B}" />
3534
</Style>
@@ -2724,7 +2723,8 @@
27242723
Background="{DynamicResource CustomContextBackground}"
27252724
BorderBrush="{DynamicResource CustomContextBorder}"
27262725
BorderThickness="1"
2727-
CornerRadius="8">
2726+
CornerRadius="8"
2727+
UseLayoutRounding="True">
27282728
<Border.Effect>
27292729
<DropShadowEffect
27302730
BlurRadius="12"

Flow.Launcher/ResultListBox.xaml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,17 @@
8282
BorderThickness="0">
8383
<Image
8484
x:Name="ImageIcon"
85-
Width="32"
86-
Height="32"
85+
Width="{Binding IconXY}"
86+
Height="{Binding IconXY}"
8787
Margin="0,0,0,0"
8888
HorizontalAlignment="Center"
8989
Source="{Binding Image, TargetNullValue={x:Null}}"
9090
Stretch="Uniform"
91-
Visibility="{Binding ShowIcon}" />
91+
Visibility="{Binding ShowIcon}">
92+
<Image.Clip>
93+
<EllipseGeometry RadiusX="{Binding IconRadius}" RadiusY="{Binding IconRadius}" Center="16 16"/>
94+
</Image.Clip>
95+
</Image>
9296
</Border>
9397
<Border
9498
Margin="9,0,0,0"
@@ -114,8 +118,18 @@
114118
<ProgressBar
115119
x:Name="progressbarResult"
116120
Foreground="{Binding Result.ProgressBarColor}"
117-
Style="{DynamicResource ProgressBarResult}"
118-
Value="{Binding Result.ProgressBar}" />
121+
Value="{Binding ResultProgress, Mode=OneWay}">
122+
<ProgressBar.Style>
123+
<Style TargetType="ProgressBar" BasedOn="{StaticResource ProgressBarResult}">
124+
<Setter Property="Visibility" Value="Visible"/>
125+
<Style.Triggers>
126+
<DataTrigger Binding="{Binding Result.ProgressBar}" Value="{x:Null}">
127+
<Setter Property="Visibility" Value="Collapsed"/>
128+
</DataTrigger>
129+
</Style.Triggers>
130+
</Style>
131+
</ProgressBar.Style>
132+
</ProgressBar>
119133
<TextBlock
120134
x:Name="Title"
121135
VerticalAlignment="Center"

Flow.Launcher/SelectBrowserWindow.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
<TextBlock
6363
Grid.Column="0"
6464
Margin="0,0,0,0"
65-
FontFamily="Segoe UI"
6665
FontSize="20"
6766
FontWeight="SemiBold"
6867
Text="{DynamicResource defaultBrowserTitle}"

0 commit comments

Comments
 (0)