mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
- Add User Setting Folder in about
- Adjust ToggleSwitch VisualFocus
This commit is contained in:
parent
90416c1afa
commit
7fb52e6271
4 changed files with 45 additions and 14 deletions
|
|
@ -280,6 +280,9 @@
|
|||
<system:String x:Key="clearlogfolder">Clear Logs</system:String>
|
||||
<system:String x:Key="clearlogfolderMessage">Are you sure you want to delete all logs?</system:String>
|
||||
<system:String x:Key="welcomewindow">Wizard</system:String>
|
||||
<system:String x:Key="userdatapath">User Data Location</system:String>
|
||||
<system:String x:Key="userdatapathToolTip">Installed plugins and user settings are saved in the User data folder. This location may vary depending on whether you are in portable mode or not.</system:String>
|
||||
<system:String x:Key="userdatapathButton">Open Folder</system:String>
|
||||
|
||||
<!-- FileManager Setting Dialog -->
|
||||
<system:String x:Key="fileManagerWindow">Select File Manager</system:String>
|
||||
|
|
|
|||
|
|
@ -1702,6 +1702,21 @@
|
|||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="{x:Static SystemParameters.FocusVisualStyleKey}">
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Border
|
||||
Margin="-3"
|
||||
BorderBrush="{DynamicResource Color05B}"
|
||||
BorderThickness="2"
|
||||
CornerRadius="5"
|
||||
SnapsToDevicePixels="true" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<!-- - Custom Toggle Switch from modern wpf for left label -->
|
||||
<system:TimeSpan x:Key="RepositionDelay">0:0:0.033</system:TimeSpan>
|
||||
<KeyTime x:Key="RepositionDuration">0:0:0.367</KeyTime>
|
||||
|
|
@ -1716,7 +1731,7 @@
|
|||
<Setter Property="FontFamily" Value="{DynamicResource ContentControlThemeFontFamily}" />
|
||||
<Setter Property="FontSize" Value="{DynamicResource ControlContentThemeFontSize}" />
|
||||
<Setter Property="FocusVisualStyle" Value="{DynamicResource {x:Static SystemParameters.FocusVisualStyleKey}}" />
|
||||
<Setter Property="ui:FocusVisualHelper.FocusVisualMargin" Value="-7,-3,-7,-3" />
|
||||
<Setter Property="ui:FocusVisualHelper.FocusVisualMargin" Value="-43,-3,-4,-3" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="ui:ToggleSwitch">
|
||||
|
|
|
|||
|
|
@ -80,6 +80,15 @@ public partial class SettingsPaneAboutViewModel : BaseModel
|
|||
PluginManager.API.OpenDirectory(Path.Combine(DataLocation.DataDirectory(), Constant.Settings));
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private void OpenParentOfSettingsFolder(object parameter)
|
||||
{
|
||||
string settingsFolderPath = Path.Combine(DataLocation.DataDirectory(), Constant.Settings);
|
||||
string parentFolderPath = Path.GetDirectoryName(settingsFolderPath);
|
||||
PluginManager.API.OpenDirectory(parentFolderPath);
|
||||
}
|
||||
|
||||
|
||||
[RelayCommand]
|
||||
private void OpenLogsFolder()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@
|
|||
Text="{DynamicResource about}"
|
||||
TextAlignment="left" />
|
||||
|
||||
|
||||
<cc:Card
|
||||
Title="{Binding Version}"
|
||||
Icon=""
|
||||
|
|
@ -54,6 +53,17 @@
|
|||
<cc:HyperLink Text="{DynamicResource releaseNotes}" Uri="{Binding ReleaseNotes}" />
|
||||
</cc:Card>
|
||||
|
||||
|
||||
<cc:Card
|
||||
Title="{DynamicResource userdatapath}"
|
||||
Margin="0 14 0 0"
|
||||
Icon=";"
|
||||
Sub="{DynamicResource userdatapathToolTip}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button Command="{Binding OpenParentOfSettingsFolderCommand}" Content="{DynamicResource userdatapathButton}" />
|
||||
</StackPanel>
|
||||
</cc:Card>
|
||||
|
||||
<cc:Card
|
||||
Title="{DynamicResource website}"
|
||||
Margin="0 14 0 0"
|
||||
|
|
@ -63,28 +73,22 @@
|
|||
Margin="0 0 12 0"
|
||||
Text="{DynamicResource website}"
|
||||
Uri="{Binding Website}" />
|
||||
<cc:HyperLink Text="{DynamicResource github}" Uri="{Binding Github}" />
|
||||
</StackPanel>
|
||||
</cc:Card>
|
||||
|
||||
<cc:Card Title="{DynamicResource documentation}" Icon="">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<cc:HyperLink
|
||||
Margin="0 0 12 0"
|
||||
Text="{DynamicResource documentation}"
|
||||
Uri="{Binding Documentation}" />
|
||||
<cc:HyperLink Text="{DynamicResource website}" Uri="{Binding Website}" />
|
||||
<cc:HyperLink Text="{DynamicResource github}" Uri="{Binding Github}" />
|
||||
</StackPanel>
|
||||
</cc:Card>
|
||||
|
||||
<cc:Card
|
||||
Title="{DynamicResource icons}"
|
||||
Margin="0 14 0 0"
|
||||
Icon="">
|
||||
<cc:Card Title="{DynamicResource icons}" Icon="">
|
||||
<cc:HyperLink Text="icons8.com" Uri="https://icons8.com/" />
|
||||
</cc:Card>
|
||||
|
||||
<cc:Card Title="{DynamicResource devtool}" Icon="">
|
||||
<cc:Card
|
||||
Title="{DynamicResource devtool}"
|
||||
Margin="0 12 0 0"
|
||||
Icon="">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button
|
||||
Margin="0 0 12 0"
|
||||
|
|
|
|||
Loading…
Reference in a new issue