Save worktree changes

This commit is contained in:
2026-07-25 02:29:19 +01:00
parent 8d3b7d557b
commit db9d718cd8
170 changed files with 11719 additions and 3414 deletions
+61
View File
@@ -1,6 +1,66 @@
(function () {
var storageKey = 'lte-theme';
var theme = 'auto';
var ckeditorThemeStyleId = 'ckeditor-dark-theme-overrides';
function getPreferredTheme() {
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
return 'dark';
}
return 'light';
}
function getOrCreateCkeditorThemeStyleElement() {
var styleElement = document.getElementById(ckeditorThemeStyleId);
if (styleElement) {
return styleElement;
}
styleElement = document.createElement('style');
styleElement.id = ckeditorThemeStyleId;
document.head.appendChild(styleElement);
return styleElement;
}
function syncCkeditorTheme(currentTheme) {
var styleElement = getOrCreateCkeditorThemeStyleElement();
if (currentTheme !== 'dark') {
styleElement.textContent = '';
return;
}
styleElement.textContent = [
'.ck.ck-dropdown__panel,',
'.ck.ck-list__panel,',
'.ck.ck-list,',
'.ck.ck-balloon-panel {',
' background: var(--bs-body-bg) !important;',
' background-color: var(--bs-body-bg) !important;',
' border-color: var(--bs-border-color) !important;',
' color: var(--bs-body-color) !important;',
'}',
'.ck.ck-list .ck-list-item-button {',
' background: transparent !important;',
' background-color: transparent !important;',
' color: var(--bs-body-color) !important;',
'}',
'.ck.ck-list .ck-list-item-button:hover {',
' background: var(--bs-secondary-bg) !important;',
' background-color: var(--bs-secondary-bg) !important;',
'}',
'.ck.ck-color-grid,',
'.ck.ck-color-grid__tile {',
' color: var(--bs-body-color) !important;',
'}',
'.ck.ck-color-grid__tile {',
' border-color: var(--bs-border-color) !important;',
'}'
].join('\n');
}
try {
var storedTheme = window.localStorage.getItem(storageKey);
@@ -13,4 +73,5 @@
document.documentElement.dataset.bsTheme = theme;
document.documentElement.style.colorScheme = theme;
syncCkeditorTheme(theme === 'auto' ? getPreferredTheme() : theme);
}());