summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/about.cxx
diff options
context:
space:
mode:
authorJürgen Schmidt <jsc@apache.org>2013-04-18 09:58:02 +0000
committerJürgen Schmidt <jsc@apache.org>2013-04-18 09:58:02 +0000
commit2af65172af2cfc768e4f44507a02e1b17a9806ba (patch)
treefd4c4c673a8a83bee9427170d8963559017474cf /cui/source/dialogs/about.cxx
parent581c83c696bd850066d425427c10374b6587b45d (diff)
#121996# integrate first part to remove 3layer office
Notes
Notes: prefer: a66f9903bba9dc7eeff6683ebddcd34d4ad70068
Diffstat (limited to 'cui/source/dialogs/about.cxx')
-rw-r--r--cui/source/dialogs/about.cxx16
1 files changed, 12 insertions, 4 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index b76deb2633cb..3b586d07b7fc 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -71,7 +71,7 @@
#define NOTICE_FILE "NOTICE" FILE_EXTENSION
// Dir where the files are located
-#define BRAND_DIR_SHARE_README "${BRAND_BASE_DIR}/share/readme/"
+#define OOO_DIR_SHARE_README "${OOO_BASE_DIR}/share/readme/"
using namespace com::sun::star;
@@ -219,13 +219,13 @@ namespace
maTabCtrl.Show();
// Notice and License are not localized
- const rtl::OUString sLicense( RTL_CONSTASCII_USTRINGPARAM( BRAND_DIR_SHARE_README LICENSE_FILE ) );
- const rtl::OUString sNotice( RTL_CONSTASCII_USTRINGPARAM( BRAND_DIR_SHARE_README NOTICE_FILE ) );
+ const rtl::OUString sLicense( RTL_CONSTASCII_USTRINGPARAM( OOO_DIR_SHARE_README LICENSE_FILE ) );
+ const rtl::OUString sNotice( RTL_CONSTASCII_USTRINGPARAM( OOO_DIR_SHARE_README NOTICE_FILE ) );
// get localized README
rtl::OUStringBuffer aBuff;
lang::Locale aLocale = Application::GetSettings().GetUILocale();
- aBuff.appendAscii( RTL_CONSTASCII_STRINGPARAM( BRAND_DIR_SHARE_README README_FILE "_" ) );
+ aBuff.appendAscii( RTL_CONSTASCII_STRINGPARAM( OOO_DIR_SHARE_README README_FILE "_" ) );
aBuff.append( aLocale.Language );
if ( aLocale.Country.getLength() )
{
@@ -350,6 +350,7 @@ void AboutDialog::ApplyStyleSettings()
Color aWindowColor( rSettings.GetWindowColor() );
Wallpaper aWall( aWindowColor );
SetBackground( aWall );
+
Font aNewFont( maCopyrightEdit.GetFont() );
aNewFont.SetTransparent( sal_True );
@@ -517,6 +518,13 @@ sal_Bool AboutDialog::Close()
void AboutDialog::Paint( const Rectangle& rRect )
{
SetClipRegion( rRect );
+
+ // workaround to ensure that the background is painted correct
+ // on MacOS for exmaple the background was grey and the image and other controls white
+ SetFillColor(GetSettings().GetStyleSettings().GetWindowColor());
+ SetLineColor();
+ DrawRect(rRect);
+
DrawImage( maMainLogoPos, maMainLogo );
DrawImage( maAppLogoPos, maAppLogo );