summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Palettes/TimelineGraphicsView/ui/Ruler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Authoring/Studio/Palettes/TimelineGraphicsView/ui/Ruler.cpp')
-rw-r--r--src/Authoring/Studio/Palettes/TimelineGraphicsView/ui/Ruler.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Authoring/Studio/Palettes/TimelineGraphicsView/ui/Ruler.cpp b/src/Authoring/Studio/Palettes/TimelineGraphicsView/ui/Ruler.cpp
index be0cb878..84e8a74e 100644
--- a/src/Authoring/Studio/Palettes/TimelineGraphicsView/ui/Ruler.cpp
+++ b/src/Authoring/Studio/Palettes/TimelineGraphicsView/ui/Ruler.cpp
@@ -28,6 +28,7 @@
#include "Ruler.h"
#include "TimelineConstants.h"
+#include "StudioPreferences.h"
#include <QtGui/qpainter.h>
#include <QtWidgets/qwidget.h>
@@ -53,12 +54,12 @@ void Ruler::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWi
double rowXMax = std::max(minRulerWidth, totalSegmentsWidth);
painter->save();
- painter->setPen(QColor(TimelineConstants::RULER_COLOR_DISABLED));
+ painter->setPen(CStudioPreferences::timelineRulerColorDisabled());
painter->drawLine(TimelineConstants::RULER_EDGE_OFFSET,
TimelineConstants::RULER_BASE_Y,
rowXMax + TimelineConstants::RULER_EDGE_OFFSET,
TimelineConstants::RULER_BASE_Y);
- painter->setPen(QColor(TimelineConstants::RULER_COLOR));
+ painter->setPen(CStudioPreferences::timelineRulerColor());
painter->drawLine(TimelineConstants::RULER_EDGE_OFFSET,
TimelineConstants::RULER_BASE_Y,
activeSegmentsWidth,
@@ -84,7 +85,7 @@ void Ruler::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWi
TimelineConstants::RULER_DIV_H3;
if (!useDisabledColor && rowX > activeSegmentsWidth) {
- painter->setPen(QColor(TimelineConstants::RULER_COLOR_DISABLED));
+ painter->setPen(CStudioPreferences::timelineRulerColorDisabled());
useDisabledColor = true;
}
painter->drawLine(QPointF(rowX, TimelineConstants::RULER_BASE_Y - h),