diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2017-11-11 12:29:26 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2017-11-16 18:50:28 +0100 |
commit | fc6231f1d1dd2a4e6f678b8221971e09807d8de8 (patch) | |
tree | c77ab0678c36432040b5a866cc74b6ab5d9b8f0b /vcl/unx/gtk | |
parent | 84e1a01e2d1964a143f5b01fa0b70d9570dcb834 (diff) |
vcl: StyleSettings - start to unwind code duplication.
This should be a pure re-factor, plus:
switch from Serif -> Sans font default for the UI (wow).
enable larger font size for LOK only
that avoids a hard to debug svx junit test failure.
Change-Id: Id438026064983ea4907819bab55c4be740954605
Reviewed-on: https://gerrit.libreoffice.org/44625
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl/unx/gtk')
-rw-r--r-- | vcl/unx/gtk/salnativewidgets-gtk.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/vcl/unx/gtk/salnativewidgets-gtk.cxx b/vcl/unx/gtk/salnativewidgets-gtk.cxx index b5639e95ec8e..71cdf74f0ca5 100644 --- a/vcl/unx/gtk/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk/salnativewidgets-gtk.cxx @@ -3984,17 +3984,7 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings ) if( aInfo.m_ePitch != PITCH_DONTKNOW ) aFont.SetPitch( aInfo.m_ePitch ); - aStyleSet.SetAppFont( aFont ); - aStyleSet.SetHelpFont( aFont ); - aStyleSet.SetMenuFont( aFont ); - aStyleSet.SetToolFont( aFont ); - aStyleSet.SetLabelFont( aFont ); - aStyleSet.SetRadioCheckFont( aFont ); - aStyleSet.SetPushButtonFont( aFont ); - aStyleSet.SetFieldFont( aFont ); - aStyleSet.SetIconFont( aFont ); - aStyleSet.SetTabFont( aFont ); - aStyleSet.SetGroupFont( aFont ); + aStyleSet.BatchSetFonts( aFont, aFont ); aFont.SetWeight( WEIGHT_BOLD ); aStyleSet.SetTitleFont( aFont ); |