Commit 07178f28 authored by Laurent Montel's avatar Laurent Montel 😁

Deprecated--

parent bed179d3
......@@ -72,10 +72,10 @@ void SchemeEditorColors::setupColorTable()
commonColorTable->verticalHeader()->hide();
commonColorTable->horizontalHeader()->hide();
commonColorTable->setShowGrid(false);
commonColorTable->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);
commonColorTable->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Stretch);
int minWidth = QPushButton(i18n("Varies")).minimumSizeHint().width();
commonColorTable->horizontalHeader()->setMinimumSectionSize(minWidth);
commonColorTable->horizontalHeader()->setResizeMode(1, QHeaderView::ResizeToContents);
commonColorTable->horizontalHeader()->setSectionResizeMode(1, QHeaderView::ResizeToContents);
for (int i = 0; i < 26; ++i)
{
......@@ -112,7 +112,7 @@ void SchemeEditorColors::setupColorTable()
colorTable->setShowGrid(false);
colorTable->setRowCount(12);
colorTable->horizontalHeader()->setMinimumSectionSize(minWidth);
colorTable->horizontalHeader()->setResizeMode(1, QHeaderView::ResizeToContents);
colorTable->horizontalHeader()->setSectionResizeMode(1, QHeaderView::ResizeToContents);
createColorEntry(i18n("Normal Background"), QStringLiteral("BackgroundNormal"), m_backgroundButtons, 0);
createColorEntry(i18n("Alternate Background"), QStringLiteral("BackgroundAlternate"), m_backgroundButtons, 1);
......@@ -127,8 +127,8 @@ void SchemeEditorColors::setupColorTable()
createColorEntry(i18n("Focus Decoration"), QStringLiteral("DecorationFocus"), m_decorationButtons, 10);
createColorEntry(i18n("Hover Decoration"), QStringLiteral("DecorationHover"), m_decorationButtons, 11);
colorTable->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);
colorTable->horizontalHeader()->setResizeMode(1, QHeaderView::ResizeToContents);
colorTable->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Stretch);
colorTable->horizontalHeader()->setSectionResizeMode(1, QHeaderView::ResizeToContents);
updateColorSchemes();
updateColorTable();
......
......@@ -122,10 +122,10 @@ JoyWidget::JoyWidget(QWidget *parent)
buttonTbl->setEditTriggers(QAbstractItemView::NoEditTriggers);
buttonTbl->setHorizontalHeaderLabels(QStringList(i18n("State")));
buttonTbl->setSortingEnabled(false);
buttonTbl->horizontalHeader()->setClickable(false);
buttonTbl->horizontalHeader()->setResizeMode(QHeaderView::Stretch);
buttonTbl->horizontalHeader()->setSectionsClickable(false);
buttonTbl->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
buttonTbl->horizontalHeader()->resizeSection(0, colWidth);
buttonTbl->verticalHeader()->setClickable(false);
buttonTbl->verticalHeader()->setSectionsClickable(false);
vboxMid->addWidget(buttonTbl);
vboxRight->addWidget(new QLabel(i18n("Axes:")));
......@@ -134,10 +134,10 @@ JoyWidget::JoyWidget(QWidget *parent)
axesTbl->setEditTriggers(QAbstractItemView::NoEditTriggers);
axesTbl->setHorizontalHeaderLabels(QStringList(i18n("Value")));
axesTbl->setSortingEnabled(false);
axesTbl->horizontalHeader()->setClickable(false);
axesTbl->horizontalHeader()->setResizeMode(QHeaderView::Stretch);
axesTbl->horizontalHeader()->setSectionsClickable(false);
axesTbl->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
axesTbl->horizontalHeader()->resizeSection(0, colWidth);
axesTbl->verticalHeader()->setClickable(false);
axesTbl->verticalHeader()->setSectionsClickable(false);
vboxRight->addWidget(axesTbl);
hbox->addLayout(vboxLeft);
......
......@@ -140,7 +140,7 @@ static void applyQtColors( KSharedConfigPtr kglobalcfg, QSettings& settings, QPa
clr = wmCfgGroup.readEntry("activeBackground", clr);
settings.setValue(QStringLiteral("/qt/KWinPalette/activeBackground"), clr.name());
if (QPixmap::defaultDepth() > 8)
clr = clr.dark(110);
clr = clr.darker(110);
clr = wmCfgGroup.readEntry("activeBlend", clr);
settings.setValue(QStringLiteral("/qt/KWinPalette/activeBlend"), clr.name());
clr = newPal.color( QPalette::Active, QPalette::HighlightedText );
......@@ -157,10 +157,10 @@ static void applyQtColors( KSharedConfigPtr kglobalcfg, QSettings& settings, QPa
clr = wmCfgGroup.readEntry("inactiveBackground", clr);
settings.setValue(QStringLiteral("/qt/KWinPalette/inactiveBackground"), clr.name());
if (QPixmap::defaultDepth() > 8)
clr = clr.dark(110);
clr = clr.darker(110);
clr = wmCfgGroup.readEntry("inactiveBlend", clr);
settings.setValue(QStringLiteral("/qt/KWinPalette/inactiveBlend"), clr.name());
clr = newPal.color(QPalette::Inactive, QPalette::Window).dark();
clr = newPal.color(QPalette::Inactive, QPalette::Window).darker();
clr = wmCfgGroup.readEntry("inactiveForeground", clr);
settings.setValue(QStringLiteral("/qt/KWinPalette/inactiveForeground"), clr.name());
clr = newPal.color(QPalette::Inactive, QPalette::Window);
......@@ -442,8 +442,8 @@ void runRdb( uint flags )
QColor backCol = newPal.color( QPalette::Active, QPalette::Window );
addColorDef(preproc, "FOREGROUND" , newPal.color( QPalette::Active, QPalette::WindowText ) );
addColorDef(preproc, "BACKGROUND" , backCol);
addColorDef(preproc, "HIGHLIGHT" , backCol.light(100+(2*KColorScheme::contrast()+4)*16/1));
addColorDef(preproc, "LOWLIGHT" , backCol.dark(100+(2*KColorScheme::contrast()+4)*10));
addColorDef(preproc, "HIGHLIGHT" , backCol.lighter(100+(2*KColorScheme::contrast()+4)*16/1));
addColorDef(preproc, "LOWLIGHT" , backCol.darker(100+(2*KColorScheme::contrast()+4)*10));
addColorDef(preproc, "SELECT_BACKGROUND" , newPal.color( QPalette::Active, QPalette::Highlight));
addColorDef(preproc, "SELECT_FOREGROUND" , newPal.color( QPalette::Active, QPalette::HighlightedText));
addColorDef(preproc, "WINDOW_BACKGROUND" , newPal.color( QPalette::Active, QPalette::Base ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment