Add option for using large color palette on right button click (#2171)

(cherry picked from commit 403a6474e7e8afeb7920fe39c8312481c21d0d1b)

Co-authored-by: Yuriy Puchkov <yuriy.puchkov@namecheap.com>
This commit is contained in:
Yurii Puchkov
2021-12-21 16:27:13 +02:00
committed by GitHub
parent f0b21b7c4f
commit bd4fc0047a
6 changed files with 64 additions and 13 deletions

View File

@@ -53,6 +53,7 @@ GeneralConf::GeneralConf(QWidget* parent)
#if !defined(Q_OS_WIN)
initAutoCloseIdleDaemon();
#endif
initPredefinedColorPaletteLarge();
m_layout->addStretch();
@@ -369,6 +370,20 @@ void GeneralConf::initShowStartupLaunchMessage()
});
}
void GeneralConf::initPredefinedColorPaletteLarge()
{
m_predefinedColorPaletteLarge =
new QCheckBox(tr("Use large predefined color palette"), this);
m_predefinedColorPaletteLarge->setToolTip(
tr("Use large predefined color palette"));
m_scrollAreaLayout->addWidget(m_predefinedColorPaletteLarge);
connect(
m_predefinedColorPaletteLarge, &QCheckBox::clicked, [](bool checked) {
ConfigHandler().setPredefinedColorPaletteLarge(checked);
});
}
void GeneralConf::initCopyAndCloseAfterUpload()
{
m_copyAndCloseAfterUpload =