This commit is contained in:
Oscar Plaisant
2024-03-27 15:59:45 +01:00
parent bb9f9102c9
commit 871cbb94b4
200 changed files with 105447 additions and 159342 deletions

View File

@@ -5567,6 +5567,10 @@ class CSSSettingsTab extends obsidian.PluginSettingTab {
super(app, plugin);
this.plugin = plugin;
}
rerender() {
var _a;
(_a = this.settingsMarkup) === null || _a === void 0 ? void 0 : _a.rerender();
}
setSettings(settings, errorList) {
this.settings = settings;
this.errorList = errorList;
@@ -5592,6 +5596,10 @@ class SettingsView extends obsidian.ItemView {
super(leaf);
this.plugin = plugin;
}
rerender() {
var _a;
(_a = this.settingsMarkup) === null || _a === void 0 ? void 0 : _a.rerender();
}
setSettings(settings, errorList) {
this.settings = settings;
this.errorList = errorList;
@@ -9814,9 +9822,9 @@ class CSSSettingsPlugin extends obsidian.Plugin {
callback: () => {
const value = !this.settingsManager.getSetting(section.id, setting.id);
this.settingsManager.setSetting(section.id, setting.id, value);
this.settingsTab.settingsMarkup.rerender();
this.settingsTab.rerender();
for (const leaf of this.app.workspace.getLeavesOfType(viewType)) {
leaf.view.settingsMarkup.rerender();
leaf.view.rerender();
}
},
}));

View File

@@ -1,7 +1,7 @@
{
"id": "obsidian-style-settings",
"name": "Style Settings",
"version": "1.0.7",
"version": "1.0.8",
"minAppVersion": "0.11.5",
"description": "Offers controls for adjusting theme, plugin, and snippet CSS variables.",
"author": "mgmeyers",