小部件

This commit is contained in:
2026-07-12 19:02:57 +08:00
parent 95b625d26a
commit 0b3cc74bc8
3 changed files with 39 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
// SPDX-FileCopyrightText: 2024 MyCompany
// SPDX-License-Identifier: LGPL-3.0-or-later
import QtQuick 2.11
import QtQuick.Controls 2.4
import org.deepin.ds 1.0
AppletItem {
objectName: "JnetApplet"
implicitWidth: 100
implicitHeight: 100
Rectangle {
anchors.fill: parent
color: "#2ecc71"
radius: 8
Text {
anchors.centerIn: parent
text: "你好,世界!"
font.pixelSize: 14
color: "white"
}
}
}
+7
View File
@@ -0,0 +1,7 @@
{
"Plugin": {
"Version": "1.0",
"Id": "space.jokul.JNetApplet",
"Url": "main.qml"
}
}