[Libreoffice-commits] core.git: officecfg/registry svx/source
Aybuke Ozdemir
aybuke.147 at gmail.com
Tue Oct 27 15:49:13 UTC 2015
officecfg/registry/schema/org/openoffice/Office/Common.xcs | 2 -
svx/source/gallery2/galctrl.cxx | 20 +++----------
svx/source/tbxctrls/fontworkgallery.cxx | 17 ++---------
3 files changed, 10 insertions(+), 29 deletions(-)
New commits:
commit 9b322ace3b8f316104f7138b082d2ffdb282c816
Author: Aybuke Ozdemir <aybuke.147 at gmail.com>
Date: Fri Oct 23 23:12:08 2015 +0300
tdf#88548 fontwork gallery always have transparent/checkered background.
Change-Id: I8995ef12edb64c14788ba3a2c3c1c2ceb3775b11
diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
index ac5b634..d693fc7 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
@@ -6359,7 +6359,7 @@
</desc>
<label>Shows previews with shining through checkered background to visualize transparency.</label>
</info>
- <value>true</value>
+ <value>false</value>
</prop>
</group>
<group oor:name="ExternalApps" oor:extensible="true">
diff --git a/svx/source/gallery2/galctrl.cxx b/svx/source/gallery2/galctrl.cxx
index 69da8fe..0cf63b8 100644
--- a/svx/source/gallery2/galctrl.cxx
+++ b/svx/source/gallery2/galctrl.cxx
@@ -257,23 +257,13 @@ void GalleryPreview::PreviewMedia( const INetURLObject& rURL )
void drawTransparenceBackground(vcl::RenderContext& rOut, const Point& rPos, const Size& rSize)
{
- const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
- if (rStyleSettings.GetPreviewUsesCheckeredBackground())
- {
- // draw checkered background
- static const sal_uInt32 nLen(8);
- static const Color aW(COL_WHITE);
- static const Color aG(0xef, 0xef, 0xef);
+ // draw checkered background
+ static const sal_uInt32 nLen(8);
+ static const Color aW(COL_WHITE);
+ static const Color aG(0xef, 0xef, 0xef);
- rOut.DrawCheckered(rPos, rSize, nLen, aW, aG);
- }
- else
- {
- rOut.SetLineColor();
- rOut.SetFillColor(rStyleSettings.GetFieldColor());
- rOut.DrawRect(Rectangle(rPos, rSize));
- }
+ rOut.DrawCheckered(rPos, rSize, nLen, aW, aG);
}
GalleryIconView::GalleryIconView( GalleryBrowser2* pParent, GalleryTheme* pTheme ) :
diff --git a/svx/source/tbxctrls/fontworkgallery.cxx b/svx/source/tbxctrls/fontworkgallery.cxx
index d8fde7f..ac814fa 100644
--- a/svx/source/tbxctrls/fontworkgallery.cxx
+++ b/svx/source/tbxctrls/fontworkgallery.cxx
@@ -115,7 +115,6 @@ void FontWorkGalleryDialog::initFavorites(sal_uInt16 nThemeId)
sal_uInt32 nModelPos;
FmFormModel *pModel = NULL;
- const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
for( nModelPos = 0; nModelPos < nFavCount; nModelPos++ )
{
@@ -133,19 +132,11 @@ void FontWorkGalleryDialog::initFavorites(sal_uInt16 nThemeId)
pVDev->SetOutputSizePixel(aSize);
- if(rStyleSettings.GetPreviewUsesCheckeredBackground())
- {
- static const sal_uInt32 nLen(8);
- static const Color aW(COL_WHITE);
- static const Color aG(0xef, 0xef, 0xef);
+ static const sal_uInt32 nLen(8);
+ static const Color aW(COL_WHITE);
+ static const Color aG(0xef, 0xef, 0xef);
- pVDev->DrawCheckered(aNull, aSize, nLen, aW, aG);
- }
- else
- {
- pVDev->SetBackground(rStyleSettings.GetFieldColor());
- pVDev->Erase();
- }
+ pVDev->DrawCheckered(aNull, aSize, nLen, aW, aG);
pVDev->DrawBitmapEx(aNull, aThumb);
maFavoritesHorizontal.push_back(pVDev->GetBitmap(aNull, aSize));
More information about the Libreoffice-commits
mailing list