Kirigami2

controls/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 
9 pragma Singleton
10 
37 QtObject {
38  id: theme
39 
40  property color textColor: "#31363b"
41  property color disabledTextColor: "#9931363b"
42 
43  property color highlightColor: "#2196F3"
44  property color highlightedTextColor: "#eff0fa"
45  property color backgroundColor: "#eff0f1"
46  property color alternateBackgroundColor: "#bdc3c7"
47 
48  property color activeTextColor: "#0176D3"
49  property color activeBackgroundColor: "#0176D3"
50  property color linkColor: "#2196F3"
51  property color linkBackgroundColor: "#2196F3"
52  property color visitedLinkColor: "#2196F3"
53  property color visitedLinkBackgroundColor: "#2196F3"
54  property color negativeTextColor: "#DA4453"
55  property color negativeBackgroundColor: "#DA4453"
56  property color neutralTextColor: "#F67400"
57  property color neutralBackgroundColor: "#F67400"
58  property color positiveTextColor: "#27AE60"
59  property color positiveBackgroundColor: "#27AE60"
60 
61  property color buttonTextColor: "#31363b"
62  property color buttonBackgroundColor: "#eff0f1"
63  property color buttonAlternateBackgroundColor: "#bdc3c7"
64  property color buttonHoverColor: "#2196F3"
65  property color buttonFocusColor: "#2196F3"
66 
67  property color viewTextColor: "#31363b"
68  property color viewBackgroundColor: "#fcfcfc"
69  property color viewAlternateBackgroundColor: "#eff0f1"
70  property color viewHoverColor: "#2196F3"
71  property color viewFocusColor: "#2196F3"
72 
73  property color selectionTextColor: "#eff0fa"
74  property color selectionBackgroundColor: "#2196F3"
75  property color selectionAlternateBackgroundColor: "#1d99f3"
76  property color selectionHoverColor: "#2196F3"
77  property color selectionFocusColor: "#2196F3"
78 
79  property color tooltipTextColor: "#eff0f1"
80  property color tooltipBackgroundColor: "#31363b"
81  property color tooltipAlternateBackgroundColor: "#4d4d4d"
82  property color tooltipHoverColor: "#2196F3"
83  property color tooltipFocusColor: "#2196F3"
84 
85  property color complementaryTextColor: "#eff0f1"
86  property color complementaryBackgroundColor: "#31363b"
87  property color complementaryAlternateBackgroundColor: "#3b4045"
88  property color complementaryHoverColor: "#2196F3"
89  property color complementaryFocusColor: "#2196F3"
90 
91  property color headerTextColor: "#232629"
92  property color headerBackgroundColor: "#e3e5e7"
93  property color headerAlternateBackgroundColor: "#eff0f1"
94  property color headerHoverColor: "#2196F3"
95  property color headerFocusColor: "#93cee9"
96 
97  property font defaultFont: fontMetrics.font
98  property font smallFont: {
99  let font = fontMetrics.font
100  if (!!font.pixelSize) {
101  font.pixelSize =- 2
102  } else {
103  font.pointSize =- 2
104  }
105  return font
106  }
107 
108  property list<QtObject> children: [
109  TextMetrics {
110  id: fontMetrics
111  }
112  ]
113  function __propagateColorSet(object, context) {}
114  function __propagateTextColor(object, color) {}
115  function __propagateBackgroundColor(object, color) {}
116  function __propagatePrimaryColor(object, color) {}
117  function __propagateAccentColor(object, color) {}
118 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 4 2020 22:38:09 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.