#include <QTimer>
#include <QScrollBar>
+#include <kcolorscheme.h>
#include <kdirmodel.h>
#include <kdirlister.h>
#include <kfileitemdelegate.h>
-#include <kglobalsettings.h>
#include <klocale.h>
#include <kiconeffect.h>
#include <kio/netaccess.h>
m_active = active;
- QColor color = KGlobalSettings::baseColor();
+ QColor color = KColorScheme(KColorScheme::View).background();
if (active) {
emit urlChanged(url());
emit selectionChanged(selectedItems());
#include "dolphin_iconsmodesettings.h"
-#include <kglobalsettings.h>
+#include <kcolorscheme.h>
#include <klocale.h>
#include <kvbox.h>
-#include <QtGui/QGroupBox>
-#include <QtGui/QLabel>
-#include <QtGui/QSlider>
-#include <QtGui/QBoxLayout>
+#include <QGroupBox>
+#include <QLabel>
+#include <QSlider>
+#include <QBoxLayout>
IconSizeDialog::IconSizeDialog(QWidget* parent) :
KDialog(parent),
// create 'Icon Size' group including slider and preview
QGroupBox* iconSizeBox = new QGroupBox(i18n("Icon Size"), main);
- const QColor iconBackgroundColor(KGlobalSettings::baseColor());
+ const QColor iconBackgroundColor = KColorScheme(KColorScheme::View).background();
KHBox* iconSizeHBox = new KHBox(iconSizeBox);
iconSizeHBox->setSpacing(spacing);
#include "statusbarmessagelabel.h"
-#include <kglobalsettings.h>
+#include <kcolorscheme.h>
#include <kcolorutils.h>
#include <kiconloader.h>
#include <kicon.h>
#include <klocale.h>
-#include <QtGui/QFontMetrics>
-#include <QtGui/QPainter>
-#include <QtGui/QKeyEvent>
-#include <QtGui/QPushButton>
-#include <QtGui/QPixmap>
-#include <QtCore/QTimer>
+#include <QFontMetrics>
+#include <QPainter>
+#include <QKeyEvent>
+#include <QPushButton>
+#include <QPixmap>
+#include <QTimer>
StatusBarMessageLabel::StatusBarMessageLabel(QWidget* parent) :
QWidget(parent),
QPainter painter(this);
// draw background
- QColor backgroundColor(palette().brush(QPalette::Background).color());
- QColor foregroundColor(KGlobalSettings::textColor());
+ QColor backgroundColor = palette().brush(QPalette::Background).color();
+ QColor foregroundColor = KColorScheme(KColorScheme::View).foreground();
if (m_illumination > 0) {
// TODO: are there foreground and background colors available for
// "error messages"?
#include "statusbarspaceinfo.h"
-#include <QtCore/QTimer>
-#include <QtGui/QPainter>
-#include <QtGui/QKeyEvent>
-
-#include <kglobalsettings.h>
+#include <kcolorscheme.h>
#include <kdiskfreespace.h>
#include <kmountpoint.h>
#include <klocale.h>
#include <kio/job.h>
+#include <QTimer>
+#include <QPainter>
+#include <QKeyEvent>
+
StatusBarSpaceInfo::StatusBarSpaceInfo(QWidget* parent) :
QWidget(parent),
m_gettingSize(false),
frameColor.setAlpha(128);
painter.setPen(frameColor);
- const QColor backgrColor = KGlobalSettings::baseColor();
+ const QColor backgrColor = KColorScheme(KColorScheme::View).background();
painter.setBrush(backgrColor);
painter.drawRect(QRect(0, barTop + 1 , barWidth - widthDec, barHeight));
}
// draw text
- painter.setPen(KGlobalSettings::textColor());
+ painter.setPen(KColorScheme(KColorScheme::View).foreground());
painter.drawText(QRect(1, 1, barWidth - 2, barHeight + 6),
Qt::AlignCenter | Qt::TextWordWrap,
text);
m_kBAvailable = 0;
// KDiskFreeSpace is for local paths only
- if (!m_url.isLocalFile())
+ if (!m_url.isLocalFile()) {
return;
+ }
m_gettingSize = true;
KMountPoint::Ptr mp = KMountPoint::currentMountPoints().findByPath(m_url.path());
QColor StatusBarSpaceInfo::progressColor(const QColor& bgColor) const
{
- QColor color = KGlobalSettings::buttonBackground();
+ QColor color = KColorScheme(KColorScheme::Button).background();
// assure that enough contrast is given between the background color
// and the progressbar color