mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 02:05:53 +01:00
feat(touch_bar): reflect state for bold
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user