diff --git a/index.js b/index.js
index 353980b4..7b414352 100644
--- a/index.js
+++ b/index.js
@@ -32,7 +32,7 @@ autoUpdater.autoDownload = false;
const gotTheLock = app.requestSingleInstanceLock();
-if (!gotTheLock) app.quit();
+if (!gotTheLock) app.exit();
app.commandLine.appendSwitch(
"js-flags",
diff --git a/plugins/notifications/interactive.js b/plugins/notifications/interactive.js
index 381f3fe9..1b3d434f 100644
--- a/plugins/notifications/interactive.js
+++ b/plugins/notifications/interactive.js
@@ -55,25 +55,10 @@ function sendXML(songInfo) {
icon: imgSrc,
silent: true,
// https://learn.microsoft.com/en-us/uwp/schemas/tiles/toastschema/schema-root
+ // https://learn.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/toast-schema
// https://learn.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/adaptive-interactive-toasts?tabs=xml
// https://learn.microsoft.com/en-us/uwp/api/windows.ui.notifications.toasttemplatetype
- toastXml: `
-
-
-
-
-
- ${songInfo.title}
- ${songInfo.artist}
-
-
-
-
- ${getButton('previous')}
- ${songInfo.isPaused ? getButton('play') : getButton('pause')}
- ${getButton('next')}
-
- `,
+ toastXml: get_xml_custom(),
});
savedNotification.on("close", (_) => {
@@ -94,24 +79,198 @@ const getButton = (kind) =>
const display = (kind) =>
config.smallInteractive ?
`content="${icons[kind]}"` :
- `content="" imageUri="file:///${path.resolve(__dirname, iconLocation, `${kind}.png`)}"`;
+ `content="${kind.charAt(0).toUpperCase() + kind.slice(1)}" imageUri="file:///${path.resolve(__dirname, iconLocation, `${kind}.png`)}"`;
-// TODO MAKE DIFFERENT TEMPLATES
-const xml = (songInfo, options) => {
- const xml = `
-
-
-
- Header Text
- Body Text
- Body 2 Text
- Attribution Text
-
-
-
-
-
-
- `;
-}
+const get_xml = (songInfo, options, imgSrc) => `
+
+
+
+
+
+ ${songInfo.title}
+ ${songInfo.artist}
+
+
+
+
+ ${getButton('previous')}
+ ${songInfo.isPaused ? getButton('play') : getButton('pause')}
+ ${getButton('next')}
+
+`
+
+// **************************************************** //
+// PREMADE TEMPLATES FOR TESTING
+// DELETE AFTER TESTING
+// **************************************************** //
+
+const get_xml_custom = () => xml_banner_centered_top;
+
+const xml_logo_ascii = `
+
+
+
+
+
+ The Last Stand of Frej
+ Amon Amarth
+
+
+
+
+
+
+
+
+
+`;
+
+
+const xml_logo_icons_notext =`
+
+
+
+
+
+ The Last Stand of Frej
+ Amon Amarth
+
+
+
+
+
+
+
+
+
+`;
+
+const buttons_icons = `
+
+
+
+
+
+`;
+
+const xml_logo_icons = `
+
+
+
+
+
+ The Last Stand of Frej
+ Amon Amarth
+
+
+
+ ${buttons_icons}
+
+`;
+
+const xml_hero = `
+
+
+
+
+
+ The Last Stand of Frej
+ Amon Amarth
+
+
+
+ ${buttons_icons}
+
+`;
+
+const xml_banner_bottom = `
+
+
+
+
+
+ The Last Stand of Frej
+ Amon Amarth
+
+
+
+ ${buttons_icons}
+
+`;
+
+const xml_banner_top_custom = `
+
+
+
+
+
+ ㅤ
+
+
+ The Last Stand of Frej
+ Amon Amarth
+
+
+ Surtur Rising
+ 2011
+
+
+
+
+
+ ${buttons_icons}
+
+`;
+
+const xml_banner_centered_bottom = `
+
+
+
+
+ ㅤ
+
+
+ The Last Stand of Frej
+ Amon Amarth
+
+
+
+
+
+
+ ${buttons_icons}
+
+`;
+
+const xml_banner_centered_top = `
+
+
+
+
+
+ ㅤ
+
+
+ The Last Stand of Frej
+ Amon Amarth
+
+
+
+
+
+ ${buttons_icons}
+
+`;