Skip to content

Commit

Permalink
Improved settings modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Developer-Mike committed Jun 5, 2024
1 parent 83ab477 commit 1ec1978
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 37 deletions.
50 changes: 13 additions & 37 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export class AdvancedCanvasPluginSettingTab extends PluginSettingTab {

new Setting(containerEl)
.setHeading()
.setClass('ac-settings-heading')
.setName("General")

new Setting(containerEl)
Expand Down Expand Up @@ -309,43 +310,6 @@ export class AdvancedCanvasPluginSettingTab extends PluginSettingTab {
'betterReadonlyEnabled'
)

/* Would require a solution to sync the settings with the canvas */
/*new Setting(containerEl)
.setName("Disable node interaction")
.setDesc("When enabled, you can't interact with the nodes when in readonly mode.")
.addToggle((toggle) =>
toggle
.setValue(this.settingsManager.settings.disableNodeInteraction)
.onChange(async (value) => await this.settingsManager.setSetting({ disableNodeInteraction: value }))
)
new Setting(containerEl)
.setName("Disable node popup menu")
.setDesc("When enabled, the node popup menu won't show when in readonly mode. (If node interaction is disabled, this setting has no effect.)")
.addToggle((toggle) =>
toggle
.setValue(this.settingsManager.settings.disableNodePopup)
.onChange(async (value) => await this.settingsManager.setSetting({ disableNodePopup: value }))
)
new Setting(containerEl)
.setName("Disable zoom")
.setDesc("When enabled, you can't zoom when in readonly mode.")
.addToggle((toggle) =>
toggle
.setValue(this.settingsManager.settings.disableZoom)
.onChange(async (value) => await this.settingsManager.setSetting({ disableZoom: value }))
)
new Setting(containerEl)
.setName("Disable pan")
.setDesc("When enabled, you can't pan when in readonly mode.")
.addToggle((toggle) =>
toggle
.setValue(this.settingsManager.settings.disablePan)
.onChange(async (value) => await this.settingsManager.setSetting({ disablePan: value }))
)*/

this.createFeatureHeading(
containerEl,
"Collapsible groups",
Expand Down Expand Up @@ -470,11 +434,23 @@ export class AdvancedCanvasPluginSettingTab extends PluginSettingTab {
.setValue(this.settingsManager.getSetting('showEdgesIntoDisabledPortals'))
.onChange(async (value) => await this.settingsManager.setSetting({ showEdgesIntoDisabledPortals: value }))
)

const kofiButton = document.createElement('a')
kofiButton.classList.add('kofi-button')
kofiButton.href = 'https://ko-fi.com/X8X27IA08'
kofiButton.target = '_blank'

const kofiImage = document.createElement('img')
kofiImage.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABNcAAAGVCAMAAADqnefWAAAA3lBMVEUAAAD/////////////////////////////////////////////////////////////////9fX/7Ozv7+//4uH/2dn/2djf39//zc3/ycj/w8P/wMDPz8//ubj/t7f/r6//qqq/v7//o6P/nZz/m5v/lpb/kZCvr6//ion/h4f/hob/hoX/hIP/gH//fXz/fHv/eXifn5//dXT/cXH/bm7/bm3/a2v/amn/aWj/aGf/ZmX/ZGT/Y2L/YWH/YGCPj4//X19/f39vb29fX19PT08/Pz8vLy8fHx8PDw8AAABHqlbKAAAAEHRSTlMAECAwQFBgcICQoLDA0ODwVOCoyAAALtpJREFUeNrs3Vtvm8oaxnGwMcaYw6uiyKpEpI4i1VIutkTUi0pRZGMMZr7/F9rZK90rTnMwzAFm8PO7X6lW7fw7wxxwAAAAAAAAAAAAAAAAAAAAAAAAAAAAwByu5/kBKLDwPG/uAMCYZotgHRMolkbRKvC9mQMAw5ot1wmBVkkULD3XAYAhLFZomgDhui0wdgPQa75KCQaWrJeeAwBauD4eqI0mCtA2AOVmAYZqI1svMScFUGgWEhggWWHYBqCGuyIwRRouHACQhRloZ0gbgBU87OswULrC6QQATEEnJ1li3y4ABmuTE2IVAaA3DNZMl/gYtAH04WIfrgXSFXa1AXQ2xzKoJUKUDaAbn8AaER60AXQQENgEZQO4COemrIOyASBr0xPhORsAsjY5WEEAQNYmJw2wnw0AWZuaxHcA4G9LAqtFOBIPgH1rk4PJKABOGUxOgj0fAK9cZG0a1hiyAfxfRDANKe7UBcDpqckJMWQDeDYnmBA8ZQNwHBe3407MCkM2uHq4HndyEuxlgyvnEUxP4ABcM1z7PUkR5qJwxXB+aqJSLB/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uPwZYhyMBbjIA2Bg/IZAXoWAAsCIOhmzS0gMDgFXxIgIZIcqgAFOhMLpqmIICrJODDaMzJbjQHWC1XHTpzpCgZQ1g1ZBsSDWA7UGyTREj1QCs4B5RQRBz8hkAWMI5oFF3VHrEnikAu/iYjj51wgQUwELOHhviB8QHDNUAbOUeEG0INYDNcfcngu9Oe4QawCb4RwzbvokClD8BtsTxg+iFuz+SEzINYJvcXXB6sZFbFIXBDpEGsHWefwjCaBWjt2iaMHjG/woraQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGDAnwEHEUGMH5vwcwAAAABJRU5ErkJggg=='

kofiButton.appendChild(kofiImage)
containerEl.appendChild(kofiButton)
}

private createFeatureHeading(containerEl: HTMLElement, label: string, description: string, settingsKey: keyof AdvancedCanvasPluginSettings): Setting {
return new Setting(containerEl)
.setHeading()
.setClass('ac-settings-heading')
.setName(label)
.setDesc(description)
.addToggle((toggle) =>
Expand Down
22 changes: 22 additions & 0 deletions src/styles/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,26 @@

border-radius: 0 var(--input-radius) var(--input-radius) 0;
}
}

.kofi-button {
z-index: 999;

position: absolute;
bottom: var(--size-4-5);
right: var(--size-4-5);

height: 30px;

img {
height: 100%;
}
}

.ac-settings-heading {
&:not(:first-child) {
margin-top: var(--size-4-10) !important;
}

border-bottom: 1px solid var(--color-accent);
}

0 comments on commit 1ec1978

Please sign in to comment.