Skip to content

Commit d28213b

Browse files
committed
Merge branch 'BrowserBookmark-Advanced' of https://github.com/dcog989/Flow.Launcher into BrowserBookmark-Advanced
2 parents 4a67ad6 + 88535f7 commit d28213b

File tree

5 files changed

+29
-59
lines changed

5 files changed

+29
-59
lines changed

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Library</OutputType>
@@ -84,28 +84,22 @@
8484
</Target>
8585

8686
<ItemGroup>
87-
<None Update="plugin.json">
88-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
89-
</None>
90-
<None Update="Languages\en.xaml">
91-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
92-
</None>
93-
<None Update="Images\bookmark.png">
94-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
95-
</None>
96-
<None Update="Images\copylink.png">
87+
<None Include="plugin.json">
9788
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
9889
</None>
9990
</ItemGroup>
100-
91+
10192
<ItemGroup>
102-
<Content Include="Languages\*.xaml">
103-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
104-
</Content>
93+
<ProjectReference Include="..\..\Flow.Launcher.Plugin\Flow.Launcher.Plugin.csproj" />
10594
</ItemGroup>
10695

10796
<ItemGroup>
108-
<ProjectReference Include="..\..\Flow.Launcher.Plugin\Flow.Launcher.Plugin.csproj" />
97+
<Content Include="Images\*.png">
98+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
99+
</Content>
100+
<Content Include="Languages\*.xaml">
101+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
102+
</Content>
109103
</ItemGroup>
110104

111105
<ItemGroup>

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Models/BaseModel.cs

Lines changed: 0 additions & 16 deletions
This file was deleted.

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/CustomBrowserSetting.xaml.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
using Flow.Launcher.Plugin.BrowserBookmark.Models;
1+
using Flow.Launcher.Plugin.BrowserBookmark.Models;
22
using Flow.Launcher.Plugin.BrowserBookmark.ViewModels;
33
using System.Windows;
4+
using System.Windows.Input;
45
using KeyEventArgs = System.Windows.Input.KeyEventArgs;
56

67
namespace Flow.Launcher.Plugin.BrowserBookmark.Views;
78

8-
/// <summary>
9-
/// Interaction logic for CustomBrowserSetting.xaml
10-
/// </summary>
119
public partial class CustomBrowserSetting : Window
1210
{
1311
private readonly CustomBrowserSettingViewModel _viewModel;
@@ -25,14 +23,14 @@ public CustomBrowserSetting(CustomBrowser browser)
2523

2624
private void WindowKeyDown(object sender, KeyEventArgs e)
2725
{
28-
if (e.Key == System.Windows.Input.Key.Enter)
26+
if (e.Key == Key.Enter)
2927
{
3028
if (_viewModel.SaveCommand.CanExecute(null))
3129
{
3230
_viewModel.SaveCommand.Execute(null);
3331
}
3432
}
35-
else if (e.Key == System.Windows.Input.Key.Escape)
33+
else if (e.Key == Key.Escape)
3634
{
3735
_viewModel.CancelCommand.Execute(null);
3836
}

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/SettingsControl.xaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<RowDefinition Height="Auto" />
1515
<RowDefinition Height="Auto" />
1616
</Grid.RowDefinitions>
17-
<StackPanel
17+
<WrapPanel
1818
Grid.Row="0"
1919
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
2020
Orientation="Horizontal">
@@ -42,7 +42,7 @@
4242
Margin="{StaticResource SettingPanelItemRightMargin}"
4343
Click="Others_Click"
4444
Content="{DynamicResource flowlauncher_plugin_browserbookmark_others}" />
45-
</StackPanel>
45+
</WrapPanel>
4646
<StackPanel
4747
Name="CustomBrowsersList"
4848
Grid.Row="1"
@@ -59,11 +59,8 @@
5959
Style="{StaticResource {x:Static GridView.GridViewStyleKey}}">
6060
<ListView.View>
6161
<GridView>
62-
<GridViewColumn DisplayMemberBinding="{Binding Name, Mode=OneWay}"
63-
Header="{DynamicResource flowlauncher_plugin_browserbookmark_browserName}" />
64-
<GridViewColumn
65-
DisplayMemberBinding="{Binding DataDirectoryPath, Mode=OneWay}"
66-
Header="{DynamicResource flowlauncher_plugin_browserbookmark_browserBookmarkDataDirectory}" />
62+
<GridViewColumn DisplayMemberBinding="{Binding Name, Mode=OneWay}" Header="{DynamicResource flowlauncher_plugin_browserbookmark_browserName}" />
63+
<GridViewColumn DisplayMemberBinding="{Binding DataDirectoryPath, Mode=OneWay}" Header="{DynamicResource flowlauncher_plugin_browserbookmark_browserBookmarkDataDirectory}" />
6764
</GridView>
6865
</ListView.View>
6966
</ListView>
@@ -84,9 +81,7 @@
8481
<Style BasedOn="{StaticResource DefaultButtonStyle}" TargetType="Button">
8582
<Setter Property="IsEnabled" Value="true" />
8683
<Style.Triggers>
87-
<DataTrigger
88-
Binding="{Binding ElementName=CustomBrowsers, Path=SelectedItems.Count}"
89-
Value="0">
84+
<DataTrigger Binding="{Binding ElementName=CustomBrowsers, Path=SelectedItems.Count}" Value="0">
9085
<Setter Property="IsEnabled" Value="false" />
9186
</DataTrigger>
9287
</Style.Triggers>
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
{
2-
"ID": "0ECADE17459B49F587BF81DC3A125110",
3-
"ActionKeyword": "b",
4-
"Name": "Browser Bookmarks",
5-
"Description": "Search your browser bookmarks, optionally retrieve missing favicons from the web.",
6-
"Author": "dcog989",
7-
"Version": "1.0.0",
8-
"Language": "csharp",
9-
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
10-
"ExecuteFileName": "Flow.Launcher.Plugin.BrowserBookmark.dll",
11-
"IcoPath": "Images\\bookmark.png",
12-
"Languages": "Languages"
2+
"ID": "0ECADE17459B49F587BF81DC3A125110",
3+
"ActionKeyword": "b",
4+
"Name": "Browser Bookmarks",
5+
"Description": "Search your browser bookmarks, optionally retrieve missing favicons from the web.",
6+
"Author": "dcog989",
7+
"Version": "1.0.0",
8+
"Language": "csharp",
9+
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
10+
"ExecuteFileName": "Flow.Launcher.Plugin.BrowserBookmark.dll",
11+
"IcoPath": "Images\\bookmark.png"
1312
}

0 commit comments

Comments
 (0)