styling changes of buttons

This commit is contained in:
zadam
2022-12-11 13:20:37 +01:00
parent 1f468f81cc
commit c231b3cb79
18 changed files with 52 additions and 26 deletions

View File

@@ -1,4 +1,3 @@
import OnClickButtonWidget from "../buttons/onclick_button.js";
import CalendarWidget from "../buttons/calendar.js";
import SpacerWidget from "../spacer.js";
import BookmarkButtons from "../bookmark_buttons.js";
@@ -34,11 +33,14 @@ export default class LauncherWidget extends BasicWidget {
const launcherType = note.getLabelValue("launcherType");
if (launcherType === 'command') {
this.innerWidget = this.initCommandWidget(note);
this.innerWidget = this.initCommandWidget(note)
.class("launcher-button");
} else if (launcherType === 'note') {
this.innerWidget = new NoteLauncher(note);
this.innerWidget = new NoteLauncher(note)
.class("launcher-button");
} else if (launcherType === 'script') {
this.innerWidget = new ScriptLauncher(note);
this.innerWidget = new ScriptLauncher(note)
.class("launcher-button");
} else if (launcherType === 'customWidget') {
this.innerWidget = await this.initCustomWidget(note);
} else if (launcherType === 'builtinWidget') {