r17032 by fschmid - Follow-Up to Bug 9835: "Impossible to see resize handles due to object color", enlarged the handles and filling is now green with a red outline.

scribus-commit scribus-commit at lists.scribus.net
Sat Nov 26 20:41:39 UTC 2011


Author: fschmid
Date: Sat Nov 26 20:41:39 2011
New Revision: 17032

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17032
Log:
Follow-Up to Bug 9835: "Impossible to see resize handles due to object color", enlarged the handles and filling is now green with a red outline.

Modified:
    trunk/Scribus/scribus/canvasmode.cpp

Modified: trunk/Scribus/scribus/canvasmode.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17032&path=/trunk/Scribus/scribus/canvasmode.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode.cpp (original)
+++ trunk/Scribus/scribus/canvasmode.cpp Sat Nov 26 20:41:39 2011
@@ -229,8 +229,8 @@
 	
 	psx->setClipping(true);
 	psx->setClipRegion(QRegion ( m_canvas->exposedRect() ) );
-	const double markWidth = 4.0 / m_canvas->scale();
-	const double halfMarkWidth = 2.0 / m_canvas->scale();
+	const double markWidth = 8.0 / m_canvas->scale();
+	const double halfMarkWidth = 4.0 / m_canvas->scale();
 	if (m_doc->m_Selection->isMultipleSelection())
 	{
 		PageItem *curItem(0);
@@ -261,7 +261,7 @@
 		psx->drawRect(QRectF(x, y, w, h));
 		if(drawHandles)
 		{
-			psx->setBrush(Qt::white);
+			psx->setBrush(Qt::green);
 			psx->setPen(m_pen["handle"]);
 			psx->drawRect(QRectF(x+w-markWidth, y+h-markWidth, markWidth, markWidth));
 			psx->drawRect(QRectF(x+w/2.0 - halfMarkWidth, y+h-markWidth, markWidth, markWidth));
@@ -385,14 +385,14 @@
 					if(currItem->asLine())
 					{
 						psx->setRenderHint(QPainter::Antialiasing);
-						psx->setBrush(Qt::white);
+						psx->setBrush(Qt::green);
 						psx->setPen(m_pen["handle"]);
 						psx->drawEllipse(QRectF(x+w-markWidth, y+h/2.0-markWidth, 2* markWidth,2* markWidth));
 						psx->drawEllipse(QRectF(x-markWidth, y+h/2.0-markWidth, 2* markWidth, 2* markWidth));
 					}
 					else
 					{
-						psx->setBrush(Qt::white);
+						psx->setBrush(Qt::green);
 						psx->setPen(m_pen["handle"]);
 						psx->drawRect(QRectF(x+w-markWidth, y+h-markWidth, markWidth, markWidth));
 						psx->drawRect(QRectF(x+w/2.0 - halfMarkWidth, y+h-markWidth, markWidth, markWidth));




More information about the scribus-commit mailing list