https://bugs.freedesktop.org/show_bug.cgi?id=80476
--- Comment #15 from Michael Meeks <michael.me...@collabora.com> --- Ah - well ;-) I suspect that the problem lies here: sfx2/source/dialog/backingwindow.cxx const int nButtonsFontSize = 15; which is a hard-coded point (whatever that means) size for the font there. I suspect if instead we had something like: Font aFont = pParent->GetSettings().GetStyleSettings().GetLabelFont(); aFont.SetSize(Size(0, aFont.GetSize().Height() * 1.2)); aFont.SetWeight(WEIGHT_BOLD); Or somesuch (as we do for the message dialogs font); perhaps this would do it - testing appreciated: --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -59,7 +59,7 @@ const char TEMPLATE_URL[] = "slot:5500"; const char OPEN_URL[] = ".uno:Open"; const char SERVICENAME_CFGREADACCESS[] = "com.sun.star.configuration.ConfigurationAccess"; -const int nButtonsFontSize = 15; +const float nButtonsFontEnlarge = 1.5; const Color aButtonsBackground(114, 168, 84); // TDF green const Color aButtonsText(COL_WHITE); @@ -242,7 +242,7 @@ void BackingWindow::initControls() // setup nice colors mpCreateLabel->SetControlForeground(aButtonsText); Font aFont(mpCreateLabel->GetControlFont()); - aFont.SetHeight(nButtonsFontSize); + aFont.SetHeight(aFont.GetSize().Height() * nButtonsFontEnlarge); mpCreateLabel->SetControlFont(aFont); mpHelpButton->SetControlForeground(aButtonsText); @@ -274,7 +274,7 @@ void BackingWindow::setupButton( PushButton* pButton ) { // the buttons should have a bit bigger font Font aFont(pButton->GetControlFont()); - aFont.SetHeight(nButtonsFontSize); + aFont.SetHeight(aFont.GetSize().Height() * nButtonsFontEnlarge); pButton->SetControlFont(aFont); // color that fits the theme Then again - that doesn't appear to have any effect on the font size whatever so ... ;-) hmm. -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs