mirror of
https://github.com/adiguno/hello-nemesis.git
synced 2026-07-22 05:37:31 +00:00
add bad icon
This commit is contained in:
parent
82672e6e99
commit
222ff4216d
1 changed files with 6 additions and 1 deletions
7
main.ts
7
main.ts
|
|
@ -1,4 +1,5 @@
|
|||
import {
|
||||
addIcon,
|
||||
App,
|
||||
Editor,
|
||||
MarkdownView,
|
||||
|
|
@ -31,8 +32,12 @@ export default class NemesisPlugin extends Plugin {
|
|||
console.log("My openai key: " + this.settings.openAiKey);
|
||||
|
||||
// This creates an icon in the left ribbon.
|
||||
addIcon(
|
||||
"logo",
|
||||
'<path d="M2 21V7.49072C2 5.75918 4.05088 4.8458 5.33793 6.00414L18.6621 17.9959C19.9491 19.1542 22 18.2408 22 16.5093V3" stroke="#FF8A8A" stroke-width="2" stroke-linecap="round"/>'
|
||||
);
|
||||
const ribbonIconEl = this.addRibbonIcon(
|
||||
"dice",
|
||||
"logo",
|
||||
"Sample Plugin",
|
||||
(evt: MouseEvent) => {
|
||||
// Called when the user clicks the icon.
|
||||
|
|
|
|||
Loading…
Reference in a new issue