From 139e30b31d46fb7b489b8eaa6d8776643df87149 Mon Sep 17 00:00:00 2001 From: Quorafind Date: Fri, 25 Apr 2025 17:36:47 +0800 Subject: [PATCH] chore: update readme --- .npmrc | 1 - README.md | 4 +++- media/task-genius.svg | 11 +++++++++++ src/icon.ts | 7 +++++++ src/index.ts | 6 +++++- 5 files changed, 26 insertions(+), 3 deletions(-) delete mode 100644 .npmrc create mode 100644 media/task-genius.svg create mode 100644 src/icon.ts diff --git a/.npmrc b/.npmrc deleted file mode 100644 index b9737525..00000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -tag-version-prefix="" \ No newline at end of file diff --git a/README.md b/README.md index 99970ba8..9de019c5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# Task Genius +

+ Task Genius Logo +

Full documentation is available at [Docs](docs/general.md). diff --git a/media/task-genius.svg b/media/task-genius.svg new file mode 100644 index 00000000..e7659569 --- /dev/null +++ b/media/task-genius.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/icon.ts b/src/icon.ts new file mode 100644 index 00000000..1476fa18 --- /dev/null +++ b/src/icon.ts @@ -0,0 +1,7 @@ +export function getTaskGeniusIcon() { + return ` + + + +`; +} diff --git a/src/index.ts b/src/index.ts index 3eaf8716..476b342f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,6 +6,7 @@ import { Plugin, Editor, Menu, + addIcon, } from "obsidian"; import { taskProgressBarExtension, @@ -64,6 +65,7 @@ import "./styles/view-config.css"; import "./styles/task-status.css"; import { TaskSpecificView } from "./pages/TaskSpecificView"; import { TASK_SPECIFIC_VIEW_TYPE } from "./pages/TaskSpecificView"; +import { getTaskGeniusIcon } from "./icon"; class TaskProgressBarPopover extends HoverPopover { plugin: TaskProgressBarPlugin; @@ -163,6 +165,8 @@ export default class TaskProgressBarPlugin extends Plugin { if (this.settings.enableView) { this.loadViews(); + addIcon("task-genius", getTaskGeniusIcon()); + this.taskManager = new TaskManager( this.app, this.app.vault, @@ -303,7 +307,7 @@ export default class TaskProgressBarPlugin extends Plugin { // Add a ribbon icon for opening the TaskView this.addRibbonIcon( - "list-check", + "task-genius", t("Open Task Genius view"), () => { this.activateTaskView();