2 * Copyright (C) 2016 Canonical, Ltd.
4 * This program is free software: you can redistribute it and/or modify it under
5 * the terms of the GNU Lesser General Public License version 3, as published by
6 * the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
10 * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
27 property string themeName: "default"
28 property string cursorName: "left_ptr"
29 property string cursorHeight: "32"
33 themeName: root.themeName
34 cursorName: root.cursorName
35 cursorHeight: root.cursorHeight
40 x: (200 - animatedSprite.width) / 2
41 y: (root.height - animatedSprite.height) / 2
46 x: -imageInfo.hotspot.x
47 y: -imageInfo.hotspot.y
48 source: "image://cursor/" + root.themeName + "/" + root.cursorName + "/" + root.cursorHeight
52 width: imageInfo.frameWidth
53 height: imageInfo.frameHeight
55 frameCount: imageInfo.frameCount
56 frameDuration: imageInfo.frameDuration
57 frameWidth: imageInfo.frameWidth
58 frameHeight: imageInfo.frameHeight
67 anchors.top: cursor.top
74 anchors.left: cursor.left
75 anchors.top: parent.top
76 anchors.bottom: parent.bottom
80 anchors.top: parent.top
81 anchors.bottom: parent.bottom
82 anchors.left: parent.left
83 anchors.right: controls.left
85 if (hotspotCrossH.visible) {
86 hotspotCrossH.visible = false;
87 hotspotCrossV.visible = false;
89 hotspotCrossH.visible = true;
90 hotspotCrossV.visible = true;
98 anchors.right: parent.right
99 anchors.top: parent.top
100 anchors.bottom: parent.bottom
101 width: root.width - 200
107 TextEntry { id: themeNameEntry; name: "themeName"; value: "default" }
109 Item {width: 10; height: 20}
111 TextEntry { id: cursorNameEntry; name: "cursorName"; value: "left_ptr" }
113 Item {width: 10; height: 40}
115 TextEntry { id: cursorHeightEntry; name: "cursorHeight"; value: "32" }
117 Item {width: 10; height: 40}
120 color: applyMouseArea.pressed ? "green" : "lightslategray"
121 width: parent.width - 20
123 Text { anchors.centerIn: parent; text: "Apply" }
128 root.themeName = themeNameEntry.value;
129 root.cursorName = cursorNameEntry.value;
130 root.cursorHeight = cursorHeightEntry.value;
135 Item {width: 10; height: 10}
139 anchors.left: parent.left
140 anchors.right: parent.right
142 Item {width: 10; height: 10}
144 Text { text: "frameWidth: " + imageInfo.frameWidth }
145 Text { text: "frameHeight: " + imageInfo.frameHeight }
146 Text { text: "frameCount: " + imageInfo.frameCount }
147 Text { text: "frameDuration: " + imageInfo.frameDuration }
148 Text { text: "currentFrame: " + animatedSprite.currentFrame }
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list