qt-material icon indicating copy to clipboard operation
qt-material copied to clipboard

how add custom icon ?

Open ebdm13 opened this issue 2 years ago • 0 comments

I would like add custom icon like this: cutsom_icon

but, as you can see, they don't have the same color as the theme

my stylesheet look like this:

.is_toggled::indicator:checked{{
	image: url(src/icons/toggle_on.svg)
}}

.is_toggled::indicator:unchecked{{
	image: url(src/icons/toggle_off.svg)
}}

but there are no fill and stroke property for manage svg colors 😢

and I added the menu icons like this:

self.add_profile = QAction(QIcon("src/icons/add_profile.svg"), "Add Profile", self)
self.add_profile.triggered.connect(self.open_profile)
self.change_mail_bot = QAction(QIcon("src/icons/mail.svg"), "Change Mail Bot", self)

someone have an idea for a way to do this ? maybe try to do with the replace_color funcion in ResourseGenerator class ? I also thought it can be do with Q_PRPOPERTY

ebdm13 avatar Jul 12 '22 13:07 ebdm13