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.22k stars 240 forks source link

QPushButton padding makes icons very small #71

Open funghetto opened 1 year ago

funghetto commented 1 year ago

This is the difference between Designer and the icons rendered with your theme. Immagine

funghetto commented 1 year ago

If I change material.css.template this way:

QPushButton { text-transform: uppercase; margin: 0px; / padding: {{1|density(density_scale)}}px {{16|density(density_scale)}}px; / height: {{36|density(density_scale, border=2)}}px; font-weight: bold;

It uses the right icon size.

Maybe a better way would be to just reduce the 16 to like 5, otherwise there is no padding when there is only text.