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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user