Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit aaf6028

Browse files
committed
Add ListItemTitleFontSize resource
1 parent 3244589 commit aaf6028

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

src/GitHub.VisualStudio/GitHub.VisualStudio.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,10 @@
397397
<Page Include="SharedDictionary.xaml">
398398
<Generator>MSBuild:Compile</Generator>
399399
</Page>
400+
<Page Include="Styles\Typography.xaml">
401+
<SubType>Designer</SubType>
402+
<Generator>MSBuild:Compile</Generator>
403+
</Page>
400404
<Page Include="Styles\VsBrush.xaml">
401405
<Generator>MSBuild:Compile</Generator>
402406
<SubType>Designer</SubType>

src/GitHub.VisualStudio/SharedDictionary.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<cache:SharedDictionaryManager Source="pack://application:,,,/GitHub.VisualStudio;component/Styles/Buttons.xaml" />
1313
<cache:SharedDictionaryManager Source="pack://application:,,,/GitHub.VisualStudio;component/Styles/GitHubTabControl.xaml" />
1414
<cache:SharedDictionaryManager Source="pack://application:,,,/GitHub.VisualStudio;component/Styles/TextBlocks.xaml" />
15+
<cache:SharedDictionaryManager Source="pack://application:,,,/GitHub.VisualStudio;component/Styles/Typography.xaml" />
1516
</ResourceDictionary.MergedDictionaries>
1617

1718
<Style x:Key="VSStyledButton" BasedOn="{StaticResource VsButtonStyleKey}" TargetType="{x:Type Button}" />
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3+
xmlns:sys="clr-namespace:System;assembly=mscorlib"
4+
xmlns:local="clr-namespace:GitHub.VisualStudio.Styles">
5+
6+
<sys:Double x:Key="GitHubVsListItemTitleFontSize">16</sys:Double>
7+
</ResourceDictionary>

src/GitHub.VisualStudio/UI/Views/Controls/PullRequestListItem.xaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
HorizontalAlignment="Left"
5656
VerticalAlignment="Top"
5757
FontFamily="Segoe UI"
58-
FontSize="14"
58+
FontSize="{DynamicResource GitHubVsListTitleFontSize}"
5959
Foreground="{DynamicResource GitHubVsToolWindowText}"
6060
Margin="0,-3,5,0"
6161
Text="{Binding Title}"
@@ -91,7 +91,6 @@
9191
HorizontalAlignment="Left"
9292
VerticalAlignment="Top"
9393
FontFamily="Segoe UI"
94-
FontSize="12"
9594
Foreground="{DynamicResource GitHubVsToolWindowText}"
9695
Text="{Binding CommentCount}">
9796
<TextBlock.Style>
@@ -133,12 +132,10 @@
133132
CommandParameter="{Binding Number}"
134133
Content="{Binding Number}"
135134
FontFamily="Segoe UI"
136-
FontSize="12"
137135
Style="{StaticResource HashtagActionLink}" />
138136
<TextBlock x:Name="description"
139137
Grid.Column="1"
140138
FontFamily="Segoe UI"
141-
FontSize="12"
142139
Margin="0,0,10,0"
143140
TextTrimming="CharacterEllipsis"
144141
Foreground="{DynamicResource GitHubVsGrayText}">

src/GitHub.VisualStudio/UI/Views/PullRequestCreationView.xaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@
341341
ToolTip="I am an example commit message"
342342
VerticalAlignment="Top"
343343
Foreground="{DynamicResource GitHubVsToolWindowText}"
344-
FontSize="14"
344+
FontSize="{StaticResource GitHubVsListItemTitleFontSize}"
345345
Margin="10,-3,5,0"
346346
Grid.Column="1"
347347
Grid.Row="0" />
@@ -350,7 +350,6 @@
350350
Text="Andreia Gaita committed 20 hours ago"
351351
ToolTip="Andreia Gaita committed 20 hours ago"
352352
VerticalAlignment="Top"
353-
FontSize="11"
354353
Grid.Column="1"
355354
Grid.Row="1"
356355
Foreground="{DynamicResource GitHubVsGrayText}"/>

0 commit comments

Comments
 (0)