Skip to content

Commit a0dff3f

Browse files
authored
Merge branch 'dev' into plugin_store_item_vm_null
2 parents c06e6d1 + 8e6eaf7 commit a0dff3f

File tree

67 files changed

+457
-330
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+457
-330
lines changed

Flow.Launcher.Plugin/EventHandler.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,14 @@ namespace Flow.Launcher.Plugin
3939
/// <param name="sender"></param>
4040
/// <param name="args"></param>
4141
public delegate void VisibilityChangedEventHandler(object sender, VisibilityChangedEventArgs args);
42-
42+
43+
/// <summary>
44+
/// A delegate for when the actual application theme is changed
45+
/// </summary>
46+
/// <param name="sender"></param>
47+
/// <param name="args"></param>
48+
public delegate void ActualApplicationThemeChangedEventHandler(object sender, ActualApplicationThemeChangedEventArgs args);
49+
4350
/// <summary>
4451
/// The event args for <see cref="VisibilityChangedEventHandler"/>
4552
/// </summary>
@@ -77,4 +84,15 @@ public class FlowLauncherQueryEventArgs
7784
/// </summary>
7885
public Query Query { get; set; }
7986
}
87+
88+
/// <summary>
89+
/// The event args for <see cref="ActualApplicationThemeChangedEventHandler"/>
90+
/// </summary>
91+
public class ActualApplicationThemeChangedEventArgs : EventArgs
92+
{
93+
/// <summary>
94+
/// <see langword="true"/> if the application has changed actual theme
95+
/// </summary>
96+
public bool IsDark { get; init; }
97+
}
8098
}

Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,5 +602,16 @@ public interface IPublicAPI
602602
/// </summary>
603603
/// <returns>The time taken to execute the method in milliseconds</returns>
604604
public Task<long> StopwatchLogInfoAsync(string className, string message, Func<Task> action, [CallerMemberName] string methodName = "");
605+
606+
/// <summary>
607+
/// Representing whether the application is using a dark theme
608+
/// </summary>
609+
/// <returns></returns>
610+
bool IsApplicationDarkTheme();
611+
612+
/// <summary>
613+
/// Invoked when the actual theme of the application has changed. Currently, the plugin will continue to be subscribed even if it is turned off.
614+
/// </summary>
615+
event ActualApplicationThemeChangedEventHandler ActualApplicationThemeChanged;
605616
}
606617
}

Flow.Launcher/Languages/ar.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@
136136
<system:String x:Key="historyResultsForHomePage">Show History Results in Home Page</system:String>
137137
<system:String x:Key="historyResultsCountForHomePage">Maximum History Results Shown in Home Page</system:String>
138138
<system:String x:Key="homeToggleBoxToolTip">This can only be edited if plugin supports Home feature and Home Page is enabled.</system:String>
139-
<system:String x:Key="showAtTopmost">Show Search Window at Topmost</system:String>
140-
<system:String x:Key="showAtTopmostToolTip">Show search window above other windows</system:String>
139+
<system:String x:Key="showAtTopmost">Show Search Window at Foremost</system:String>
140+
<system:String x:Key="showAtTopmostToolTip">Overrides other programs' 'Always on Top' setting and displays Flow in the foremost position.</system:String>
141141

142142
<!-- Setting Plugin -->
143143
<system:String x:Key="searchplugin">البحث عن إضافة</system:String>

Flow.Launcher/Languages/cs.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@
136136
<system:String x:Key="historyResultsForHomePage">Show History Results in Home Page</system:String>
137137
<system:String x:Key="historyResultsCountForHomePage">Maximum History Results Shown in Home Page</system:String>
138138
<system:String x:Key="homeToggleBoxToolTip">This can only be edited if plugin supports Home feature and Home Page is enabled.</system:String>
139-
<system:String x:Key="showAtTopmost">Show Search Window at Topmost</system:String>
140-
<system:String x:Key="showAtTopmostToolTip">Show search window above other windows</system:String>
139+
<system:String x:Key="showAtTopmost">Show Search Window at Foremost</system:String>
140+
<system:String x:Key="showAtTopmostToolTip">Overrides other programs' 'Always on Top' setting and displays Flow in the foremost position.</system:String>
141141

142142
<!-- Setting Plugin -->
143143
<system:String x:Key="searchplugin">Vyhledat plugin</system:String>

Flow.Launcher/Languages/da.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@
136136
<system:String x:Key="historyResultsForHomePage">Show History Results in Home Page</system:String>
137137
<system:String x:Key="historyResultsCountForHomePage">Maximum History Results Shown in Home Page</system:String>
138138
<system:String x:Key="homeToggleBoxToolTip">This can only be edited if plugin supports Home feature and Home Page is enabled.</system:String>
139-
<system:String x:Key="showAtTopmost">Show Search Window at Topmost</system:String>
140-
<system:String x:Key="showAtTopmostToolTip">Show search window above other windows</system:String>
139+
<system:String x:Key="showAtTopmost">Show Search Window at Foremost</system:String>
140+
<system:String x:Key="showAtTopmostToolTip">Overrides other programs' 'Always on Top' setting and displays Flow in the foremost position.</system:String>
141141

142142
<!-- Setting Plugin -->
143143
<system:String x:Key="searchplugin">Search Plugin</system:String>

0 commit comments

Comments
 (0)