Skip to content

Commit

Permalink
Adjust the margins and paddings
Browse files Browse the repository at this point in the history
  • Loading branch information
SlimeNull committed Feb 17, 2023
1 parent 988896b commit 4409a89
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 6 additions & 4 deletions clashN/clashN/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<ResourceDictionary xmlns:system="clr-namespace:System;assembly=mscorlib">
<ResourceDictionary.MergedDictionaries>
<materialDesign:BundledTheme
BaseTheme="Light"
BaseTheme="Dark"
PrimaryColor="Blue"
SecondaryColor="Lime" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
Expand Down Expand Up @@ -65,8 +65,9 @@
<Style TargetType="{x:Type TextElement}">
<Setter Property="FontWeight" Value="Regular" />
</Style>
<Style x:Key="lvItemSelected" TargetType="{x:Type ListViewItem}">
<Setter Property="Margin" Value="2" />
<Style x:Key="lvItemSelected"
TargetType="{x:Type ListViewItem}">
<Setter Property="Margin" Value="5" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListViewItem">
Expand All @@ -75,7 +76,7 @@
</materialDesign:Card>
<ControlTemplate.Triggers>
<Trigger Property="IsSelected" Value="true">
<Setter TargetName="_Card" Property="Foreground" Value="{DynamicResource PrimaryHueLightBrush}"/>
<Setter TargetName="_Card" Property="Foreground" Value="{DynamicResource PrimaryHueDarkBrush}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
Expand All @@ -96,6 +97,7 @@
BasedOn="{StaticResource MaterialDesignRaisedButton}"
TargetType="{x:Type ButtonBase}">
<Setter Property="FontSize" Value="{DynamicResource StdFontSize3}" />
<Setter Property="Foreground" Value="{DynamicResource PrimaryHueDarkForegroundBrush}"/>
</Style>
<Style
x:Key="DefMenu"
Expand Down
2 changes: 1 addition & 1 deletion clashN/clashN/Views/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
Style="{StaticResource MaterialDesignEmbeddedDialogHost}">
<Grid>
<Grid Grid.Column="0">
<TabControl Style="{StaticResource MaterialDesignNavigatilRailTabControl}">
<TabControl Style="{StaticResource MaterialDesignNavigatilRailTabControl}" Padding="10, 0">
<materialDesign:NavigationRailAssist.FloatingContent>
<StackPanel
Width="auto"
Expand Down
4 changes: 3 additions & 1 deletion clashN/clashN/Views/ProxiesView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,12 @@
</ToolBar>
</ToolBarTray>
<DockPanel>

<ListView
x:Name="lstProxyGroups"
Margin="0, 0, 5, 0"
BorderThickness="0"
DockPanel.Dock="Left"
Style="{StaticResource MaterialDesignListView}"
ItemContainerStyle="{StaticResource lvItemSelected}"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
ScrollViewer.VerticalScrollBarVisibility="Visible">
Expand Down Expand Up @@ -145,6 +146,7 @@
<ListView
x:Name="lstProxyDetails"
BorderThickness="0"
Style="{StaticResource MaterialDesignListView}"
ItemContainerStyle="{StaticResource lvItemSelected}"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
ScrollViewer.VerticalScrollBarVisibility="Visible">
Expand Down

0 comments on commit 4409a89

Please sign in to comment.