missing cell padding added for fluent2

This commit is contained in:
Uwe Rathmann 2023-07-04 07:49:38 +02:00
parent e5e2921bba
commit 0f6a1206e6
2 changed files with 5 additions and 4 deletions

View File

@ -16,10 +16,6 @@ namespace
: QskSimpleListBox( parent )
{
setMargins( QMarginsF( 15, 10, 10, 10 ) );
// increasing the padding of each row: usually the job of the skin !
setPaddingHint( Cell, QMargins( 10, 20, 10, 20 ) );
populate();
setSelectedRow( 5 );

View File

@ -34,6 +34,7 @@
- hover state is not implemented
- Indicator subcontrol might be better than using the border of the selection box
- cell padding unclear
- using qskDpToPixels ?
*/
@ -607,6 +608,10 @@ void Editor::setupListViewMetrics()
using Q = QskListView;
setBoxBorderMetrics( Q::Cell | Q::Selected, { 3, 0, 0, 0 } );
#if 1
// taken from M3 - what are the actual values, TODO ...
setPadding( Q::Cell, { 16, 12, 16, 12 } );
#endif
}
void Editor::setupListViewColors(