MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/openevolve / getSystemTheme

Function getSystemTheme

scripts/static/js/mainUI.js:65–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 document.getElementById('darkmode-label').textContent = theme === 'dark' ? '🌙' : '☀️';
64}
65function getSystemTheme() {
66 return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
67}
68// On load, use localStorage or system default to determine theme
69(function() {
70 let theme = localStorage.getItem('theme');

Callers 1

mainUI.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected