mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-07-06 08:02:46 +08:00
8 lines
270 B
JavaScript
8 lines
270 B
JavaScript
import { clearCaches } from "../measurement/position_measurement.js"
|
|
|
|
export function themeChanged(cm) {
|
|
cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") +
|
|
cm.options.theme.replace(/(^|\s)\s*/g, " cm-s-")
|
|
clearCaches(cm)
|
|
}
|