Changeset View
Changeset View
Standalone View
Standalone View
src/controls/Theme.qml
Context not available. | |||||
23 | 23 | | |||
---|---|---|---|---|---|
24 | /** | 24 | /** | ||
25 | * A set of named colors for the application | 25 | * A set of named colors for the application | ||
26 | * | ||||
27 | * Since frameworks 5.38 Kirigami.Theme has been made an attached | ||||
28 | * property - the recommended way to interact with the Kirigami.Theme | ||||
29 | * object is documented in its replacement found at | ||||
30 | * Kirigami::PlatformTheme. | ||||
31 | * | ||||
32 | * Attempting to access the depreciated colors declared here will | ||||
33 | * generate warnings. Use the attached properties color sets instead. | ||||
34 | * For example, instead of using: | ||||
35 | * | ||||
36 | * @code | ||||
37 | * color: Kirigami.Theme.buttonTextColor | ||||
38 | * @endcode | ||||
39 | * | ||||
40 | * Use the button color set instead: | ||||
41 | * | ||||
42 | * @code | ||||
43 | * Kirigami.Theme.colorSet: Kirigami.Theme.Button | ||||
44 | * color: Kirigami.Theme.textColor | ||||
45 | * @endcode | ||||
46 | * | ||||
47 | * For more color sets, see Kirigami::PlatformTheme::ColorSet. | ||||
26 | * @inherit QtQuick.QtObject | 48 | * @inherit QtQuick.QtObject | ||
27 | */ | 49 | */ | ||
28 | QtObject { | 50 | QtObject { | ||
Context not available. |