improve palette editor ui

- remove redundant RGB label
- in color picker, instruct user to press SPACE
- add toggle between 15 and 24 bit depth displaying
This commit is contained in:
garak
2022-07-06 23:34:52 -04:00
committed by garakmon
parent ab6aa01973
commit 12d5f22475
4 changed files with 1019 additions and 987 deletions

View File

@@ -36,7 +36,6 @@ private:
QList<QList<QSlider*>> sliders;
QList<QList<QSpinBox *>> spinners;
QList<QFrame*> frames;
QList<QLabel*> rgbLabels;
QList<QToolButton *> pickButtons;
QList<QLineEdit *> hexEdits;
@@ -59,6 +58,9 @@ private:
void setRgbFromHexEdit(int colorIndex);
void setRgbFromSpinners(int colorIndex);
void setBitDepth(int bits);
int bitDepth = 24;
class HexCodeValidator : public QValidator {
virtual QValidator::State validate(QString &input, int &) const override {
input = input.toUpper();