feat(touch_bar): reflect state for bold

This commit is contained in:
Elian Doran
2025-03-09 14:28:18 +02:00
parent ff78ab650a
commit fff140d141
2 changed files with 10 additions and 1 deletions

View File

@@ -4,6 +4,10 @@ import appContext from "../components/app_context.js";
import NoteContextAwareWidget from "./note_context_aware_widget.js";
import type { TouchBarButton, TouchBarGroup, TouchBarSegmentedControl, TouchBarSpacer } from "@electron/remote";
export function buildSelectedBackgroundColor(isSelected: boolean) {
return isSelected ? "#ff0000" : undefined;
}
export default class TouchBarWidget extends NoteContextAwareWidget {
nativeImage: typeof import("electron").nativeImage;