Is there a way for a component to get the css class name of its parent component? #5229
Unanswered
username1419
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to create a theming application for a GTK-based app using dioxus. I have components representing each GTK widget, eg:
I want to create a CSS file which would contain all user changes to the theme, and would be reloaded upon a change happening. This would require components to know their parents' style classes, to change CSS attributes for that specific component on a component hierarchy.
I want to ask if there is any way to do this, or any way I can improve how this works to not need this behaviour.
Any help would be appreciated. Thank you in advance.
Additional note: I cannot use
ids because the original application does not use them, this is my best attempt at a way to replicate its behaviour that transfers over to the original application.Beta Was this translation helpful? Give feedback.
All reactions