File tree Expand file tree Collapse file tree 5 files changed +29
-59
lines changed
Plugins/Flow.Launcher.Plugin.BrowserBookmark Expand file tree Collapse file tree 5 files changed +29
-59
lines changed Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
4
<OutputType >Library</OutputType >
84
84
</Target >
85
85
86
86
<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" >
97
88
<CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
98
89
</None >
99
90
</ItemGroup >
100
-
91
+
101
92
<ItemGroup >
102
- <Content Include =" Languages\*.xaml" >
103
- <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
104
- </Content >
93
+ <ProjectReference Include =" ..\..\Flow.Launcher.Plugin\Flow.Launcher.Plugin.csproj" />
105
94
</ItemGroup >
106
95
107
96
<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 >
109
103
</ItemGroup >
110
104
111
105
<ItemGroup >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- using Flow . Launcher . Plugin . BrowserBookmark . Models ;
1
+ using Flow . Launcher . Plugin . BrowserBookmark . Models ;
2
2
using Flow . Launcher . Plugin . BrowserBookmark . ViewModels ;
3
3
using System . Windows ;
4
+ using System . Windows . Input ;
4
5
using KeyEventArgs = System . Windows . Input . KeyEventArgs ;
5
6
6
7
namespace Flow . Launcher . Plugin . BrowserBookmark . Views ;
7
8
8
- /// <summary>
9
- /// Interaction logic for CustomBrowserSetting.xaml
10
- /// </summary>
11
9
public partial class CustomBrowserSetting : Window
12
10
{
13
11
private readonly CustomBrowserSettingViewModel _viewModel ;
@@ -25,14 +23,14 @@ public CustomBrowserSetting(CustomBrowser browser)
25
23
26
24
private void WindowKeyDown ( object sender , KeyEventArgs e )
27
25
{
28
- if ( e . Key == System . Windows . Input . Key . Enter )
26
+ if ( e . Key == Key . Enter )
29
27
{
30
28
if ( _viewModel . SaveCommand . CanExecute ( null ) )
31
29
{
32
30
_viewModel . SaveCommand . Execute ( null ) ;
33
31
}
34
32
}
35
- else if ( e . Key == System . Windows . Input . Key . Escape )
33
+ else if ( e . Key == Key . Escape )
36
34
{
37
35
_viewModel . CancelCommand . Execute ( null ) ;
38
36
}
Original file line number Diff line number Diff line change 14
14
<RowDefinition Height =" Auto" />
15
15
<RowDefinition Height =" Auto" />
16
16
</Grid .RowDefinitions>
17
- <StackPanel
17
+ <WrapPanel
18
18
Grid.Row=" 0"
19
19
Margin =" {StaticResource SettingPanelItemTopBottomMargin}"
20
20
Orientation =" Horizontal" >
42
42
Margin =" {StaticResource SettingPanelItemRightMargin}"
43
43
Click =" Others_Click"
44
44
Content =" {DynamicResource flowlauncher_plugin_browserbookmark_others}" />
45
- </StackPanel >
45
+ </WrapPanel >
46
46
<StackPanel
47
47
Name =" CustomBrowsersList"
48
48
Grid.Row=" 1"
59
59
Style =" {StaticResource {x:Static GridView.GridViewStyleKey}}" >
60
60
<ListView .View>
61
61
<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}" />
67
64
</GridView >
68
65
</ListView .View>
69
66
</ListView >
84
81
<Style BasedOn =" {StaticResource DefaultButtonStyle}" TargetType =" Button" >
85
82
<Setter Property =" IsEnabled" Value =" true" />
86
83
<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" >
90
85
<Setter Property =" IsEnabled" Value =" false" />
91
86
</DataTrigger >
92
87
</Style .Triggers>
Original file line number Diff line number Diff line change 1
1
{
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"
13
12
}
You can’t perform that action at this time.
0 commit comments