diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..7e94d9d --- /dev/null +++ b/CMakeLists.txt @@ -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) diff --git a/package/main.qml b/package/main.qml new file mode 100644 index 0000000..2dad1b2 --- /dev/null +++ b/package/main.qml @@ -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" + } + } +} \ No newline at end of file diff --git a/package/metadata.json b/package/metadata.json new file mode 100644 index 0000000..0c24af9 --- /dev/null +++ b/package/metadata.json @@ -0,0 +1,7 @@ +{ + "Plugin": { + "Version": "1.0", + "Id": "space.jokul.JNetApplet", + "Url": "main.qml" + } +} \ No newline at end of file