OpenToonz - An open-source full-featured 2D animation creation software
C
function frame text color
konero1148c74eeb61
diff --git a/toonz/sources/include/toonzqt/spreadsheetviewer.h b/toonz/sources/include/toonzqt/spreadsheetviewer.hindex 3d0d168e1..9995652df 100644--- a/toonz/sources/include/toonzqt/spreadsheetviewer.h+++ b/toonz/sources/include/toonzqt/spreadsheetviewer.h@@ -239,6 +239,7 @@ class DVAPI SpreadsheetViewer : public QDialog {QColor m_secMarkerLineColor; // second marker linesQColor m_textColor; // text (black)QColor m_currentRowTextColor; // text color for the current row+ QColor m_frameTextColor; // text color for frame numbersQColor m_groupNameTextColor; // text color for group nameQColor m_channelNameTextColor; // text color for channel nameQColor m_cycleColor; // color of zig zag line@@ -253,6 +254,7 @@ class DVAPI SpreadsheetViewer : public QDialog {Q_PROPERTY(QColor TextColor READ getTextColor WRITE setTextColor)Q_PROPERTY(QColor CurrentRowTextColor READ getCurrentRowTextColor WRITEsetCurrentRowTextColor)+ Q_PROPERTY(QColor FrameTextColor READ getFrameTextColor WRITE setFrameTextColor)Q_PROPERTY(QColor GroupNameTextColor READ getGroupNameTextColor WRITEsetGroupNameTextColor)Q_PROPERTY(QColor ChannelNameTextColor READ getChannelNameTextColor WRITE@@ -375,6 +377,8 @@ public:m_currentRowTextColor = color;}QColor getCurrentRowTextColor() const { return m_currentRowTextColor; }+ void setFrameTextColor(const QColor &color) { m_frameTextColor = color; }+ QColor getFrameTextColor() const { return m_frameTextColor; }void setGroupNameTextColor(const QColor &color) {m_groupNameTextColor = color;}diff --git a/toonz/sources/toonzqt/spreadsheetviewer.cpp b/toonz/sources/toonzqt/spreadsheetviewer.cppindex 87cff5f34..9877b89cd 100644--- a/toonz/sources/toonzqt/spreadsheetviewer.cpp+++ b/toonz/sources/toonzqt/spreadsheetviewer.cpp@@ -392,7 +392,7 @@ void RowPanel::drawRows(QPainter &p, int r0, int r1) {// draw numbersp.setPen((r == currentRow) ? getViewer()->getCurrentRowTextColor()- : getViewer()->getTextColor());+ : getViewer()->getFrameTextColor());QString number = QString::number(r + 1);p.drawText(QRect(x0, y + 1, width() - 4, next_y - y - 1),