Changeset View
Changeset View
Standalone View
Standalone View
src/qml/homescreen/ProfileDetailsItem.qml
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 28 | Item { | |||
---|---|---|---|---|---|
45 | 45 | | |||
46 | onProfileChanged: update() | 46 | onProfileChanged: update() | ||
47 | 47 | | |||
48 | SystemPalette { | 48 | SystemPalette { | ||
49 | id: activePalette | 49 | id: activePalette | ||
50 | colorGroup: SystemPalette.Active | 50 | colorGroup: SystemPalette.Active | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | KColorScheme { | ||||
54 | id: colorScheme | ||||
55 | colorGroup: KColorScheme.Active | ||||
56 | colorSet: KColorScheme.View | ||||
57 | } | ||||
58 | | ||||
53 | 59 | | |||
54 | Item { | 60 | Item { | ||
55 | id: infoContainer | 61 | id: infoContainer | ||
56 | width: parent.width | 62 | width: parent.width | ||
57 | height: childrenRect.height | 63 | height: childrenRect.height | ||
58 | anchors.centerIn: parent | 64 | anchors.centerIn: parent | ||
59 | 65 | | |||
60 | Column { | 66 | Column { | ||
Show All 34 Lines | 89 | Column { | |||
95 | width: parent.width | 101 | width: parent.width | ||
96 | height: parent.height - legend.height - parent.spacing | 102 | height: parent.height - legend.height - parent.spacing | ||
97 | 103 | | |||
98 | LearningProgressChart { | 104 | LearningProgressChart { | ||
99 | id: learningProgressChart | 105 | id: learningProgressChart | ||
100 | anchors.horizontalCenter: parent.horizontalCenter | 106 | anchors.horizontalCenter: parent.horizontalCenter | ||
101 | width: parent.width | 107 | width: parent.width | ||
102 | height: parent.height - legend.height - parent.spacing | 108 | height: parent.height - legend.height - parent.spacing | ||
103 | 109 | backgroundColor: colorScheme.normalBackground | |||
110 | textColor: colorScheme.normalText | ||||
104 | model: learningProgressModel | 111 | model: learningProgressModel | ||
105 | } | 112 | } | ||
106 | 113 | | |||
107 | Row { | 114 | Row { | ||
108 | id: legend | 115 | id: legend | ||
109 | anchors.horizontalCenter: parent.horizontalCenter | 116 | anchors.horizontalCenter: parent.horizontalCenter | ||
110 | spacing: 20 | 117 | spacing: 20 | ||
111 | Charts.LegendItem { | 118 | Charts.LegendItem { | ||
112 | dimension: learningProgressChart.accuracy | 119 | dimension: learningProgressChart.accuracy | ||
113 | textColor: activePalette.text | 120 | textColor: colorScheme.normalText | ||
114 | } | 121 | } | ||
115 | Charts.LegendItem { | 122 | Charts.LegendItem { | ||
116 | dimension: learningProgressChart.charactersPerMinute | 123 | dimension: learningProgressChart.charactersPerMinute | ||
117 | textColor: activePalette.text | 124 | textColor: colorScheme.normalText | ||
118 | } | 125 | } | ||
119 | } | 126 | } | ||
120 | } | 127 | } | ||
121 | } | 128 | } | ||
122 | 129 | | |||
123 | InformationTable { | 130 | InformationTable { | ||
124 | id: profileInfoTable | 131 | id: profileInfoTable | ||
125 | width: parent.width | 132 | width: parent.width | ||
▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines |