aboutsummaryrefslogtreecommitdiff
path: root/api/JoplinWindow.d.ts
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2025-07-04 12:03:11 -0500
committerMark Powers <mark@marks.kitchen>2025-07-04 12:03:11 -0500
commit13feb30f3ff9b913670a5fe7c8a9c1907d2c1740 (patch)
treeab6c820b4904ee7b05cb284af87ea2afc680d628 /api/JoplinWindow.d.ts
Initial commitmain
Diffstat (limited to 'api/JoplinWindow.d.ts')
-rw-r--r--api/JoplinWindow.d.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/api/JoplinWindow.d.ts b/api/JoplinWindow.d.ts
new file mode 100644
index 0000000..4cbdc64
--- /dev/null
+++ b/api/JoplinWindow.d.ts
@@ -0,0 +1,23 @@
+import Plugin from '../Plugin';
+export default class JoplinWindow {
+ private store_;
+ constructor(_plugin: Plugin, store: any);
+ /**
+ * Loads a chrome CSS file. It will apply to the window UI elements, except
+ * for the note viewer. It is the same as the "Custom stylesheet for
+ * Joplin-wide app styles" setting. See the [Load CSS Demo](https://github.com/laurent22/joplin/tree/dev/packages/app-cli/tests/support/plugins/load_css)
+ * for an example.
+ *
+ * <span class="platform-desktop">desktop</span>
+ */
+ loadChromeCssFile(filePath: string): Promise<void>;
+ /**
+ * Loads a note CSS file. It will apply to the note viewer, as well as any
+ * exported or printed note. It is the same as the "Custom stylesheet for
+ * rendered Markdown" setting. See the [Load CSS Demo](https://github.com/laurent22/joplin/tree/dev/packages/app-cli/tests/support/plugins/load_css)
+ * for an example.
+ *
+ * <span class="platform-desktop">desktop</span>
+ */
+ loadNoteCssFile(filePath: string): Promise<void>;
+}