SlRvb / Obsidian--ITS-Theme

Theme designed with readability and customizability in mind. Change it easily to your liking with the Style Settings plugin installed.
https://publish.obsidian.md/slrvb-docs/ITS+Theme/ITS+Theme
GNU General Public License v2.0
556 stars 114 forks source link

[Bug] Why can't the Heading Colors be changed using style settings? #107

Closed SlRvb closed 2 years ago

SlRvb commented 2 years ago

Discussed in https://github.com/SlRvb/Obsidian--ITS-Theme/discussions/106

Originally posted by **bearcai** May 12, 2022 If you want to change the code, how do you change it
SlRvb commented 2 years ago

@bearcai could you show a screenshot of that error and what settings you're trying to change?

bearcai commented 2 years ago

h1, .cm-s-obsidian .HyperMD-header {
    color:red;
}   
h2, .cm-s-obsidian .HyperMD-header {
    color:orange;
}   
h3, .cm-s-obsidian .HyperMD-header {
    color:yellow;
}   
h4, .cm-s-obsidian .HyperMD-header {
    color:green;
}   
h5, .cm-s-obsidian .HyperMD-header {
    color:aqua;
}   

As you can see, color titles cannot be displayed in edit mode

SlRvb commented 2 years ago

Oh, you could try changing this in the Style Settings of the theme using the Style Settings plugin from the community themes. That should work and be smoother than using a css snippet to do so.

It's under In The Shadows Settings > Note Elements > Headers > Specific View Heading Changes > Heading Colors

bearcai commented 2 years ago

哦,您可以尝试使用社区主题中的样式设置插件在主题的样式设置中进行更改。这应该比使用 css 片段更有效并且更流畅。

它在下面In The Shadows Settings > Note Elements > Headers > Specific View Heading Changes > Heading Colors

I changed the title color in the plugin, but it didn't work.The rest of the plugin works fine, so I'm confused

SlRvb commented 2 years ago

Wait have you turned on the Specific Heading Adjustments toggle? It needs to be toggled on or it won't work 🤔

bearcai commented 2 years ago

Wait have you turned on the Specific Heading Adjustments toggle? It needs to be toggled on or it won't work 🤔

Oh, my God. It needs to be opened. Thank you very much