mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-08 17:05:43 -05:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user