Skip to content

Commit b0f0ac8

Browse files
authored
Apply Tweaks to DataGrid FontSize, ColumnHeaders (#1254)
1 parent 8580c23 commit b0f0ac8

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

Files/Views/LayoutModes/GenericFileBrowser.xaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@
517517
<controls:DataGrid.Resources>
518518
<SolidColorBrush x:Key="DataGridCellFocusVisualPrimaryBrush" Color="Transparent" />
519519
<SolidColorBrush x:Key="DataGridCellFocusVisualSecondaryBrush" Color="Transparent" />
520-
<StaticResource x:Key="DataGridColumnHeaderBackgroundColor" ResourceKey="ApplicationPageBackgroundThemeBrush" />
520+
<StaticResource x:Key="DataGridColumnHeaderBackgroundColor" ResourceKey="SystemControlTransparentBrush" />
521521
</controls:DataGrid.Resources>
522522
<controls:DataGrid.ColumnHeaderStyle>
523523
<Style TargetType="controlsprimitives:DataGridColumnHeader">
@@ -543,7 +543,12 @@
543543
</MenuFlyout>
544544
</Setter.Value>
545545
</Setter>
546-
<Setter Property="Background" Value="{ThemeResource ApplicationPageBackgroundThemeBrush}" />
546+
<Setter Property="SeparatorBrush" Value="Transparent"/>
547+
<Setter Property="Height" Value="38"/>
548+
<Setter Property="FontSize" Value="14"/>
549+
<Setter Property="Foreground" Value="{ThemeResource ApplicationForegroundThemeBrush}"/>
550+
<Setter Property="FontWeight" Value="SemiBold"/>
551+
<Setter Property="Background" Value="Transparent" />
547552
</Style>
548553
</controls:DataGrid.ColumnHeaderStyle>
549554
<Interactivity:Interaction.Behaviors>
@@ -568,11 +573,11 @@
568573
<Setter Property="FocusVisualSecondaryThickness" Value="0" />
569574
</Style>
570575
</controls:DataGrid.CellStyle>
571-
572576
<controls:DataGrid.Columns>
573577
<controls:DataGridTemplateColumn
574578
x:Name="iconColumn"
575579
DisplayIndex="0"
580+
CanUserResize="False"
576581
IsReadOnly="True">
577582
<controls:DataGridTemplateColumn.CellTemplate>
578583
<DataTemplate x:DataType="local2:ListedItem">
@@ -617,6 +622,7 @@
617622
x:Name="nameColumn"
618623
x:Uid="nameColumn"
619624
Width="275"
625+
FontSize="14"
620626
Binding="{Binding ItemName}"
621627
DisplayIndex="1"
622628
Header="Name"
@@ -629,6 +635,7 @@
629635
x:Name="dateColumn"
630636
x:Uid="dateColumn"
631637
Width="Auto"
638+
FontSize="12"
632639
Binding="{Binding ItemDateModified}"
633640
DisplayIndex="2"
634641
Header="Date modified"
@@ -642,6 +649,7 @@
642649
x:Name="typeColumn"
643650
x:Uid="typeColumn"
644651
Width="150"
652+
FontSize="12"
645653
Binding="{Binding ItemType, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
646654
DisplayIndex="3"
647655
Header="Type"
@@ -656,6 +664,7 @@
656664
x:Uid="sizeColumn"
657665
Width="Auto"
658666
MinWidth="100"
667+
FontSize="12"
659668
Binding="{Binding FileSize}"
660669
DisplayIndex="4"
661670
Header="Size"

0 commit comments

Comments
 (0)