Add color scheme detection test
This commit is contained in:
parent
e44081f5fb
commit
9c72308ee4
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
Reference in a new issue