mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 21:05:55 +01:00
launchbar WIP
This commit is contained in:
@@ -42,7 +42,11 @@ export default class ShortcutContainer extends FlexContainer {
|
||||
if (builtinWidget === 'calendar') {
|
||||
this.child(new CalendarWidget(shortcut.title, shortcut.getIcon()));
|
||||
} else if (builtinWidget === 'spacer') {
|
||||
this.child(new SpacerWidget(40, 10));
|
||||
// || has to be inside since 0 is a valid value
|
||||
const baseSize = parseInt(shortcut.getLabelValue("baseSize") || "40");
|
||||
const growthFactor = parseInt(shortcut.getLabelValue("growthFactor") || "100");
|
||||
|
||||
this.child(new SpacerWidget(baseSize, growthFactor));
|
||||
} else if (builtinWidget === 'pluginButtons') {
|
||||
this.child(new FlexContainer("column")
|
||||
.id("plugin-buttons")
|
||||
|
||||
Reference in New Issue
Block a user