diff --git a/src/app/GUI/keysview.h b/src/app/GUI/keysview.h index 8f7a4c937..99e14d19e 100644 --- a/src/app/GUI/keysview.h +++ b/src/app/GUI/keysview.h @@ -33,10 +33,13 @@ #include "smartPointers/ememory.h" #include "framerange.h" #include "conncontextobjlist.h" +#include "themesupport.h" -const QList ANIMATOR_COLORS = {QColor(255, 0, 0) , QColor(0, 255, 255), - QColor(255, 255, 0), QColor(255, 0, 255), - QColor(0, 255, 0)}; +const QList ANIMATOR_COLORS = {ThemeSupport::getThemeColorRed(), + ThemeSupport::getThemeColorBlue(), + ThemeSupport::getThemeColorYellow(), + ThemeSupport::getThemeColorPink(), + ThemeSupport::getThemeColorGreen()}; class Key; class QrealKey; diff --git a/src/core/Animators/qrealpoint.cpp b/src/core/Animators/qrealpoint.cpp index 12e67514c..507cac8f9 100644 --- a/src/core/Animators/qrealpoint.cpp +++ b/src/core/Animators/qrealpoint.cpp @@ -155,7 +155,9 @@ void QrealPoint::draw(QPainter * const p, const QColor &paintColor) { if(mHovered) gDrawCosmeticEllipse(p, center, mRadius + 1, mRadius + 1); else gDrawCosmeticEllipse(p, center, mRadius, mRadius); - p->setBrush(paintColor); + //p->setBrush(paintColor); + p->setBrush(Qt::white); + if(!isSelected()) p->setBrush(paintColor.lighter()); gDrawCosmeticEllipse(p, center, mRadius - 1, mRadius - 1); diff --git a/src/core/Private/esettings.cpp b/src/core/Private/esettings.cpp index c6000742c..525257e91 100644 --- a/src/core/Private/esettings.cpp +++ b/src/core/Private/esettings.cpp @@ -258,19 +258,19 @@ eSettings::eSettings(const int cpuThreads, gSettings << std::make_shared( fObjectKeyframeColor, "objectKeyframeColor", - QColor(0, 125, 255)); + ThemeSupport::getThemeColorBlue()); gSettings << std::make_shared( fPropertyGroupKeyframeColor, "propertyGroupKeyframeColor", - QColor(0, 255, 0)); + ThemeSupport::getThemeColorGreen()); gSettings << std::make_shared( fPropertyKeyframeColor, "propertyKeyframeColor", - QColor(255, 0, 0)); + ThemeSupport::getThemeColorRed()); gSettings << std::make_shared( fSelectedKeyframeColor, "selectedKeyframeColor", - QColor(255, 255, 0)); + ThemeSupport::getThemeColorYellow()); /*gSettings << std::make_shared( fVisibilityRangeColor, diff --git a/src/core/themesupport.cpp b/src/core/themesupport.cpp index 44156efe2..b25c980cc 100644 --- a/src/core/themesupport.cpp +++ b/src/core/themesupport.cpp @@ -112,7 +112,7 @@ const QColor ThemeSupport::getThemeRangeSelectedColor(int alpha) const QColor ThemeSupport::getThemeFrameMarkerColor(int alpha) { - return getQColor(255, 123, 0, alpha); + return getThemeColorOrange(alpha); } const QColor ThemeSupport::getThemeObjectColor(int alpha) @@ -120,6 +120,36 @@ const QColor ThemeSupport::getThemeObjectColor(int alpha) return getQColor(0, 102, 255, alpha); } +const QColor ThemeSupport::getThemeColorRed(int alpha) +{ + return getQColor(199, 67, 72, alpha); +} + +const QColor ThemeSupport::getThemeColorBlue(int alpha) +{ + return getQColor(73, 142, 209, alpha); +} + +const QColor ThemeSupport::getThemeColorYellow(int alpha) +{ + return getQColor(209, 183, 73, alpha); +} + +const QColor ThemeSupport::getThemeColorPink(int alpha) +{ + return getQColor(169, 73, 209, alpha); +} + +const QColor ThemeSupport::getThemeColorGreen(int alpha) +{ + return getQColor(73, 209, 132, alpha); +} + +const QColor ThemeSupport::getThemeColorOrange(int alpha) +{ + return getQColor(255, 123, 0, alpha); +} + const QPalette ThemeSupport::getDarkPalette(int alpha) { QPalette pal = QPalette(); diff --git a/src/core/themesupport.h b/src/core/themesupport.h index d97dc38c0..67d1da250 100644 --- a/src/core/themesupport.h +++ b/src/core/themesupport.h @@ -52,6 +52,12 @@ class CORE_EXPORT ThemeSupport static const QColor getThemeRangeSelectedColor(int alpha = 255); static const QColor getThemeFrameMarkerColor(int alpha = 255); static const QColor getThemeObjectColor(int alpha = 255); + static const QColor getThemeColorRed(int alpha = 255); + static const QColor getThemeColorBlue(int alpha = 255); + static const QColor getThemeColorYellow(int alpha = 255); + static const QColor getThemeColorPink(int alpha = 255); + static const QColor getThemeColorGreen(int alpha = 255); + static const QColor getThemeColorOrange(int alpha = 255); static const QPalette getDarkPalette(int alpha = 255); static const QPalette getDarkerPalette(int alpha = 255); static const QPalette getNotSoDarkPalette(int alpha = 255);