mugiwara85 / CodeblockCustomizer

Codeblock Customizer plugin for Obsidian
MIT License
148 stars 7 forks source link

Can't save the custom Settings #10

Closed liuke101 closed 1 year ago

liuke101 commented 1 year ago

Can't save the custom Settings, cause I lose my Settings when I switch themes or some other behavior

mugiwara85 commented 1 year ago

which settings do you mean exactly?

liuke101 commented 1 year ago

which settings do you mean exactly?

color Settings

mugiwara85 commented 1 year ago

Which color setting???? Until you provide enough information or explain the problem I can't help. Describe the problem in a way so I can reproduce it.

liuke101 commented 1 year ago

I tested it by first changing all the color options to red, image

Then I switched the obsidian base color from light to dark and found that all the color Settings were restored to their default Settings image

mugiwara85 commented 1 year ago

Yes, that is correct. If you only use one theme (for example dark), then you can change the colors, and they will stay as you selected. But if you are switching between themes, then you need to save your color settings in a theme. Give it a name, an save it. Also note, that you can also select if the theme is a default light or a default dark theme. This means, that if you change Obsidians theme (not the plugins theme), then the plugin will automatically select the default light/dark theme accordingly. I hope it is understandable. If not, just ask :)

image image

liuke101 commented 1 year ago

Yes, that is correct. If you only use one theme (for example dark), then you can change the colors, and they will stay as you selected. But if you are switching between themes, then you need to save your color settings in a theme. Give it a name, an save it. Also note, that you can also select if the theme is a default light or a default dark theme. This means, that if you change Obsidians theme (not the plugins theme), then the plugin will automatically select the default light/dark theme accordingly. I hope it is understandable. If not, just ask :)

image image

Thank you. I understand the logic of the setup.