mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-10 00:05:25 -04:00
Adjust colorramp height on HiDPI screens
This commit is contained in:
parent
bac80aa93a
commit
251b2aefdf
@ -69,7 +69,8 @@ QSize QgsColorRampButton::sizeHint() const
|
||||
#ifdef Q_OS_WIN
|
||||
return QSize( 120, 22 );
|
||||
#else
|
||||
return QSize( 120, 28 );
|
||||
// Adjust height for HiDPI screens
|
||||
return QSize( 120, std::max( static_cast<int>( fontMetrics().height( ) * 1.4 ), 28 ) );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user