gfxholo / iconic

Customize your icons and colors directly from the Obsidian UI, including tabs, files, bookmarks, properties, and ribbon commands.
https://obsidian.md/plugins?id=iconic
MIT No Attribution
68 stars 2 forks source link

Inherit text color from icon color #19

Open hmnijp opened 3 months ago

hmnijp commented 3 months ago

Many people like me use themes or css that colour the folder names (like rainbow folders in anuppucin theme github ). Previously I used iconize and there the colour of the icon inherited the colour of the text. Is it possible to add the same option?

Usually it works like this... but it can also change dynamically.

.nav-folder .nav-folder-title[data-path*="_TODO"] {
  --prefix-color: var(--mint);
}

2024-07-13 13-54-25

If you get lazy doing this, thanks anyway for a handy and quick alternative to iconize ! )

gfxholo commented 3 months ago

Heck, I am lazy! I can spend hours of my own energy if it makes a 5 second chore easier

Yeah this is totally possible. It's a planned feature along with colored backgrounds for list items. It'll probably be a setting you can choose for the entire vault at once.

hmnijp commented 3 months ago

oh yeea, the reverse (inheriting the text colour from the colour of the selected icon) was also in demand! )
Because then you could throw out the css snippet with the definition of these colours, and give this task to a plugin)

gfxholo commented 3 months ago

Yeee, for a plugin like this it makes more sense to focus on icons first and just change the text accordingly. I might redesign the icon picker to show a text preview once we cross that bridge.

I'm pulling this feature closer for 1.2.0 :]