Changeset View
Changeset View
Standalone View
Standalone View
src/qml/homescreen/StatPopupDialog.qml
Show All 37 Lines | 35 | margins: { | |||
---|---|---|---|---|---|
38 | right: 40 | 38 | right: 40 | ||
39 | top: 40 | 39 | top: 40 | ||
40 | } | 40 | } | ||
41 | 41 | | |||
42 | width: parent.width - leftMargin - rightMargin | 42 | width: parent.width - leftMargin - rightMargin | ||
43 | height: parent.height - topMargin - bottomMargin | 43 | height: parent.height - topMargin - bottomMargin | ||
44 | padding: 0 | 44 | padding: 0 | ||
45 | 45 | | |||
46 | 46 | | |||
gottfried: See above. | |||||
47 | contentItem: Rectangle { | 47 | contentItem: Rectangle { | ||
48 | color: colorScheme.normalBackground | 48 | color: colorScheme.normalBackground | ||
49 | 49 | | |||
50 | ColumnLayout { | 50 | ColumnLayout { | ||
51 | anchors.fill: parent | 51 | anchors.fill: parent | ||
52 | anchors.margins: titleLabel.font.pixelSize | 52 | anchors.margins: titleLabel.font.pixelSize | ||
53 | spacing: titleLabel.font.pixelSize | 53 | spacing: titleLabel.font.pixelSize | ||
54 | 54 | | |||
55 | Label { | 55 | Label { | ||
56 | id: titleLabel | 56 | id: titleLabel | ||
57 | text: lesson? lesson.title: "" | 57 | text: lesson? lesson.title: "" | ||
58 | font.bold: true | 58 | font.bold: true | ||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | LearningProgressChart { | 61 | LearningProgressChart { | ||
62 | id: learningProgressChart | 62 | id: learningProgressChart | ||
63 | Layout.fillHeight: true | 63 | Layout.fillHeight: true | ||
64 | Layout.fillWidth: true | 64 | Layout.fillWidth: true | ||
65 | backgroundColor: colorScheme.normalBackground | 65 | backgroundColor: colorScheme.normalBackground | ||
66 | textColor: colorScheme.normalText | ||||
66 | model: LearningProgressModel { | 67 | model: LearningProgressModel { | ||
67 | id: learningProgressModel | 68 | id: learningProgressModel | ||
68 | } | 69 | } | ||
69 | } | 70 | } | ||
70 | 71 | | |||
71 | Row { | 72 | Row { | ||
72 | spacing: 2 * titleLabel.font.pixelSize | 73 | spacing: 2 * titleLabel.font.pixelSize | ||
73 | Layout.alignment: Qt.AlignTop | Qt.AlignHCenter | 74 | Layout.alignment: Qt.AlignTop | Qt.AlignHCenter | ||
74 | Charts.LegendItem { | 75 | Charts.LegendItem { | ||
75 | id: accuracyLegend | 76 | id: accuracyLegend | ||
76 | dimension: learningProgressChart.accuracy | 77 | dimension: learningProgressChart.accuracy | ||
78 | textColor: colorScheme.normalText | ||||
77 | } | 79 | } | ||
78 | Charts.LegendItem { | 80 | Charts.LegendItem { | ||
79 | id: charactersPerMinuteLegend | 81 | id: charactersPerMinuteLegend | ||
80 | dimension: learningProgressChart.charactersPerMinute | 82 | dimension: learningProgressChart.charactersPerMinute | ||
83 | textColor: colorScheme.normalText | ||||
81 | } | 84 | } | ||
82 | } | 85 | } | ||
83 | } | 86 | } | ||
84 | KColorScheme { | 87 | KColorScheme { | ||
85 | id: colorScheme | 88 | id: colorScheme | ||
86 | colorGroup: KColorScheme.Active | 89 | colorGroup: KColorScheme.Active | ||
87 | colorSet: KColorScheme.View | 90 | colorSet: KColorScheme.View | ||
88 | } | 91 | } | ||
89 | } | 92 | } | ||
90 | } | 93 | } |
See above.