Relates tdf#130778 - Branding for 7.0
Better splash screen images Start center image depending on initial size Change-Id: I18823e04537bb217eaa7610c71c8021907dbbb94 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92583 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 128 KiB |
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 124 KiB |
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 83 KiB |
@ -137,10 +137,10 @@ $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_
|
||||
&& echo 'ProgressBarColor=0,0,0' \
|
||||
&& echo 'ProgressFrameColor=102,102,102' \
|
||||
&& echo 'ProgressPosition=30,145' \
|
||||
&& echo 'ProgressSize=265,8' \
|
||||
&& echo 'ProgressPositionHigh=46,212' \
|
||||
&& echo 'ProgressSizeHigh=617,12' \
|
||||
&& echo 'ProgressTextBaseline=160' \
|
||||
&& echo 'ProgressSize=385,8' \
|
||||
&& echo 'ProgressPositionHigh=30,200' \
|
||||
&& echo 'ProgressSizeHigh=650,12' \
|
||||
&& echo 'ProgressTextBaseline=150' \
|
||||
&& echo 'ProgressTextColor=0,0,0' \
|
||||
&& echo 'SecureUserConfig=true' \
|
||||
&& echo 'SecureUserConfigCompress=true' \
|
||||
|
@ -136,8 +136,6 @@ RecentDocsView::RecentDocsView( vcl::Window* pParent )
|
||||
setItemMaxTextLength( 30 );
|
||||
setItemDimensions( mnItemMaxSize, mnItemMaxSize, gnTextHeight, gnItemPadding );
|
||||
|
||||
maWelcomeImage = SfxApplication::GetApplicationLogo(500);
|
||||
|
||||
maFillColor = Color(officecfg::Office::Common::Help::StartCenter::StartCenterThumbnailsBackgroundColor::get());
|
||||
maTextColor = Color(officecfg::Office::Common::Help::StartCenter::StartCenterThumbnailsTextColor::get());
|
||||
maHighlightColor = Color(officecfg::Office::Common::Help::StartCenter::StartCenterThumbnailsHighlightColor::get());
|
||||
@ -355,6 +353,12 @@ void RecentDocsView::Paint(vcl::RenderContext& rRenderContext, const tools::Rect
|
||||
|
||||
if (mItemList.empty())
|
||||
{
|
||||
if (maWelcomeImage.IsEmpty())
|
||||
{
|
||||
const long aWidth(aRect.GetWidth() > aRect.getHeight() ? aRect.GetHeight()/2 : aRect.GetWidth()/2);
|
||||
maWelcomeImage = SfxApplication::GetApplicationLogo(aWidth);
|
||||
}
|
||||
|
||||
// No recent files to be shown yet. Show a welcome screen.
|
||||
rRenderContext.Push(PushFlags::FONT | PushFlags::TEXTCOLOR);
|
||||
SetMessageFont(rRenderContext);
|
||||
|