den
September 3, 2020, 7:02am
1
Anybody who can explain this behavior when using DARK/LIGHT class inside Graph?
Steps to reproduce
Add this code to your custom.css
.theme-dark .graph-view.color-line {
color: red;
}
.theme-dark .graph-view.color-line {
color: green;
}
Expected result
I expected to see the lines green when in Dark-mode
I expected to see the lines red when in Ligh-mode
Actual result
Light-mode
[Screenshot 2020-09-03 at 09.43.16]
Dark-mode
[Screenshot 2020-09-03 at 09.46.17]
Environment
Operating system: Mac Os
Obsidian version: 0.8.9
.theme-dark .graph-view.color-line {
color: red;
}
.theme-light .graph-view.color-line {
color: green;
}
This is works for me. Is it possible that you have a CSS error before this?
den
September 6, 2020, 11:30am
3
It is pretty weird. I move lines just at the beginning, rewrite it not copyping and now it works. But there is this bug that graph will not update when switching theme color. < I think this was already announced.