2 #include "ui_musicbackgroundpalettewidget.h"
15 setCursor(QCursor(Qt::PointingHandCursor));
27 QLabel::setPixmap(pix);
32 QImage image(16, 16, QImage::Format_ARGB32);
42 QLabel::enterEvent(event);
49 if(event->button() == Qt::LeftButton)
59 m_confirmButtonClicked(false)
65 colors << QColor(225, 152, 180);
66 colors << QColor(236, 109, 113);
67 colors << QColor(208, 87, 107);
68 colors << QColor(233, 84, 107);
69 colors << QColor(197, 61, 67);
70 colors << QColor(232, 57, 41);
71 colors << QColor(226, 4, 27);
72 colors << QColor(201, 23, 30);
73 colors << QColor(158, 61, 63);
74 colors << QColor(162, 32, 65);
76 colors << QColor(251, 202, 77);
77 colors << QColor(250, 191, 20);
78 colors << QColor(230, 180, 34);
79 colors << QColor(217, 166, 46);
80 colors << QColor(243, 152, 0);
81 colors << QColor(236, 104, 0);
82 colors << QColor(234, 85, 6);
83 colors << QColor(191, 120, 58);
84 colors << QColor(119, 60, 48);
85 colors << QColor(100, 1, 37);
87 colors << QColor(204, 126, 177);
88 colors << QColor(180, 76, 151);
89 colors << QColor(157, 91, 139);
90 colors << QColor(122, 65, 113);
91 colors << QColor(136, 72, 152);
92 colors << QColor(116, 50, 92);
93 colors << QColor(112, 88, 163);
94 colors << QColor(77, 67, 152);
95 colors << QColor(77, 90, 175);
96 colors << QColor(46, 41, 48);
98 colors << QColor(160, 216, 239);
99 colors << QColor(132, 185, 203);
100 colors << QColor(0, 163, 175);
101 colors << QColor(105, 185, 198);
102 colors << QColor(0, 149, 217);
103 colors << QColor(39, 146, 195);
104 colors << QColor(76, 108, 179);
105 colors << QColor(62, 98, 173);
106 colors << QColor(25, 68, 142);
107 colors << QColor(42, 64, 115);
109 colors << QColor(195, 216, 37);
110 colors << QColor(184, 210, 0);
111 colors << QColor(199, 220, 104);
112 colors << QColor(147, 202, 118);
113 colors << QColor(131, 155, 92);
114 colors << QColor(105, 176, 118);
115 colors << QColor(71, 136, 94);
116 colors << QColor(2, 135, 96);
117 colors << QColor(71, 89, 80);
118 colors << QColor(0, 82, 67);
120 colors << QColor(153, 153, 153);
121 colors << QColor(165, 143, 134);
122 colors << QColor(159, 111, 85);
123 colors << QColor(118, 92, 71);
124 colors << QColor(84, 47, 50);
125 colors << QColor(102, 102, 102);
126 colors << QColor(83, 78, 77);
127 colors << QColor(43, 43, 43);
128 colors << QColor(37, 13, 0);
129 colors << QColor(22, 22, 14);
131 QGridLayout *layout =
new QGridLayout(
m_ui->mutliWidget);
132 layout->setContentsMargins(0, 0, 0, 0);
138 QColor color = colors[i * COLOR_COL + j];
140 label->setToolTip(color.name());
141 layout->addWidget(label, i, j);
148 m_ui->mutliWidget->setLayout(layout);
150 m_ui->topTitleCloseButton->setIcon(QIcon(
":/functions/btn_close_hover"));
152 m_ui->topTitleCloseButton->setCursor(QCursor(Qt::PointingHandCursor));
153 m_ui->topTitleCloseButton->setToolTip(tr(
"Close"));
154 connect(
m_ui->topTitleCloseButton, SIGNAL(clicked()), SLOT(close()));
159 m_ui->paletteButton->setFocusPolicy(Qt::NoFocus);
160 m_ui->confirmButton->setFocusPolicy(Qt::NoFocus);
188 m_ui->background->setPixmap(QPixmap(path).scaled(
size()));
198 QImage image(16, 16, QImage::Format_ARGB32);
221 m_ui->colorLabel->setPixmap(pix);
223 QImage image(16, 16, QImage::Format_ARGB32);
#define QtEnterEvent
Event enter.
virtual void enterEvent(QtEnterEvent *event) overridefinal
virtual void mousePressEvent(QMouseEvent *event) overridefinal
The class of the skin backgroud image.
static const QString PushButtonStyle04
static QColor popup(QWidget *parent=nullptr, const QColor &color={})
The class of the moving dialog base.
The class of the background palette label.
MusicBackgroundPalette(QWidget *parent=nullptr)
~MusicBackgroundPalette()
static const QString ToolButtonStyle04
void setPixmap(const QColor &color)
void currentColorToMemoryChanged(const QString &path)
void currentColorToFileChanged(const QColor &color)
void copyColorToMemory(const QColor &color)