UN-GCPDS / qt-material

Material inspired stylesheet for PySide2, PySide6, PyQt5 and PyQt6
https://qt-material.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
2.3k stars 242 forks source link

Checkboxes not visible #7

Closed lukasloetkolben closed 3 years ago

lukasloetkolben commented 3 years ago

Checkboxes are not visible anymore when i apply the theme.

nicoddemus commented 3 years ago

I was about to open an issue and noticed this one.

Is this the problem you are describing?

image

Here's the code I'm using (it uses the pyqt5-material fork, but the theme should be identical):

from PyQt5.QtWidgets import QApplication, QWidget, QHBoxLayout, QCheckBox, QPushButton
from pyqt5_material import apply_stylesheet

app = QApplication([])
apply_stylesheet(app, theme="dark_teal.xml")

widget = QWidget()

layout = QHBoxLayout(widget)
layout.addWidget(QCheckBox("Update automatically"))
layout.addWidget(QPushButton("Update"))

widget.show()
app.exec()
lukasloetkolben commented 3 years ago

Yes I have the same issue. Are the icons working for you? I opened another issue... Maybe checkboxes are using icons and that's the reason?

nicoddemus commented 3 years ago

You mean checked? Yes it is working:

image

nicoddemus commented 3 years ago

Ahh wait, nevermind, it is clearly a problem with pyqt5-material, I've updated my example to use PySide2 and pyside-material:

image

Sorry for the noise, I will open an issue there.

nicoddemus commented 3 years ago

Unfortunately pyqt5-material doesn't have Issues enabled, so I can't open an issue there. cc'ing @FuturisticGoo in the hopes he sees this.

FuturisticGoo commented 3 years ago

Thanks for mentioning. Unfortunately I might not be able to quickly fix this because of exams, but I've enabled issues in my repo now (I don't remember turning it off) so you can create an issue there. I had some problems merging material.css.template so I think it has something to do with that, might have to check.

nicoddemus commented 3 years ago

No worries, thanks a lot. Created https://github.com/FuturisticGoo/pyqt5-material/issues/1.

YeisonCardona commented 3 years ago

Hi @lukasloetkolben @nicoddemus @FuturisticGoo I just decided to make this project compatible with PyQt5, which means change the project name, so the troubles with the theme should be fixed now.

nicoddemus commented 3 years ago

Awesome news! Thanks a lot @YeisonCardona.

Also many thanks to @FuturisticGoo for creating the PyQt5 fork. 👍