Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Color scheme fix for status bar

parent 7fdcaa02
......@@ -458,7 +458,7 @@ void MainWindow::slotThemeChanged(const QString &theme)
KSharedConfigPtr config = KSharedConfig::openConfig(theme);
setPalette(KColorScheme::createApplicationPalette(config));
qApp->setPalette(palette());
KdenliveSettings::setColortheme(ThemeManager::instance()->currentThemeName());
KdenliveSettings::setColortheme(theme);
QPalette plt = palette();
if (m_effectStack) m_effectStack->updatePalette();
if (m_effectList) m_effectList->updatePalette();
......
......@@ -44,9 +44,9 @@ StatusBarMessageLabel::StatusBarMessageLabel(QWidget* parent) :
m_closeButton(0)
{
setMinimumHeight(KIconLoader::SizeSmall);
QPalette palette;
/*QPalette palette);
palette.setColor(QPalette::Background, Qt::transparent);
setPalette(palette);
setPalette(palette);*/
m_closeButton = new QPushButton(i18nc("@action:button", "Confirm"), this);
m_closeButton->hide();
......@@ -238,7 +238,7 @@ void StatusBarMessageLabel::paintEvent(QPaintEvent*)
}
// draw text
painter.setPen(palette().windowText().color());
painter.setPen(palette().text().color());
int flags = Qt::AlignVCenter;
if (height() > m_minTextHeight) {
flags = flags | Qt::TextWordWrap;
......
......@@ -111,13 +111,12 @@ QString ThemeManager::currentThemeName() const
: action->text().remove('&'));
}
void ThemeManager::setCurrentTheme(const QString& name)
void ThemeManager::setCurrentTheme(const QString& filename)
{
if (!d->themeMenuAction || !d->themeMenuActionGroup)
return;
QString name = d->themeMap.key(filename, d->defaultThemeName);
QList<QAction*> list = d->themeMenuActionGroup->actions();
foreach(QAction* const action, list)
{
if (action->text().remove('&') == name)
......
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