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.39k stars 253 forks source link

QPushButton padding makes icons very small #71

Open funghetto opened 2 years ago

funghetto commented 2 years ago

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

funghetto commented 2 years 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.