Warning, file /games/kreversi/src/colorscheme.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2013 Denis Kuplyakov <dener.kup@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "colorscheme.h" 0008 0009 #include <KStatefulBrush> 0010 0011 ColorScheme::ColorScheme(QQuickItem *parent) : 0012 QQuickItem(parent) 0013 { 0014 } 0015 0016 QColor ColorScheme::background() const 0017 { 0018 return KStatefulBrush(KColorScheme::Tooltip, 0019 KColorScheme::NormalBackground) 0020 .brush(QPalette::Active).color(); 0021 } 0022 0023 QColor ColorScheme::foreground() const 0024 { 0025 return KStatefulBrush(KColorScheme::Tooltip, 0026 KColorScheme::NormalText) 0027 .brush(QPalette::Active).color(); 0028 } 0029 0030 QColor ColorScheme::border() const 0031 { 0032 return KStatefulBrush(KColorScheme::View, 0033 KColorScheme::NormalText) 0034 .brush(QPalette::Active).color(); 0035 } 0036 0037 #include "moc_colorscheme.cpp"