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"
32 themeName: root.themeName
33 cursorName: root.cursorName
38 x: (200 - animatedSprite.width) / 2
39 y: (root.height - animatedSprite.height) / 2
44 x: -imageInfo.hotspot.x
45 y: -imageInfo.hotspot.y
46 source: "image://cursor/" + root.themeName + "/" + root.cursorName
50 width: imageInfo.frameWidth
51 height: imageInfo.frameHeight
53 frameCount: imageInfo.frameCount
54 frameDuration: imageInfo.frameDuration
55 frameWidth: imageInfo.frameWidth
56 frameHeight: imageInfo.frameHeight
65 anchors.top: cursor.top
72 anchors.left: cursor.left
73 anchors.top: parent.top
74 anchors.bottom: parent.bottom
78 anchors.top: parent.top
79 anchors.bottom: parent.bottom
80 anchors.left: parent.left
81 anchors.right: controls.left
83 if (hotspotCrossH.visible) {
84 hotspotCrossH.visible = false;
85 hotspotCrossV.visible = false;
87 hotspotCrossH.visible = true;
88 hotspotCrossV.visible = true;
96 anchors.right: parent.right
97 anchors.top: parent.top
98 anchors.bottom: parent.bottom
99 width: root.width - 200
105 TextEntry { id: themeNameEntry; name: "themeName"; value: "default" }
107 Item {width: 10; height: 20}
109 TextEntry { id: cursorNameEntry; name: "cursorName"; value: "left_ptr" }
111 Item {width: 10; height: 40}
114 color: applyMouseArea.pressed ? "green" : "lightslategray"
115 width: parent.width - 20
117 Text { anchors.centerIn: parent; text: "Apply" }
122 root.themeName = themeNameEntry.value;
123 root.cursorName = cursorNameEntry.value;
128 Item {width: 10; height: 10}
132 anchors.left: parent.left
133 anchors.right: parent.right
135 Item {width: 10; height: 10}
137 Text { text: "frameWidth: " + imageInfo.frameWidth }
138 Text { text: "frameHeight: " + imageInfo.frameHeight }
139 Text { text: "frameCount: " + imageInfo.frameCount }
140 Text { text: "frameDuration: " + imageInfo.frameDuration }
141 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