//Uses Process,...
function isMacDarkMode: Boolean;
var s:ansistring;
begin
RunCommand('/usr/bin/defaults',['read','-g','AppleInterfaceStyle'],s);
Result:=(pos('Dark',s)>0);
end;
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.