From 76a4e37736820243a7a522e1665fe254c5407fe6 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 5 Aug 2021 13:44:25 +0800 Subject: [PATCH] style<*>: text render styles --- src/Resources/Styles/Button.xaml | 1 - src/Resources/Styles/ContextMenu.xaml | 1 + src/Resources/Styles/DataGrid.xaml | 4 +- src/Resources/Styles/HyperLink.xaml | 1 + src/Resources/Styles/ListView.xaml | 1 + src/Resources/Styles/Path.xaml | 1 - src/Resources/Styles/TabControl.xaml | 5 +- src/Resources/Styles/TextBlock.xaml | 46 +++++++++++++----- src/Resources/Styles/TextBox.xaml | 2 + src/Resources/Styles/Tooltip.xaml | 1 + src/Resources/Styles/Tree.xaml | 2 +- src/Resources/Styles/Window.xaml | 1 + src/Views/About.xaml | 2 +- src/Views/Blame.xaml | 9 ++-- src/Views/Controls/Avatar.cs | 1 + src/Views/Histories.xaml | 8 ++- src/Views/Preference.xaml | 2 +- src/Views/Upgrade.xaml | 1 - src/Views/Widgets/CommitChanges.xaml | 14 ++---- src/Views/Widgets/CommitDetail.xaml | 59 +++++++++-------------- src/Views/Widgets/Dashboard.xaml | 38 +++++++-------- src/Views/Widgets/DiffViewer.xaml | 10 ++-- src/Views/Widgets/DiffViewer.xaml.cs | 5 -- src/Views/Widgets/Histories.xaml | 17 +++---- src/Views/Widgets/PageTabBar.xaml | 1 - src/Views/Widgets/PopupPanel.xaml | 3 +- src/Views/Widgets/RevisionCompare.xaml | 8 +-- src/Views/Widgets/RevisionFiles.xaml | 13 ++--- src/Views/Widgets/Stashes.xaml | 8 +-- src/Views/Widgets/Welcome.xaml | 8 +-- src/Views/Widgets/WorkingCopyChanges.xaml | 10 ++-- 31 files changed, 139 insertions(+), 144 deletions(-) diff --git a/src/Resources/Styles/Button.xaml b/src/Resources/Styles/Button.xaml index 7c588d40..81f38dff 100644 --- a/src/Resources/Styles/Button.xaml +++ b/src/Resources/Styles/Button.xaml @@ -30,5 +30,4 @@ \ No newline at end of file diff --git a/src/Resources/Styles/TabControl.xaml b/src/Resources/Styles/TabControl.xaml index bf007c18..9f265931 100644 --- a/src/Resources/Styles/TabControl.xaml +++ b/src/Resources/Styles/TabControl.xaml @@ -46,9 +46,12 @@ ContentSource="Header" Margin="8,4"> - - + + + + - + + \ No newline at end of file diff --git a/src/Resources/Styles/TextBox.xaml b/src/Resources/Styles/TextBox.xaml index 1e8435e4..9c5be87b 100644 --- a/src/Resources/Styles/TextBox.xaml +++ b/src/Resources/Styles/TextBox.xaml @@ -7,6 +7,7 @@ + @@ -67,6 +68,7 @@ Background="Transparent" BorderThickness="0" IsTabStop="False" + RenderOptions.ClearTypeHint="Enabled" CanContentScroll="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/> diff --git a/src/Resources/Styles/Tooltip.xaml b/src/Resources/Styles/Tooltip.xaml index ed07f420..4ce7cf0a 100644 --- a/src/Resources/Styles/Tooltip.xaml +++ b/src/Resources/Styles/Tooltip.xaml @@ -2,6 +2,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">