Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(touch_bar): blurry native images
Elian Doranf2f0f6178b07
diff --git a/src/public/app/widgets/touch_bar.ts b/src/public/app/widgets/touch_bar.tsindex 076a52fdd4..5fcb3ee7d8 100644--- a/src/public/app/widgets/touch_bar.ts+++ b/src/public/app/widgets/touch_bar.ts@@ -19,9 +19,21 @@ export default class TouchBarWidget extends Component {}#buildIcon(name: string) {- return this.nativeImage- .createFromNamedImage(name, [-1, 0, 1])- .resize({ height: 20 });+ const sourceImage = this.nativeImage.createFromNamedImage(name, [-1, 0, 1]);+ const newImage = this.nativeImage.createEmpty()+ newImage.addRepresentation({+ scaleFactor: 1,+ width: 22,+ height: 22,+ buffer: sourceImage.resize({ height: 22 }).toBitmap()+ });+ newImage.addRepresentation({+ scaleFactor: 2,+ width: 44,+ height: 44,+ buffer: sourceImage.resize({ height: 44 }).toBitmap()+ });+ return newImage;}#buildTouchBar() {