diff options
author | Justin Luth <jluth@mail.com> | 2023-07-10 15:27:29 -0400 |
---|---|---|
committer | Justin Luth <jluth@mail.com> | 2023-07-18 02:40:08 +0200 |
commit | 6256d5fe2e7cb1bb002d5fe59527d3a3fbf6963f (patch) | |
tree | b3a7a3b1f8af0d137580a9f2a6adf751dfd5cb44 /svx/source/sidebar | |
parent | e58e251756ecb0312cb6891d4df23e17ef8f6fcb (diff) |
tdf#136905 NBB: use label font in ValueSetWithTextControl
The label font is taken from the system settings,
and doing this matched the "more options" button font
as well as the nearby "margins" and "columns"
as well as pretty much everything else in the notebookbar.
I tested this by changing "Font Selection" in my Ubuntu Cinnamon
to a flowery font. Prior to the patch it was a normalish font,
but after the change it was using the flowery font.
Change-Id: I2585e6aec31aa4195a2354337eb243e63c719ec0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154555
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'svx/source/sidebar')
-rw-r--r-- | svx/source/sidebar/tools/ValueSetWithTextControl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx index 77b260272264..91cea51325e6 100644 --- a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx +++ b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx @@ -75,7 +75,7 @@ void ValueSetWithTextControl::UserDraw( const UserDrawEvent& rUDEvt ) const tools::Long nRectHeight = aRect.GetHeight(); - vcl::Font aFont(OutputDevice::GetDefaultFont(DefaultFontType::UI_SANS, MsLangId::getConfiguredSystemLanguage(), GetDefaultFontFlags::OnlyOne)); + vcl::Font aFont(Application::GetSettings().GetStyleSettings().GetLabelFont()); { Size aSize = aFont.GetFontSize(); aSize.setHeight( (nRectHeight*4)/9 ); |