[nostalgia/core/studio] Add PaletteEditor

This commit is contained in:
2020-03-29 23:34:24 -05:00
parent 4c6e053e81
commit 2e7a81563d
8 changed files with 401 additions and 9 deletions
@@ -29,19 +29,11 @@
#include <nostalgia/common/point.hpp>
#include "consts.hpp"
#include "util.hpp"
#include "tilesheeteditor.hpp"
namespace nostalgia::core {
QColor toQColor(Color16 nc) {
const auto r = red32(nc);
const auto g = green32(nc);
const auto b = blue32(nc);
const auto a = 255;
return QColor(r, g, b, a);
}
struct LabeledSpinner: public QWidget {
QSpinBox *const spinBox = new QSpinBox(this);