diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2020-05-04 21:48:17 +0200 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2020-05-05 07:52:28 +0200 |
commit | 1bc96e1d9c4d372761ac4b6a2891cbcc3768a60f (patch) | |
tree | 505aec410824984ee397ca1c1fb77f7078954a5d /cui/source/dialogs/about.cxx | |
parent | f14691683900f6b28737be8c599e1ee4e8386e14 (diff) |
Some improvements to About box and branding
* Label left-aligned (tdf#132322)
* Long build string cut at 25 chars
* Extra text such as Tinderbox info wraps now at Misc
* UI-Language shortened to just UI
* More padding between about image and text
* Splash screen uses Vegur font
* Splash with small border
* Non-TDF logos have a "Community Edition" text
Change-Id: I1ec31e22052e365f28fe91de3e083252975911c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93444
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'cui/source/dialogs/about.cxx')
-rw-r--r-- | cui/source/dialogs/about.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index c07a8c964586..953670ffa7ae 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -71,10 +71,13 @@ AboutDialog::AboutDialog(weld::Window *pParent) m_pVersionLabel->set_label(GetVersionString()); OUString sbuildId = GetBuildString(); + const long nMaxChar = 25; if (IsStringValidGitHash(sbuildId)) { - m_pBuildLabel->set_label(sbuildId); - m_pBuildLabel->set_uri( - "https://gerrit.libreoffice.org/gitweb?p=core.git;a=log;h=" + sbuildId); + m_pBuildLabel->set_uri("https://gerrit.libreoffice.org/gitweb?p=core.git;a=log;h=" + + sbuildId); + m_pBuildLabel->set_label(sbuildId.getLength() > nMaxChar ? sbuildId.replaceAt( + nMaxChar, sbuildId.getLength() - nMaxChar, "...") + : sbuildId); } else { m_pBuildCaption->hide(); m_pBuildLabel->hide(); @@ -104,7 +107,7 @@ AboutDialog::AboutDialog(weld::Window *pParent) m_pBrandImage->set_image(m_pVirDev.get()); m_pVirDev.disposeAndClear(); } - if (SfxApplication::loadBrandSvg("shell/about", aBackgroundBitmap, nWidth)) { + if (SfxApplication::loadBrandSvg("shell/about", aBackgroundBitmap, nWidth * 0.9)) { ScopedVclPtr<VirtualDevice> m_pVirDev = m_pAboutImage->create_virtual_device(); m_pVirDev->SetOutputSizePixel(aBackgroundBitmap.GetSizePixel()); |