Update README.md

This commit is contained in:
gapmiss 2025-04-06 17:31:38 -05:00
parent 5fc00a9032
commit 47df2c6005
5 changed files with 34 additions and 2 deletions

View file

@ -56,6 +56,40 @@ A plugin for displaying inline "callouts" in [Obsidian.md](https://github.com/ob
</p>
</details>
### Search for inline callout modal
<details style="margin-block: 1em;">
<summary>👇️ Show GIF screencast</summary>
<p></p>
<p>
<img src="https://github.com/gapmiss/inline-callouts/blob/master/screenshots/Inline-Callouts-demo-Obsidian-v1.8.9-2025-04-06-17.19.23.gif?raw=true" alt="Icon suggestion modal" />
</p>
</details>
### Style Settings plugin settings
<details style="margin-block: 1em;">
<summary>👇️ Show screenshot</summary>
<p></p>
<p>
<img src="https://github.com/gapmiss/inline-callouts/blob/master/screenshots/Inline-Callouts-demo-Obsidian-v1.8.9-2025-04-06-17.23.37.png?raw=true" alt="Style Settings plugin settings" />
</p>
</details>
### Settings
<details style="margin-block: 1em;">
<summary>👇️ Show screenshot</summary>
<p></p>
<p>
<img src="https://github.com/gapmiss/inline-callouts/blob/master/screenshots/Inline-Callouts-demo-Obsidian-v1.8.9-2025-04-06-17.24.20.png?raw=true" alt="Settings" />
</p>
</details>
## Usage
### Syntax

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

View file

@ -132,12 +132,10 @@ export class ModifyInlineCalloutModal extends Modal {
"var(--color-red-rgb)": "Red",
"var(--color-yellow-rgb)": "Yellow",
})
// .setValue(this.calloutColor!)
.setValue(this.calloutColor?.startsWith("var(--color") ? this.calloutColor : '')
.onChange((value) => {
if (value !== '') {
this.calloutColor = value;
// this.calloutIcon = this.calloutIcon;
this.buildPreview();
this.display(false, false, true);
setTimeout(() => {