Kirigami2

org.kde.desktop/Theme.qml
1 /*
2  * SPDX-FileCopyrightText: 2015 Marco Martin <[email protected]>
3  *
4  * SPDX-License-Identifier: LGPL-2.0-or-later
5  */
6 
7 import QtQuick 2.4
8 import org.kde.kirigami 2.16 as Kirigami
9 
10 pragma Singleton
11 
12 Kirigami.BasicThemeDefinition {
13  id: theme
14 
15  textColor: palette.windowText
16  disabledTextColor: disabledPalette.windowText
17 
18  highlightColor: palette.highlight
19  highlightedTextColor: palette.highlightedText
20  backgroundColor: palette.window
21  alternateBackgroundColor: Qt.darker(palette.window, 1.05)
22  activeTextColor: palette.highlight
23  activeBackgroundColor: palette.highlight
24  linkColor: "#2980B9"
25  linkBackgroundColor: "#2980B9"
26  visitedLinkColor: "#7F8C8D"
27  visitedLinkBackgroundColor: "#7F8C8D"
28  hoverColor: palette.highlight
29  focusColor: palette.highlight
30  negativeTextColor: "#DA4453"
31  negativeBackgroundColor: "#DA4453"
32  neutralTextColor: "#F67400"
33  neutralBackgroundColor: "#F67400"
34  positiveTextColor: "#27AE60"
35  positiveBackgroundColor: "#27AE60"
36 
37  buttonTextColor: palette.buttonText
38  buttonBackgroundColor: palette.button
39  buttonAlternateBackgroundColor: Qt.darker(palette.button, 1.05)
40  buttonHoverColor: palette.highlight
41  buttonFocusColor: palette.highlight
42 
43  viewTextColor: palette.text
44  viewBackgroundColor: palette.base
45  viewAlternateBackgroundColor: palette.alternateBase
46  viewHoverColor: palette.highlight
47  viewFocusColor: palette.highlight
48 
49  selectionTextColor: palette.highlightedText
50  selectionBackgroundColor: palette.highlight
51  selectionAlternateBackgroundColor: Qt.darker(palette.highlight, 1.05)
52  selectionHoverColor: palette.highlight
53  selectionFocusColor: palette.highlight
54 
55  tooltipTextColor: palette.base
56  tooltipBackgroundColor: palette.text
57  tooltipAlternateBackgroundColor: Qt.darker(palette.text, 1.05)
58  tooltipHoverColor: palette.highlight
59  tooltipFocusColor: palette.highlight
60 
61  complementaryTextColor: palette.base
62  complementaryBackgroundColor: palette.text
63  complementaryAlternateBackgroundColor: Qt.darker(palette.text, 1.05)
64  complementaryHoverColor: palette.highlight
65  complementaryFocusColor: palette.highlight
66 
67  headerTextColor: palette.text
68  headerBackgroundColor: palette.base
69  headerAlternateBackgroundColor: palette.alternateBase
70  headerHoverColor: palette.highlight
71  headerFocusColor: palette.highlight
72 
73  property font defaultFont: fontMetrics.font
74 
75  property list<QtObject> children: [
76  TextMetrics {
77  id: fontMetrics
78  },
79  SystemPalette {
80  id: palette
81  colorGroup: SystemPalette.Active
82  },
83  SystemPalette {
84  id: disabledPalette
85  colorGroup: SystemPalette.Disabled
86  }
87  ]
88 
89  function __propagateColorSet(object, context) {}
90 
91  function __propagateTextColor(object, color) {}
92  function __propagateBackgroundColor(object, color) {}
93  function __propagatePrimaryColor(object, color) {}
94  function __propagateAccentColor(object, color) {}
95 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jan 29 2023 04:11:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.