increase units.smallSpacing
1/8 is really ridiculously small, it ends up being 2px on almost all systems, and using it between UI elements makes them look really cramped. 1/4 works much better, and makes this property actually useful.
This commit is contained in:
parent
94430a6784
commit
453c40efee
@ -192,7 +192,7 @@ void Units::updateSpacing()
|
||||
{
|
||||
const int _s = QFontMetrics(QGuiApplication::font()).boundingRect("M").size().height();
|
||||
if (_s != m_largeSpacing) {
|
||||
m_smallSpacing = qMax(2, (int)(_s / 8)); // 1/8 of msize.height, at least 2
|
||||
m_smallSpacing = qMax(2, (int)(_s / 4)); // 1/4 of gridUnit, at least 2
|
||||
m_largeSpacing = _s; // msize.height
|
||||
emit spacingChanged();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user