mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
UI: allow manual editing of browser-path textboxes
This commit is contained in:
parent
b505a32693
commit
1f73fdbecc
6 changed files with 19 additions and 4 deletions
|
|
@ -31,7 +31,7 @@
|
||||||
<StackPanel VerticalAlignment="Top" Grid.Row="1" Height="106" Margin="41,13,0,0">
|
<StackPanel VerticalAlignment="Top" Grid.Row="1" Height="106" Margin="41,13,0,0">
|
||||||
<Label Content="{DynamicResource flowlauncher_plugin_browserbookmark_settings_setBrowserFromPath}"
|
<Label Content="{DynamicResource flowlauncher_plugin_browserbookmark_settings_setBrowserFromPath}"
|
||||||
Height="28" Margin="0,0,155,0" HorizontalAlignment="Left" Width="290"/>
|
Height="28" Margin="0,0,155,0" HorizontalAlignment="Left" Width="290"/>
|
||||||
<TextBox x:Name="browserPathBox" HorizontalAlignment="Left" Height="34" TextWrapping="NoWrap" VerticalAlignment="Top" Width="311" RenderTransformOrigin="0.502,-1.668"/>
|
<TextBox x:Name="browserPathBox" HorizontalAlignment="Left" Height="34" TextWrapping="NoWrap" VerticalAlignment="Top" Width="311" RenderTransformOrigin="0.502,-1.668" TextChanged="OnBrowserPathTextChanged" />
|
||||||
<Button x:Name="viewButton" Content="{DynamicResource flowlauncher_plugin_browserbookmark_settings_choose}"
|
<Button x:Name="viewButton" Content="{DynamicResource flowlauncher_plugin_browserbookmark_settings_choose}"
|
||||||
HorizontalAlignment="Left" Margin="340,-35,-1,0" Width="100" Height="34" Click="OnChooseClick" FontSize="14" />
|
HorizontalAlignment="Left" Margin="340,-35,-1,0" Width="100" Height="34" Click="OnChooseClick" FontSize="14" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ namespace Flow.Launcher.Plugin.BrowserBookmark.Views
|
||||||
browserPathBox.Text = _settings.BrowserPath;
|
browserPathBox.Text = _settings.BrowserPath;
|
||||||
NewWindowBrowser.IsChecked = _settings.OpenInNewBrowserWindow;
|
NewWindowBrowser.IsChecked = _settings.OpenInNewBrowserWindow;
|
||||||
NewTabInBrowser.IsChecked = !_settings.OpenInNewBrowserWindow;
|
NewTabInBrowser.IsChecked = !_settings.OpenInNewBrowserWindow;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnNewBrowserWindowClick(object sender, RoutedEventArgs e)
|
private void OnNewBrowserWindowClick(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
|
@ -43,5 +43,10 @@ namespace Flow.Launcher.Plugin.BrowserBookmark.Views
|
||||||
_settings.BrowserPath = fileBrowserDialog.FileName;
|
_settings.BrowserPath = fileBrowserDialog.FileName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnBrowserPathTextChanged(object sender, TextChangedEventArgs e)
|
||||||
|
{
|
||||||
|
_settings.BrowserPath = browserPathBox.Text;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
<Label Content="{DynamicResource flowlauncher_plugin_url_plugin_set_tip}" Height="28" Margin="0,0,155,0"
|
<Label Content="{DynamicResource flowlauncher_plugin_url_plugin_set_tip}" Height="28" Margin="0,0,155,0"
|
||||||
HorizontalAlignment="Left" Width="290" />
|
HorizontalAlignment="Left" Width="290" />
|
||||||
<TextBox x:Name="browserPathBox" HorizontalAlignment="Left" Height="34" TextWrapping="NoWrap"
|
<TextBox x:Name="browserPathBox" HorizontalAlignment="Left" Height="34" TextWrapping="NoWrap"
|
||||||
VerticalAlignment="Top" Width="311" RenderTransformOrigin="0.502,-1.668" />
|
VerticalAlignment="Top" Width="311" RenderTransformOrigin="0.502,-1.668" TextChanged="OnBrowserPathTextChanged" />
|
||||||
<Button x:Name="viewButton" HorizontalAlignment="Left" Margin="340,-33,-1,0" Width="100"
|
<Button x:Name="viewButton" HorizontalAlignment="Left" Margin="340,-33,-1,0" Width="100"
|
||||||
Height="32" Click="OnChooseClick" FontSize="14"
|
Height="32" Click="OnChooseClick" FontSize="14"
|
||||||
Content="{DynamicResource flowlauncher_plugin_url_plugin_choose}" />
|
Content="{DynamicResource flowlauncher_plugin_url_plugin_choose}" />
|
||||||
|
|
|
||||||
|
|
@ -57,5 +57,10 @@ namespace Flow.Launcher.Plugin.Url
|
||||||
{
|
{
|
||||||
_settings.OpenInNewBrowserWindow = false;
|
_settings.OpenInNewBrowserWindow = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnBrowserPathTextChanged(object sender, TextChangedEventArgs e)
|
||||||
|
{
|
||||||
|
_settings.BrowserPath = browserPathBox.Text;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Grid.Row="2" HorizontalAlignment="Left" Margin="0 3 0 0">
|
<StackPanel Grid.Row="2" HorizontalAlignment="Left" Margin="0 3 0 0">
|
||||||
<Label Content="Set browser from path:" Margin="0 0 350 0" HorizontalAlignment="Left" Width="140"/>
|
<Label Content="Set browser from path:" Margin="0 0 350 0" HorizontalAlignment="Left" Width="140"/>
|
||||||
<TextBox x:Name="browserPathBox" HorizontalAlignment="Left" Margin="160,-22,0,0"
|
<TextBox x:Name="browserPathBox" HorizontalAlignment="Left" Margin="160,-22,0,0" TextChanged="OnBrowserPathTextChanged"
|
||||||
Width="214" Style="{StaticResource BrowserPathBoxStyle}"/>
|
Width="214" Style="{StaticResource BrowserPathBoxStyle}"/>
|
||||||
<Button x:Name="viewButton" HorizontalAlignment="Left" Margin="400,-30,0,0"
|
<Button x:Name="viewButton" HorizontalAlignment="Left" Margin="400,-30,0,0"
|
||||||
Click="OnChooseClick" FontSize="13" Content="Choose" Width="80"/>
|
Click="OnChooseClick" FontSize="13" Content="Choose" Width="80"/>
|
||||||
|
|
|
||||||
|
|
@ -83,5 +83,10 @@ namespace Flow.Launcher.Plugin.WebSearch
|
||||||
_settings.BrowserPath = fileBrowserDialog.FileName;
|
_settings.BrowserPath = fileBrowserDialog.FileName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnBrowserPathTextChanged(object sender, TextChangedEventArgs e)
|
||||||
|
{
|
||||||
|
_settings.BrowserPath = browserPathBox.Text;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue