From 4da12ae05d8c4e7496d308ab9445951a02644200 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Fri, 11 Aug 2023 17:01:10 +0800 Subject: [PATCH] feat(desktop): new desktop application project this is a thin wrapper consisting of a tray icon only --- .github/dependabot.yml | 6 + .../runConfigurations/komga__bootRun__dev.xml | 9 +- .../komga__bootRun__dev_demo_noclaim.xml | 9 +- ...a__bootRun__dev_localdb_noclaim_oauth2.xml | 5 +- .../komga__bootRun__dev_noclaim.xml | 9 +- komga-tray/build.gradle.kts | 40 ++++ .../org/gotson/komga/DesktopApplication.kt | 12 ++ .../src/main/kotlin/org/gotson/komga/Utils.kt | 11 + .../komga/application/gui/TrayIconRunner.kt | 41 ++++ .../src/main/resources/application-mac.yml | 5 + .../main/resources/application-windows.yml | 2 + .../src/main/resources/icons/komga-color.svg | 113 ++++++++++ .../resources/icons/komga-gray-minimal.svg | 169 +++++++++++++++ komga/build.gradle.kts | 2 +- res/komga-gray-minimal.svg | 169 +++++++++++++++ res/komga-grayscale.svg | 195 ++++++++++++++++++ settings.gradle | 1 + 17 files changed, 786 insertions(+), 12 deletions(-) create mode 100644 komga-tray/build.gradle.kts create mode 100644 komga-tray/src/main/kotlin/org/gotson/komga/DesktopApplication.kt create mode 100644 komga-tray/src/main/kotlin/org/gotson/komga/Utils.kt create mode 100644 komga-tray/src/main/kotlin/org/gotson/komga/application/gui/TrayIconRunner.kt create mode 100644 komga-tray/src/main/resources/application-mac.yml create mode 100644 komga-tray/src/main/resources/application-windows.yml create mode 100644 komga-tray/src/main/resources/icons/komga-color.svg create mode 100644 komga-tray/src/main/resources/icons/komga-gray-minimal.svg create mode 100644 res/komga-gray-minimal.svg create mode 100644 res/komga-grayscale.svg diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 82796f56..52ed1ae7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -12,6 +12,12 @@ updates: schedule: interval: "weekly" + - package-ecosystem: "gradle" + directory: "/komga-tray" + open-pull-requests-limit: 0 + schedule: + interval: "weekly" + # Maintain dependencies for GitHub Actions - package-ecosystem: "github-actions" directory: "/" diff --git a/.idea/runConfigurations/komga__bootRun__dev.xml b/.idea/runConfigurations/komga__bootRun__dev.xml index 1af4c7df..4b8538e5 100644 --- a/.idea/runConfigurations/komga__bootRun__dev.xml +++ b/.idea/runConfigurations/komga__bootRun__dev.xml @@ -7,7 +7,7 @@