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

Right-aligned QLineEdits have different borders enabled vs disabled #87

Open nicoddemus opened 1 year ago

nicoddemus commented 1 year ago

From https://github.com/UN-GCPDS/qt-material/issues/85#issuecomment-1432194497, the right border is not aligned correctly when the QLineEdit is enabled vs disabled.

See the two bottom controls:

image

gustavo-iniguez-goya commented 1 year ago

This behaviour is defined here: https://github.com/UN-GCPDS/qt-material/blob/5a99be3d6914cd5570282b29968aa39a7f8d1408/qt_material/material.css.template#L180

Removing the padding aligns the behaviour with disabled and non-disabled states. But the code to add padding based on the density value suggests me that maybe there was an issue with differents density scales... so again @YeisonCardona is the best person to apply the proper fix here.