Changeset View
Changeset View
Standalone View
Standalone View
src/qml/main.qml
Show All 13 Lines | 1 | /* | |||
---|---|---|---|---|---|
14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | import QtQuick 2.1 | 17 | import QtQuick 2.1 | ||
18 | import QtQuick.Layouts 1.1 | 18 | import QtQuick.Layouts 1.1 | ||
19 | 19 | | |||
20 | Rectangle { | 20 | Rectangle { | ||
21 | id: root | 21 | id: root | ||
22 | color: "#b7bdc0" | 22 | SystemPalette { id: palette; colorGroup: SystemPalette.Active } | ||
23 | color: palette.base | ||||
23 | width: 360 | 24 | width: 360 | ||
24 | height:300 | 25 | height:300 | ||
25 | 26 | | |||
26 | property string themeName: "" | 27 | property string themeName: "" | ||
27 | property string previewPath: "" | 28 | property string previewPath: "" | ||
28 | property string authorName: "" | 29 | property string authorName: "" | ||
29 | property string description: "" | 30 | property string description: "" | ||
30 | property string license: "" | 31 | property string license: "" | ||
Show All 33 Lines | 64 | width: previewImage.paintedWidth | |||
64 | anchors { | 65 | anchors { | ||
65 | top: previewImage.bottom | 66 | top: previewImage.bottom | ||
66 | left: previewImage.left | 67 | left: previewImage.left | ||
67 | right: previewImage.right | 68 | right: previewImage.right | ||
68 | } | 69 | } | ||
69 | columns: 2 | 70 | columns: 2 | ||
70 | 71 | | |||
71 | Text { | 72 | Text { | ||
73 | color: palette.text | ||||
72 | text: description | 74 | text: description | ||
73 | font.bold: true | 75 | font.bold: true | ||
74 | font.pointSize: 13 | 76 | font.pointSize: 13 | ||
75 | } | 77 | } | ||
76 | Text { | 78 | Text { | ||
79 | color: palette.text | ||||
77 | text: version | 80 | text: version | ||
78 | font.bold: true | 81 | font.bold: true | ||
79 | font.pointSize: 10 | 82 | font.pointSize: 10 | ||
80 | Layout.alignment: Qt.AlignVCenter | Qt.AlignRight | 83 | Layout.alignment: Qt.AlignVCenter | Qt.AlignRight | ||
81 | } | 84 | } | ||
82 | Text { | 85 | Text { | ||
86 | color: palette.text | ||||
83 | text: authorName | 87 | text: authorName | ||
84 | font.pointSize: 10 | 88 | font.pointSize: 10 | ||
85 | } | 89 | } | ||
86 | Text { | 90 | Text { | ||
91 | color: palette.text | ||||
87 | text: license | 92 | text: license | ||
88 | font.pointSize: 7 | 93 | font.pointSize: 7 | ||
89 | Layout.alignment: Qt.AlignVCenter | Qt.AlignRight | 94 | Layout.alignment: Qt.AlignVCenter | Qt.AlignRight | ||
90 | } | 95 | } | ||
91 | Text { | 96 | Text { | ||
97 | color: palette.text | ||||
92 | text: website | 98 | text: website | ||
93 | font.pointSize: 7 | 99 | font.pointSize: 7 | ||
94 | } | 100 | } | ||
95 | Text { | 101 | Text { | ||
102 | color: palette.text | ||||
96 | text: email | 103 | text: email | ||
97 | font.pointSize: 7 | 104 | font.pointSize: 7 | ||
98 | Layout.alignment: Qt.AlignVCenter | Qt.AlignRight | 105 | Layout.alignment: Qt.AlignVCenter | Qt.AlignRight | ||
99 | } | 106 | } | ||
100 | } | 107 | } | ||
101 | } | 108 | } |