Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
Chart toolbar icon in the house style; clearer save tooltips
nyblnet4f27fb0a9af0
diff --git a/slides/src/editor/editor.ts b/slides/src/editor/editor.tsindex f7e1bd35..51ca20c2 100644--- a/slides/src/editor/editor.ts+++ b/slides/src/editor/editor.ts@@ -84,7 +84,7 @@ export class Editor {btn(ICONS.text, 'Text', () => this.canvas.insert(defaultText({ y: 120 + Math.random() * 200 }), true)),this.shapeDropdown(),btn(ICONS.image, 'Image', () => this.pickImage()),- btn('📊', 'Chart', () => this.canvas.insert(defaultChart(CHART_PRESETS.bar()))),+ btn(ICONS.chart, 'Chart', () => this.canvas.insert(defaultChart(CHART_PRESETS.bar()))),)const actions = div('ed-group ed-group-right')@@ -92,8 +92,8 @@ export class Editor {const redoB = btn(ICONS.redo, '', () => this.store.redo(), 'Redo (⇧⌘Z)')const presentB = btn(ICONS.play, 'Present', () => this.present(), 'Present from current slide')presentB.classList.add('ed-btn-primary')- const saveB = btn(ICONS.save, 'Save', () => this.save(false), 'Save (⌘S)')- const saveAsB = btn(ICONS.download, '', () => this.save(true), 'Save a copy…')+ const saveB = btn(ICONS.save, 'Save', () => this.save(false), 'Save — rewrite this file in place (⌘S)')+ const saveAsB = btn(ICONS.download, '', () => this.save(true), 'Save a copy — pick a new file, leave this one untouched')const pdfB = btn(ICONS.pdf, '', () => this.exportPdf(), 'Export PDF (print)')const leftT = btn(ICONS.panelLeft, '', () => this.togglePanel('left'), 'Toggle slide list ([)')const rightT = btn(ICONS.panelRight, '', () => this.togglePanel('right'), 'Toggle properties (])')diff --git a/slides/src/icons.ts b/slides/src/icons.tsindex 029aed1b..a375413c 100644--- a/slides/src/icons.ts+++ b/slides/src/icons.ts@@ -7,6 +7,7 @@ export const ICONS = {text: svg('<polyline points="4 7 4 4 20 4 20 7"/><line x1="9" y1="20" x2="15" y2="20"/><line x1="12" y1="4" x2="12" y2="20"/>'),shapes: svg('<rect x="3" y="3" width="10" height="10" rx="1.5"/><circle cx="16.5" cy="16.5" r="4.5"/>'),image: svg('<rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.5-3.5L6 23"/>'),+ chart: svg('<path d="M3 3v16a2 2 0 0 0 2 2h16"/><path d="M18 17V9"/><path d="M13 17V5"/><path d="M8 17v-3"/>'),undo: svg('<path d="M9 14 4 9l5-5"/><path d="M4 9h10.5a5.5 5.5 0 0 1 0 11H11"/>'),redo: svg('<path d="m15 14 5-5-5-5"/><path d="M20 9H9.5a5.5 5.5 0 0 0 0 11H13"/>'),play: svg('<polygon points="6 3 20 12 6 21 6 3" fill="currentColor" stroke="none"/>'),