diff --git a/Dashboard/src/App.tsx b/Dashboard/src/App.tsx index c618ac4..574971c 100644 --- a/Dashboard/src/App.tsx +++ b/Dashboard/src/App.tsx @@ -1,8 +1,14 @@ import React from "react"; import SerialPort from "serialport"; +import { remote } from "electron"; import Knob from "../assets/Knob.svg"; const App = () => { + // https://www.electronjs.org/docs/api/system-preferences#systempreferencesgetcolorcolor-windows-macos + console.log(remote.systemPreferences.getColor("active-border")); // border + // https://www.electronjs.org/docs/api/system-preferences#systempreferencesgetaccentcolor-windows-macos + console.log(remote.systemPreferences.getAccentColor()); // accent color + const port = new SerialPort("COM5", { baudRate: 9600, autoOpen: false,