From 09719183626a1234a609f5c5009a89a65c32ff0d Mon Sep 17 00:00:00 2001 From: Jamie Cansdale Date: Tue, 30 Apr 2019 11:36:49 +0100 Subject: [PATCH] Add design time resources for font scaling Add scaling styles for built in Labels and TextBlocks on Visual Studio 2015 and up. --- .../Properties/DesignTimeResources.xaml | 2 + .../Properties/DesignTimeResources.xaml | 2 + .../Themes/FontScalingLabelStyle.xaml | 47 +++++++++++++++++++ .../Themes/FontScalingTextBlockStyle.xaml | 47 +++++++++++++++++++ 4 files changed, 98 insertions(+) create mode 100644 src/GitHub.VisualStudio.UI/Themes/FontScalingLabelStyle.xaml create mode 100644 src/GitHub.VisualStudio.UI/Themes/FontScalingTextBlockStyle.xaml diff --git a/src/GitHub.InlineReviews/Properties/DesignTimeResources.xaml b/src/GitHub.InlineReviews/Properties/DesignTimeResources.xaml index 3c49f58d05..c10aae3cd5 100644 --- a/src/GitHub.InlineReviews/Properties/DesignTimeResources.xaml +++ b/src/GitHub.InlineReviews/Properties/DesignTimeResources.xaml @@ -8,6 +8,8 @@ + + diff --git a/src/GitHub.VisualStudio.UI/Properties/DesignTimeResources.xaml b/src/GitHub.VisualStudio.UI/Properties/DesignTimeResources.xaml index e677d1bef3..10e06ccb27 100644 --- a/src/GitHub.VisualStudio.UI/Properties/DesignTimeResources.xaml +++ b/src/GitHub.VisualStudio.UI/Properties/DesignTimeResources.xaml @@ -8,6 +8,8 @@ + + diff --git a/src/GitHub.VisualStudio.UI/Themes/FontScalingLabelStyle.xaml b/src/GitHub.VisualStudio.UI/Themes/FontScalingLabelStyle.xaml new file mode 100644 index 0000000000..b1cd2df882 --- /dev/null +++ b/src/GitHub.VisualStudio.UI/Themes/FontScalingLabelStyle.xaml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/GitHub.VisualStudio.UI/Themes/FontScalingTextBlockStyle.xaml b/src/GitHub.VisualStudio.UI/Themes/FontScalingTextBlockStyle.xaml new file mode 100644 index 0000000000..e1d59a1b49 --- /dev/null +++ b/src/GitHub.VisualStudio.UI/Themes/FontScalingTextBlockStyle.xaml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file