小部件
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
|
||||||
|
project(JNetApplet)
|
||||||
|
|
||||||
|
find_package(DDEShell REQUIRED NO_MODULE)
|
||||||
|
|
||||||
|
ds_install_package(PACKAGE space.jokul.JNetApplet)
|
||||||
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"Plugin": {
|
||||||
|
"Version": "1.0",
|
||||||
|
"Id": "space.jokul.JNetApplet",
|
||||||
|
"Url": "main.qml"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user