svx/source/sidebar/tools/ValueSetWithTextControl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6256d5fe2e7cb1bb002d5fe59527d3a3fbf6963f
Author:     Justin Luth <jl...@mail.com>
AuthorDate: Mon Jul 10 15:27:29 2023 -0400
Commit:     Justin Luth <jl...@mail.com>
CommitDate: Tue Jul 18 02:40:08 2023 +0200

    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 <jl...@mail.com>

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 );

Reply via email to