Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

xsheet cycle color

konero7d32611bd24d
diff --git a/toonz/sources/toonz/xshcellviewer.cpp b/toonz/sources/toonz/xshcellviewer.cpp
index 01e8c2c07..4f85af72c 100644
--- a/toonz/sources/toonz/xshcellviewer.cpp
+++ b/toonz/sources/toonz/xshcellviewer.cpp
@@ -3006,7 +3006,7 @@ void CellArea::drawKeyframe(QPainter &p, const QRect toBeUpdated) {
int qy = icon_frameAxis + 12;
int zig = 2;
int qx = icon_layerAxis + 5;
- p.setPen(m_viewer->getTextColor());
+ p.setPen(m_viewer->getCycleColor());
p.drawLine(o->frameLayerToXY(qy, qx),
o->frameLayerToXY(qy + zig, qx - zig));
while (qy < ymax) {
diff --git a/toonz/sources/toonz/xsheetviewer.h b/toonz/sources/toonz/xsheetviewer.h
index f2ae4a71b..cf20b8154 100644
--- a/toonz/sources/toonz/xsheetviewer.h
+++ b/toonz/sources/toonz/xsheetviewer.h
@@ -224,6 +224,7 @@ class XsheetViewer final : public QFrame, public SaveLoadQSettings {
QColor m_errorTextColor; // error text color (red, probably)
QColor m_selectedTextColor; // text color for the selected cells
QColor m_frameTextColor; // text color for frame numbers
+ QColor m_cycleColor; // color of the zig zag line
QColor m_currentFrameTextColor; // text color for the current frame row
QColor m_previewFrameTextColor; // frame number in preview range (blue)
QColor m_onionSkinAreaBgColor;
@@ -250,6 +251,7 @@ class XsheetViewer final : public QFrame, public SaveLoadQSettings {
setSelectedTextColor)
Q_PROPERTY(QColor FrameTextColor READ getFrameTextColor WRITE
setFrameTextColor)
+ Q_PROPERTY(QColor CycleColor READ getCycleColor WRITE setCycleColor)
Q_PROPERTY(QColor PreviewFrameTextColor READ getPreviewFrameTextColor WRITE
setPreviewFrameTextColor)
Q_PROPERTY(QColor OnionSkinAreaBgColor READ getOnionSkinAreaBgColor WRITE
@@ -850,6 +852,10 @@ public:
void setCurrentFrameTextColor(const QColor &color) {
m_currentFrameTextColor = color;
}
+ QColor getCycleColor() const { return m_cycleColor; }
+ void setCycleColor(const QColor &color) {
+ m_cycleColor = color;
+ }
QColor getCurrentFrameTextColor() const { return m_currentFrameTextColor; }
void setPreviewFrameTextColor(const QColor &color) {
m_previewFrameTextColor = color;