Shrunk compass size by 25%

preferencesAboutTextFull
Craig Watson 9 years ago
parent e9398f55ee
commit 75a23aa76f
  1. 4
      src/tools/UBGraphicsCompass.cpp
  2. 26
      src/tools/UBGraphicsCompass.h

@ -37,7 +37,7 @@
#include "core/memcheck.h" #include "core/memcheck.h"
const QRect UBGraphicsCompass::sDefaultRect = QRect(0, -20, 300, 48); const QRect UBGraphicsCompass::sDefaultRect = QRect(0, -20, 300, 36);
const QColor UBGraphicsCompass::sLightBackgroundMiddleFillColor = QColor(0x72, 0x72, 0x72, sFillTransparency); const QColor UBGraphicsCompass::sLightBackgroundMiddleFillColor = QColor(0x72, 0x72, 0x72, sFillTransparency);
const QColor UBGraphicsCompass::sLightBackgroundEdgeFillColor = QColor(0xc3, 0xc3, 0xc3, sFillTransparency); const QColor UBGraphicsCompass::sLightBackgroundEdgeFillColor = QColor(0xc3, 0xc3, 0xc3, sFillTransparency);
const QColor UBGraphicsCompass::sLightBackgroundDrawColor = QColor(0x33, 0x33, 0x33, sDrawTransparency); const QColor UBGraphicsCompass::sLightBackgroundDrawColor = QColor(0x33, 0x33, 0x33, sDrawTransparency);
@ -46,7 +46,7 @@ const QColor UBGraphicsCompass::sDarkBackgroundEdgeFillColor = QColor(0xdd, 0xdd
const QColor UBGraphicsCompass::sDarkBackgroundDrawColor = QColor(0xff, 0xff, 0xff, sDrawTransparency); const QColor UBGraphicsCompass::sDarkBackgroundDrawColor = QColor(0xff, 0xff, 0xff, sDrawTransparency);
const int UBGraphicsCompass::sMinRadius = UBGraphicsCompass::sNeedleLength + UBGraphicsCompass::sNeedleBaseLength const int UBGraphicsCompass::sMinRadius = UBGraphicsCompass::sNeedleLength + UBGraphicsCompass::sNeedleBaseLength
+ 32 + UBGraphicsCompass::sDefaultRect.height() + 32 + UBGraphicsCompass::sPencilBaseLength + 24 + UBGraphicsCompass::sDefaultRect.height() + 24 + UBGraphicsCompass::sPencilBaseLength
+ UBGraphicsCompass::sPencilLength; + UBGraphicsCompass::sPencilLength;
UBGraphicsCompass::UBGraphicsCompass() UBGraphicsCompass::UBGraphicsCompass()

@ -124,25 +124,25 @@ class UBGraphicsCompass: public QObject, public QGraphicsRectItem, public UBItem
int mPixelsPerMillimeter; int mPixelsPerMillimeter;
// Constants // Constants
static const int sNeedleLength = 24; static const int sNeedleLength = 18;
static const int sNeedleWidth = 4; static const int sNeedleWidth = 3;
static const int sNeedleBaseLength = 16; static const int sNeedleBaseLength = 12;
static const int sNeedleBaseWidth = 16; static const int sNeedleBaseWidth = 12;
static const int sNeedleArmLeftWidth = 24; static const int sNeedleArmLeftWidth = 18;
static const int sNeedleArmRigthWidth = 32; static const int sNeedleArmRigthWidth = 24;
static const int sPencilLength = 16; static const int sPencilLength = 12;
static const int sPencilWidth = 4; static const int sPencilWidth = 3;
static const int sPencilBaseLength = 24; static const int sPencilBaseLength = 18;
static const int sPencilBaseWidth = 16; static const int sPencilBaseWidth = 12;
static const int sPencilArmLeftWidth = 32; static const int sPencilArmLeftWidth = 24;
static const int sPencilArmRightWidth = 24; static const int sPencilArmRightWidth = 18;
static const int sCornerRadius = 4; static const int sCornerRadius = 3;
static const QRect sDefaultRect; static const QRect sDefaultRect;
static const int sMinRadius; static const int sMinRadius;

Loading…
Cancel
Save