|
15 | 15 | Title="{DynamicResource flowlauncher_settings}"
|
16 | 16 | Width="{Binding SettingWindowWidth, Mode=TwoWay}"
|
17 | 17 | Height="{Binding SettingWindowHeight, Mode=TwoWay}"
|
18 |
| - MinWidth="900" |
| 18 | + MinWidth="940" |
19 | 19 | MinHeight="600"
|
20 | 20 | d:DataContext="{d:DesignInstance vm:SettingWindowViewModel}"
|
21 | 21 | Closed="OnClosed"
|
|
98 | 98 | <Style x:Key="SettingTitleLabel" TargetType="{x:Type TextBlock}">
|
99 | 99 | <Setter Property="Foreground" Value="{DynamicResource Color05B}" />
|
100 | 100 | <Setter Property="Margin" Value="0,0,0,0" />
|
| 101 | + <Setter Property="TextWrapping" Value="Wrap" /> |
101 | 102 | </Style>
|
102 | 103 |
|
103 | 104 | <Style x:Key="SettingSubTitleLabel" TargetType="{x:Type TextBlock}">
|
|
201 | 202 | </Setter>
|
202 | 203 | <!--#endregion-->
|
203 | 204 | </Style>
|
204 |
| - <Style TargetType="{x:Type TabItem}"> |
| 205 | + <Style x:Key="NavTabItem" TargetType="{x:Type TabItem}"> |
| 206 | + <Setter Property="DockPanel.Dock" Value="Top" /> |
205 | 207 | <Setter Property="Template">
|
206 | 208 | <Setter.Value>
|
207 | 209 | <ControlTemplate TargetType="{x:Type TabItem}">
|
208 |
| - <Border> |
209 |
| - <Grid> |
| 210 | + <Grid> |
| 211 | + <Border |
| 212 | + x:Name="border" |
| 213 | + Height="40" |
| 214 | + Margin="14,4,8,4" |
| 215 | + Padding="0,0,0,0" |
| 216 | + HorizontalAlignment="Stretch" |
| 217 | + Background="{DynamicResource Color01B}" |
| 218 | + CornerRadius="5"> |
210 | 219 | <Grid>
|
211 |
| - <Border |
212 |
| - x:Name="Spacer" |
213 |
| - Width="Auto" |
214 |
| - Height="Auto" |
215 |
| - Margin="14,4,8,4" |
216 |
| - Padding="0,0,0,0" |
217 |
| - BorderBrush="Transparent" |
218 |
| - BorderThickness="0"> |
219 |
| - <Border |
220 |
| - x:Name="border" |
221 |
| - Height="40" |
222 |
| - Background="{DynamicResource Color01B}" |
223 |
| - CornerRadius="5"> |
224 |
| - <Grid> |
225 |
| - <Canvas> |
226 |
| - <Rectangle |
227 |
| - x:Name="Bullet" |
228 |
| - Canvas.Left="0" |
229 |
| - Width="4" |
230 |
| - Height="18" |
231 |
| - Margin="0,11,0,11" |
232 |
| - Fill="{DynamicResource ToggleSwitchFillOn}" |
233 |
| - RadiusX="2" |
234 |
| - RadiusY="2" |
235 |
| - Visibility="Hidden" /> |
236 |
| - <ContentPresenter |
237 |
| - x:Name="ContentSite" |
238 |
| - Margin="12,11,0,11" |
239 |
| - HorizontalAlignment="LEFT" |
240 |
| - VerticalAlignment="Center" |
241 |
| - ContentSource="Header" |
242 |
| - TextBlock.Foreground="#000" /> |
243 |
| - </Canvas> |
244 |
| - </Grid> |
245 |
| - </Border> |
246 |
| - </Border> |
| 220 | + <Grid.ColumnDefinitions> |
| 221 | + <ColumnDefinition Width="4" /> |
| 222 | + <ColumnDefinition /> |
| 223 | + </Grid.ColumnDefinitions> |
| 224 | + <Rectangle |
| 225 | + x:Name="Bullet" |
| 226 | + Grid.Column="0" |
| 227 | + Width="4" |
| 228 | + Height="18" |
| 229 | + Margin="0,11,0,11" |
| 230 | + Fill="{DynamicResource ToggleSwitchFillOn}" |
| 231 | + RadiusX="2" |
| 232 | + RadiusY="2" |
| 233 | + Visibility="Hidden" /> |
| 234 | + <ContentPresenter |
| 235 | + x:Name="ContentSite" |
| 236 | + Grid.Column="1" |
| 237 | + Margin="12,11,18,11" |
| 238 | + HorizontalAlignment="Stretch" |
| 239 | + VerticalAlignment="Center" |
| 240 | + ContentSource="Header" |
| 241 | + TextBlock.Foreground="#000" /> |
247 | 242 | </Grid>
|
248 |
| - </Grid> |
249 |
| - </Border> |
| 243 | + </Border> |
| 244 | + </Grid> |
250 | 245 | <ControlTemplate.Triggers>
|
251 | 246 | <Trigger Property="IsMouseOver" Value="True">
|
252 | 247 | <Setter TargetName="border" Property="Background" Value="{DynamicResource Color06B}" />
|
|
418 | 413 | </Style.Triggers>
|
419 | 414 | </Style>
|
420 | 415 | <!-- For Tab Header responsive Width -->
|
421 |
| - <Style TargetType="{x:Type TabControl}"> |
| 416 | + <Style x:Key="NavTabControl" TargetType="{x:Type TabControl}"> |
| 417 | + <Setter Property="Padding" Value="0" /> |
| 418 | + <Setter Property="HorizontalContentAlignment" Value="Left" /> |
| 419 | + <Setter Property="VerticalContentAlignment" Value="Top" /> |
| 420 | + <Setter Property="Background" Value="Transparent" /> |
| 421 | + <Setter Property="BorderBrush" Value="Transparent" /> |
| 422 | + <Setter Property="BorderThickness" Value="1" /> |
422 | 423 | <Setter Property="FontSize" Value="14" />
|
423 | 424 | <Setter Property="Template">
|
424 | 425 | <Setter.Value>
|
425 | 426 | <ControlTemplate TargetType="{x:Type TabControl}">
|
426 |
| - <Grid> |
| 427 | + <Grid |
| 428 | + x:Name="templateRoot" |
| 429 | + ClipToBounds="true" |
| 430 | + KeyboardNavigation.TabNavigation="Local" |
| 431 | + SnapsToDevicePixels="true"> |
427 | 432 | <Grid.ColumnDefinitions>
|
428 |
| - <ColumnDefinition Width="2.2*" /> |
429 |
| - <ColumnDefinition Width="7.8*" /> |
| 433 | + <ColumnDefinition |
| 434 | + x:Name="ColumnDefinition0" |
| 435 | + Width="Auto" |
| 436 | + MinWidth="230" /> |
| 437 | + <ColumnDefinition x:Name="ColumnDefinition1" Width="7.5*" /> |
430 | 438 | </Grid.ColumnDefinitions>
|
431 |
| - <TabPanel |
| 439 | + <!-- here is the edit --> |
| 440 | + <DockPanel |
| 441 | + x:Name="headerPanel" |
| 442 | + Grid.Row="0" |
432 | 443 | Grid.Column="0"
|
433 |
| - Margin="0,0,0,0" |
| 444 | + Margin="2,2,2,0" |
434 | 445 | Panel.ZIndex="1"
|
435 |
| - Background="{DynamicResource Color01B}" |
436 |
| - IsItemsHost="True" /> |
| 446 | + Background="Transparent" |
| 447 | + IsItemsHost="true" |
| 448 | + KeyboardNavigation.TabIndex="1" /> |
437 | 449 | <Border
|
| 450 | + x:Name="contentPanel" |
| 451 | + Grid.Row="0" |
438 | 452 | Grid.Column="1"
|
439 |
| - BorderBrush="Black" |
440 |
| - BorderThickness="0" |
441 |
| - CornerRadius="0"> |
442 |
| - <ContentPresenter Grid.Column="1" ContentSource="SelectedContent" /> |
| 453 | + Background="{TemplateBinding Background}" |
| 454 | + BorderBrush="{TemplateBinding BorderBrush}" |
| 455 | + BorderThickness="{TemplateBinding BorderThickness}" |
| 456 | + KeyboardNavigation.DirectionalNavigation="Contained" |
| 457 | + KeyboardNavigation.TabIndex="2" |
| 458 | + KeyboardNavigation.TabNavigation="Local"> |
| 459 | + <ContentPresenter |
| 460 | + x:Name="PART_SelectedContentHost" |
| 461 | + Margin="{TemplateBinding Padding}" |
| 462 | + ContentSource="SelectedContent" |
| 463 | + SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> |
443 | 464 | </Border>
|
444 | 465 | </Grid>
|
| 466 | + <ControlTemplate.Triggers> |
| 467 | + <Trigger Property="IsEnabled" Value="false"> |
| 468 | + <Setter TargetName="templateRoot" Property="TextElement.Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" /> |
| 469 | + </Trigger> |
| 470 | + </ControlTemplate.Triggers> |
445 | 471 | </ControlTemplate>
|
446 | 472 | </Setter.Value>
|
447 | 473 | </Setter>
|
|
568 | 594 | Grid.ColumnSpan="5"
|
569 | 595 | Height="auto"
|
570 | 596 | SelectedIndex="1"
|
| 597 | + Style="{DynamicResource NavTabControl}" |
571 | 598 | TabStripPlacement="Left">
|
572 |
| - <TabItem Style="{DynamicResource logo}"> |
| 599 | + <TabItem DockPanel.Dock="Top" Style="{DynamicResource logo}"> |
573 | 600 | <TabItem.Header>
|
574 | 601 | <Grid Margin="0,18,0,0">
|
575 | 602 | <Grid.RowDefinitions>
|
|
591 | 618 | </Grid>
|
592 | 619 | </TabItem.Header>
|
593 | 620 | </TabItem>
|
594 |
| - <TabItem> |
| 621 | + <TabItem DockPanel.Dock="Top" Style="{DynamicResource NavTabItem}"> |
595 | 622 | <!-- LEFT TAB WIDTH -->
|
596 | 623 | <TabItem.Header>
|
597 | 624 | <Grid>
|
|
947 | 974 | </VirtualizingStackPanel>
|
948 | 975 | </ScrollViewer>
|
949 | 976 | </TabItem>
|
950 |
| - <TabItem KeyDown="OnPluginSettingKeydown"> |
| 977 | + <TabItem KeyDown="OnPluginSettingKeydown" Style="{DynamicResource NavTabItem}"> |
951 | 978 | <TabItem.Header>
|
952 | 979 | <Grid>
|
953 | 980 | <Grid.ColumnDefinitions>
|
|
1368 | 1395 | </TabItem>
|
1369 | 1396 |
|
1370 | 1397 | <!--#region Plugin Store-->
|
1371 |
| - <TabItem KeyDown="PluginStore_OnKeyDown"> |
| 1398 | + <TabItem KeyDown="PluginStore_OnKeyDown" Style="{DynamicResource NavTabItem}"> |
1372 | 1399 | <TabItem.Header>
|
1373 | 1400 | <Grid>
|
1374 | 1401 | <Grid.ColumnDefinitions>
|
|
1721 | 1748 | </TabItem>
|
1722 | 1749 | <!--#endregion-->
|
1723 | 1750 |
|
1724 |
| - <TabItem> |
| 1751 | + <TabItem Style="{DynamicResource NavTabItem}"> |
1725 | 1752 | <TabItem.Header>
|
1726 | 1753 | <Grid>
|
1727 | 1754 | <Grid.ColumnDefinitions>
|
|
1848 | 1875 | </StackPanel>
|
1849 | 1876 | <StackPanel Grid.Column="2" Orientation="Horizontal">
|
1850 | 1877 | <TextBlock
|
1851 |
| - Width="100" |
| 1878 | + Width="Auto" |
1852 | 1879 | Margin="0,0,8,2"
|
1853 | 1880 | VerticalAlignment="Center"
|
1854 | 1881 | Foreground="{DynamicResource Color05B}"
|
1855 | 1882 | Text="{Binding ElementName=WindowWidthValue, Path=Value, UpdateSourceTrigger=PropertyChanged}"
|
1856 | 1883 | TextAlignment="Right" />
|
1857 | 1884 | <Slider
|
1858 | 1885 | Name="WindowWidthValue"
|
1859 |
| - Width="300" |
| 1886 | + Width="250" |
1860 | 1887 | Margin="0,0,18,0"
|
1861 | 1888 | VerticalAlignment="Center"
|
1862 | 1889 | IsMoveToPointEnabled="True"
|
|
2300 | 2327 | </TabItem>
|
2301 | 2328 |
|
2302 | 2329 |
|
2303 |
| - <TabItem> |
| 2330 | + <TabItem Style="{DynamicResource NavTabItem}"> |
2304 | 2331 | <TabItem.Header>
|
2305 | 2332 | <Grid>
|
2306 | 2333 | <Grid.ColumnDefinitions>
|
|
2323 | 2350 | VirtualizingStackPanel.IsVirtualizing="True"
|
2324 | 2351 | VirtualizingStackPanel.ScrollUnit="Pixel">
|
2325 | 2352 | <Border>
|
2326 |
| - <Grid Margin="5,18,18,10"> |
2327 |
| - <Grid.RowDefinitions> |
2328 |
| - <RowDefinition Height="43" /> |
2329 |
| - <RowDefinition Height="80" /> |
2330 |
| - <RowDefinition Height="146" /> |
2331 |
| - |
2332 |
| - <RowDefinition Height="50" /> |
2333 |
| - <RowDefinition Height="*" /> |
2334 |
| - <RowDefinition Height="50" /> |
2335 |
| - |
2336 |
| - <RowDefinition Height="50" /> |
2337 |
| - <RowDefinition Height="*" /> |
2338 |
| - <RowDefinition Height="50" /> |
2339 |
| - |
2340 |
| - <RowDefinition Height="50" /> |
2341 |
| - <RowDefinition Height="*" /> |
2342 |
| - </Grid.RowDefinitions> |
| 2353 | + <StackPanel Margin="5,18,18,10"> |
2343 | 2354 | <TextBlock
|
2344 | 2355 | Grid.Row="0"
|
2345 | 2356 | Margin="0,5,0,2"
|
|
2411 | 2422 | Style="{StaticResource SettingSeparatorStyle}" />
|
2412 | 2423 | <Border
|
2413 | 2424 | Margin="0"
|
2414 |
| - Padding="0,10,0,0" |
| 2425 | + Padding="0,10,0,10" |
2415 | 2426 | BorderThickness="0"
|
2416 | 2427 | Style="{DynamicResource SettingGroupBox}">
|
2417 | 2428 | <ItemsControl Style="{StaticResource SettingGrid}">
|
|
2434 | 2445 |
|
2435 | 2446 | <TextBlock
|
2436 | 2447 | Grid.Row="3"
|
2437 |
| - Margin="0,0,12,2" |
| 2448 | + Margin="0,10,12,10" |
2438 | 2449 | Padding="0,12,0,0"
|
2439 | 2450 | VerticalAlignment="Center"
|
2440 | 2451 | FontSize="14"
|
|
2459 | 2470 | </DataTemplate>
|
2460 | 2471 | </GridViewColumn.CellTemplate>
|
2461 | 2472 | </GridViewColumn>
|
2462 |
| - <GridViewColumn Width="540" Header="{DynamicResource customQuery}"> |
| 2473 | + <GridViewColumn Width="430" Header="{DynamicResource customQuery}"> |
2463 | 2474 | <GridViewColumn.CellTemplate>
|
2464 | 2475 | <DataTemplate DataType="userSettings:CustomPluginHotkey">
|
2465 | 2476 | <TextBlock Text="{Binding ActionKeyword}" />
|
|
2520 | 2531 | </DataTemplate>
|
2521 | 2532 | </GridViewColumn.CellTemplate>
|
2522 | 2533 | </GridViewColumn>
|
2523 |
| - <GridViewColumn Width="540" Header="{DynamicResource customShortcutExpansion}"> |
| 2534 | + <GridViewColumn Width="430" Header="{DynamicResource customShortcutExpansion}"> |
2524 | 2535 | <GridViewColumn.CellTemplate>
|
2525 | 2536 | <DataTemplate>
|
2526 | 2537 | <TextBlock Text="{Binding Value}" />
|
|
2579 | 2590 | </DataTemplate>
|
2580 | 2591 | </GridViewColumn.CellTemplate>
|
2581 | 2592 | </GridViewColumn>
|
2582 |
| - <GridViewColumn Width="540" Header="{DynamicResource builtinShortcutDescription}"> |
| 2593 | + <GridViewColumn Width="430" Header="{DynamicResource builtinShortcutDescription}"> |
2583 | 2594 | <GridViewColumn.CellTemplate>
|
2584 | 2595 | <DataTemplate>
|
2585 | 2596 | <TextBlock Text="{Binding Description, Converter={StaticResource TranlationConverter}}" />
|
|
2589 | 2600 | </GridView>
|
2590 | 2601 | </ListView.View>
|
2591 | 2602 | </ListView>
|
2592 |
| - </Grid> |
| 2603 | + </StackPanel> |
2593 | 2604 | </Border>
|
2594 | 2605 | </ScrollViewer>
|
2595 | 2606 | </TabItem>
|
2596 | 2607 |
|
2597 | 2608 |
|
2598 |
| - <TabItem> |
| 2609 | + <TabItem Style="{DynamicResource NavTabItem}"> |
2599 | 2610 | <TabItem.Header>
|
2600 | 2611 | <Grid>
|
2601 | 2612 | <Grid.ColumnDefinitions>
|
|
2771 | 2782 | </Border>
|
2772 | 2783 | </ScrollViewer>
|
2773 | 2784 | </TabItem>
|
2774 |
| - <TabItem> |
| 2785 | + <TabItem Style="{DynamicResource NavTabItem}"> |
2775 | 2786 | <TabItem.Header>
|
2776 | 2787 | <Grid>
|
2777 | 2788 | <Grid.ColumnDefinitions>
|
|
0 commit comments