2014-03-26 17:34:19 +08:00
|
|
|
<Window
|
2014-01-25 18:00:13 +08:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2014-02-20 23:15:03 +08:00
|
|
|
xmlns:wox="clr-namespace:Wox"
|
2014-03-26 17:34:19 +08:00
|
|
|
xmlns:UserSettings="clr-namespace:Wox.Infrastructure.Storage.UserSettings;assembly=Wox.Infrastructure" x:Class="Wox.SettingWindow"
|
2014-01-25 18:00:13 +08:00
|
|
|
Icon="Images\app.png"
|
2014-01-29 18:33:24 +08:00
|
|
|
Title="Wox Setting"
|
2014-01-25 18:00:13 +08:00
|
|
|
ResizeMode="NoResize"
|
|
|
|
WindowStartupLocation="CenterScreen"
|
2014-03-26 15:30:59 +08:00
|
|
|
Height="600" Width="800">
|
2014-01-26 00:37:15 +08:00
|
|
|
|
2014-01-28 11:19:27 +08:00
|
|
|
<TabControl Height="auto" >
|
|
|
|
<TabItem Header="Basic">
|
|
|
|
<StackPanel Orientation="Vertical" Margin="10">
|
2014-02-06 22:22:02 +08:00
|
|
|
<StackPanel Orientation="Horizontal" Margin="10">
|
|
|
|
<CheckBox x:Name="cbStartWithWindows" Unchecked="CbStartWithWindows_OnUnchecked" Checked="CbStartWithWindows_OnChecked" />
|
|
|
|
<TextBlock Text="Start Wox on system startup" />
|
2014-01-28 11:19:27 +08:00
|
|
|
</StackPanel>
|
2014-02-06 22:22:02 +08:00
|
|
|
<StackPanel Orientation="Horizontal" Margin="10">
|
2014-01-28 11:19:27 +08:00
|
|
|
<CheckBox x:Name="cbReplaceWinR" />
|
2014-02-06 22:22:02 +08:00
|
|
|
<TextBlock Text="Replace Win+R" />
|
|
|
|
</StackPanel>
|
2014-01-28 11:19:27 +08:00
|
|
|
</StackPanel>
|
|
|
|
</TabItem>
|
2014-02-22 15:52:20 +08:00
|
|
|
<TabItem Header="Hotkey">
|
|
|
|
<Grid Margin="10">
|
|
|
|
<Grid.RowDefinitions>
|
2014-03-26 17:34:19 +08:00
|
|
|
<RowDefinition Height="30"/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition Height="50"/>
|
2014-02-22 15:52:20 +08:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center">
|
2014-03-26 17:34:19 +08:00
|
|
|
<TextBlock VerticalAlignment="Center" Margin="0 0 10 0"><Run Text="Wox Hotkey:"/></TextBlock>
|
2014-02-22 15:52:20 +08:00
|
|
|
<wox:HotkeyControl x:Name="ctlHotkey"/>
|
|
|
|
</StackPanel>
|
2014-03-19 22:44:51 +08:00
|
|
|
<Grid Grid.Row="1">
|
|
|
|
<Grid.RowDefinitions>
|
2014-03-26 17:34:19 +08:00
|
|
|
<RowDefinition Height="20"/>
|
|
|
|
<RowDefinition/>
|
2014-03-19 22:44:51 +08:00
|
|
|
</Grid.RowDefinitions>
|
2014-03-26 17:34:19 +08:00
|
|
|
<TextBlock VerticalAlignment="Center" Grid.Row="0" Margin="0 0 10 0"><Run Text="Custom Plugin Hotkey:"/></TextBlock>
|
2014-03-19 22:44:51 +08:00
|
|
|
<ListView x:Name="lvCustomHotkey" Margin="0 5 0 0" Grid.Row="1">
|
2014-02-22 15:52:20 +08:00
|
|
|
<ListView.View>
|
|
|
|
<GridView>
|
2014-03-26 17:34:19 +08:00
|
|
|
<GridViewColumn Header="Hotkey" Width="180">
|
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding Hotkey}"/>
|
|
|
|
</DataTemplate>
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
</GridViewColumn>
|
|
|
|
<GridViewColumn Header="Action Keyword" Width="500">
|
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding ActionKeyword}"/>
|
|
|
|
</DataTemplate>
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
</GridViewColumn>
|
2014-02-22 15:52:20 +08:00
|
|
|
</GridView>
|
|
|
|
</ListView.View>
|
|
|
|
</ListView>
|
|
|
|
|
2014-03-19 22:44:51 +08:00
|
|
|
</Grid>
|
2014-02-22 15:52:20 +08:00
|
|
|
<StackPanel Grid.Row="2" HorizontalAlignment="Right" Orientation="Horizontal">
|
2014-03-26 17:34:19 +08:00
|
|
|
<Button x:Name="btnDeleteCustomHotkey" Click="BtnDeleteCustomHotkey_OnClick" Width="100" Margin="10" Content="Delete"/>
|
|
|
|
<Button x:Name="btnEditCustomHotkey" Click="BtnEditCustomHotkey_OnClick" Width="100" Margin="10" Content="Edit"/>
|
|
|
|
<Button x:Name="btnAddCustomeHotkey" Click="BtnAddCustomeHotkey_OnClick" Width="100" Margin="10" Content="Add"/>
|
2014-02-22 15:52:20 +08:00
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</TabItem>
|
2014-03-19 20:16:20 +08:00
|
|
|
|
|
|
|
<TabItem Header="Programs">
|
|
|
|
<Grid Margin="10">
|
|
|
|
<Grid.RowDefinitions>
|
2014-03-26 17:34:19 +08:00
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
<RowDefinition Height="50"/>
|
2014-03-19 20:16:20 +08:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<ListView x:Name="programSourceView" Grid.Row="0">
|
|
|
|
<ListView.View>
|
|
|
|
<GridView>
|
2014-03-26 17:34:19 +08:00
|
|
|
<GridViewColumn Header="Location" Width="400">
|
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding Location, ConverterParameter=(null), Converter={wox:StringEmptyConverter}}"/>
|
|
|
|
</DataTemplate>
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
</GridViewColumn>
|
|
|
|
<GridViewColumn Header="Type" Width="150">
|
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding Type}"/>
|
|
|
|
</DataTemplate>
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
</GridViewColumn>
|
|
|
|
<GridViewColumn Header="Bonus Points" Width="100">
|
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding BonusPoints}"/>
|
|
|
|
</DataTemplate>
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
</GridViewColumn>
|
|
|
|
<GridViewColumn Header="Enabled" Width="100">
|
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding Enabled}"/>
|
|
|
|
</DataTemplate>
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
</GridViewColumn>
|
2014-03-19 20:16:20 +08:00
|
|
|
</GridView>
|
|
|
|
</ListView.View>
|
|
|
|
</ListView>
|
|
|
|
<StackPanel Grid.Row="1" HorizontalAlignment="Right" Orientation="Horizontal">
|
2014-03-26 17:34:19 +08:00
|
|
|
<Button x:Name="btnDeleteProgramSource" Click="btnDeleteProgramSource_OnClick" Width="100" Margin="10" Content="Delete"/>
|
|
|
|
<Button x:Name="btnEditProgramSource" Click="btnEditProgramSource_OnClick" Width="100" Margin="10" Content="Edit"/>
|
|
|
|
<Button x:Name="btnAddProgramSource" Click="btnAddProgramSource_OnClick" Width="100" Margin="10" Content="Add"/>
|
2014-03-19 20:16:20 +08:00
|
|
|
</StackPanel>
|
|
|
|
<TextBlock Grid.Row="1" Margin="10" HorizontalAlignment="Left" Text="* Restarting required" VerticalAlignment="Center" />
|
|
|
|
</Grid>
|
|
|
|
</TabItem>
|
2014-01-28 11:19:27 +08:00
|
|
|
<TabItem Header="Web Search">
|
2014-02-22 15:52:20 +08:00
|
|
|
<Grid Margin="10">
|
2014-01-28 11:19:27 +08:00
|
|
|
<Grid.RowDefinitions>
|
2014-03-26 17:34:19 +08:00
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
<RowDefinition Height="50"/>
|
2014-01-28 11:19:27 +08:00
|
|
|
</Grid.RowDefinitions>
|
2014-01-29 22:44:57 +08:00
|
|
|
<ListView x:Name="webSearchView" Grid.Row="0">
|
2014-01-28 11:19:27 +08:00
|
|
|
<ListView.View>
|
|
|
|
<GridView>
|
2014-03-26 17:34:19 +08:00
|
|
|
<GridViewColumn Header="ActionWord" Width="180">
|
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding ActionWord}"/>
|
|
|
|
</DataTemplate>
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
</GridViewColumn>
|
|
|
|
<GridViewColumn Header="Url" Width="500">
|
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding Url}"/>
|
|
|
|
</DataTemplate>
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
</GridViewColumn>
|
2014-01-28 11:19:27 +08:00
|
|
|
</GridView>
|
|
|
|
</ListView.View>
|
|
|
|
</ListView>
|
2014-02-02 16:15:34 +08:00
|
|
|
<StackPanel Grid.Row="1" HorizontalAlignment="Right" Orientation="Horizontal">
|
2014-03-26 17:34:19 +08:00
|
|
|
<Button x:Name="btnDeleteWebSearch" Click="btnDeleteWebSearch_OnClick" Width="100" Margin="10" Content="Delete"/>
|
|
|
|
<Button x:Name="btnEditWebSearch" Click="btnEditWebSearch_OnClick" Width="100" Margin="10" Content="Edit"/>
|
|
|
|
<Button x:Name="btnAddWebSearch" Click="btnAddWebSearch_OnClick" Width="100" Margin="10" Content="Add"/>
|
2014-02-02 16:15:34 +08:00
|
|
|
</StackPanel>
|
2014-01-28 11:19:27 +08:00
|
|
|
</Grid>
|
|
|
|
</TabItem>
|
2014-03-19 01:27:59 +08:00
|
|
|
<TabItem Header="Plugins">
|
|
|
|
<StackPanel Orientation="Vertical" Margin="10">
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="10">
|
|
|
|
<CheckBox x:Name="cbEnablePythonPlugins" />
|
|
|
|
<TextBlock Text="Enable Python Plugins" />
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="10">
|
2014-03-26 17:34:19 +08:00
|
|
|
<Button x:Name="btnEnableInstaller" Click="BtnEnableInstaller_OnClick" Content="enable plugin installer"/>
|
2014-03-19 01:27:59 +08:00
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</TabItem>
|
2014-03-19 22:17:01 +08:00
|
|
|
<TabItem Header="Theme">
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
2014-03-26 17:34:19 +08:00
|
|
|
<ColumnDefinition Width="200"/>
|
|
|
|
<ColumnDefinition/>
|
2014-03-19 22:17:01 +08:00
|
|
|
</Grid.ColumnDefinitions>
|
2014-03-26 15:30:59 +08:00
|
|
|
<ListBox x:Name="themeComboBox" Grid.Column="0" Margin="10" SelectionChanged="ThemeComboBox_OnSelectionChanged" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="180"/>
|
|
|
|
<Grid Margin="0" Grid.Column="1">
|
2014-03-19 22:17:01 +08:00
|
|
|
<Grid.RowDefinitions>
|
2014-03-26 17:34:19 +08:00
|
|
|
<RowDefinition />
|
|
|
|
<RowDefinition Height="80"/>
|
2014-03-19 22:17:01 +08:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
2014-03-26 17:34:19 +08:00
|
|
|
<ColumnDefinition/>
|
|
|
|
<ColumnDefinition Width="170" />
|
2014-03-19 22:17:01 +08:00
|
|
|
</Grid.ColumnDefinitions>
|
2014-03-26 15:30:59 +08:00
|
|
|
<StackPanel x:Name="PreviewPanel" Grid.ColumnSpan="2" Grid.Row="0" Margin="0">
|
2014-03-26 17:34:19 +08:00
|
|
|
<StackPanel x:Name="PreviewMainPanel" Orientation="Horizontal" Margin="10" HorizontalAlignment="Center" VerticalAlignment="Center">
|
2014-03-26 15:30:59 +08:00
|
|
|
<StackPanel.Resources>
|
|
|
|
<ResourceDictionary Source="/PresentationFramework.Classic,Version=3.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35,processorArchitecture=MSIL;component/themes/Classic.xaml"/>
|
|
|
|
</StackPanel.Resources>
|
|
|
|
<Border Width="500" Style="{DynamicResource WindowBorderStyle}">
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
2014-03-26 17:34:19 +08:00
|
|
|
<RowDefinition Height="50" />
|
|
|
|
<RowDefinition/>
|
2014-03-26 15:30:59 +08:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBox Text="Hello Wox" IsReadOnly="True" Style="{DynamicResource QueryBoxStyle}" Grid.Row="0"/>
|
|
|
|
<wox:ResultPanel Grid.Row="1" x:Name="resultPanelPreview"/>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</StackPanel>
|
2014-03-19 22:17:01 +08:00
|
|
|
</StackPanel>
|
2014-03-26 17:34:19 +08:00
|
|
|
|
|
|
|
<StackPanel Grid.Row="1" Grid.Column="0" Margin="10" Orientation="Vertical">
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="2">
|
|
|
|
<TextBlock Text="Query Box Font:" />
|
|
|
|
<ComboBox x:Name="cbQueryBoxFont" ItemsSource="{x:Static Fonts.SystemFontFamilies}" SelectionChanged="CbQueryBoxFont_OnSelectionChanged" HorizontalAlignment="Left" VerticalAlignment="Top" Width="160"/>
|
|
|
|
<ComboBox
|
|
|
|
x:Name="cbQueryBoxFontFaces"
|
|
|
|
ItemsSource="{Binding SelectedValue.FamilyTypefaces, ElementName=cbQueryBoxFont}" SelectionChanged="CbQueryBoxFontFaces_OnSelectionChanged" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120">
|
|
|
|
<ComboBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<ItemsControl ItemsSource="{Binding AdjustedFaceNames}">
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding Value}" />
|
|
|
|
</DataTemplate>
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
</ItemsControl>
|
|
|
|
</DataTemplate>
|
|
|
|
</ComboBox.ItemTemplate>
|
|
|
|
</ComboBox>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="2">
|
|
|
|
<TextBlock Text="Result Item Font:" />
|
|
|
|
<ComboBox x:Name="cbResultItemFont" ItemsSource="{x:Static Fonts.SystemFontFamilies}" SelectionChanged="CbResultItemFont_OnSelectionChanged" HorizontalAlignment="Left" VerticalAlignment="Top" Width="160"/>
|
|
|
|
<ComboBox
|
|
|
|
x:Name="cbResultItemFontFaces"
|
|
|
|
ItemsSource="{Binding SelectedValue.FamilyTypefaces, ElementName=cbResultItemFont}" SelectionChanged="CbResultItemFontFaces_OnSelectionChanged" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120">
|
|
|
|
<ComboBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<ItemsControl ItemsSource="{Binding AdjustedFaceNames}">
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding Value}" />
|
|
|
|
</DataTemplate>
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
</ItemsControl>
|
|
|
|
</DataTemplate>
|
|
|
|
</ComboBox.ItemTemplate>
|
|
|
|
</ComboBox>
|
|
|
|
</StackPanel>
|
2014-03-19 22:17:01 +08:00
|
|
|
</StackPanel>
|
2014-03-26 17:34:19 +08:00
|
|
|
<StackPanel Orientation="Vertical" Grid.Row="1" Grid.Column="1" Margin="10">
|
|
|
|
<TextBlock Text="Window Mode:" />
|
|
|
|
<ComboBox Name="CbOpacityMode" SelectionChanged="CbOpacityMode_OnSelectionChanged">
|
|
|
|
<UserSettings:OpacityMode>Normal</UserSettings:OpacityMode>
|
|
|
|
<UserSettings:OpacityMode>LayeredWindow</UserSettings:OpacityMode>
|
|
|
|
<UserSettings:OpacityMode>DWM</UserSettings:OpacityMode>
|
2014-03-25 13:25:43 +08:00
|
|
|
<ComboBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
2014-03-26 17:34:19 +08:00
|
|
|
<TextBlock Text="{Binding Converter={wox:OpacityModeConverter}}" />
|
2014-03-25 13:25:43 +08:00
|
|
|
</DataTemplate>
|
|
|
|
</ComboBox.ItemTemplate>
|
|
|
|
</ComboBox>
|
2014-03-26 17:34:19 +08:00
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock Text="Opacity:" />
|
|
|
|
<Slider x:Name="slOpacity" Maximum="1" Minimum="0" SmallChange="1" LargeChange="0.1" TickPlacement="BottomRight" TickFrequency="0.1" ValueChanged="slOpacity_ValueChanged" Width="100"/>
|
|
|
|
</StackPanel>
|
2014-03-19 22:17:01 +08:00
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</TabItem>
|
2014-01-28 11:19:27 +08:00
|
|
|
</TabControl>
|
2014-01-25 18:00:13 +08:00
|
|
|
</Window>
|