Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/FolderView.qml
Show First 20 Lines • Show All 491 Lines • ▼ Show 20 Line(s) | 467 | GridView { | |||
---|---|---|---|---|---|
492 | keyNavigationWraps: false | 492 | keyNavigationWraps: false | ||
493 | boundsBehavior: Flickable.StopAtBounds | 493 | boundsBehavior: Flickable.StopAtBounds | ||
494 | 494 | | |||
495 | cellWidth: { | 495 | cellWidth: { | ||
496 | if (root.useListViewMode) { | 496 | if (root.useListViewMode) { | ||
497 | return gridView.width; | 497 | return gridView.width; | ||
498 | } | 498 | } | ||
499 | 499 | | |||
500 | return iconSize + (4 * units.largeSpacing); | 500 | return iconSize + (2 * units.largeSpacing) + (2 * units.smallSpacing); | ||
501 | } | 501 | } | ||
502 | 502 | | |||
503 | cellHeight: { | 503 | cellHeight: { | ||
504 | if (root.useListViewMode) { | 504 | if (root.useListViewMode) { | ||
505 | return Math.ceil((Math.max(theme.mSize(theme.defaultFont).height, iconSize) | 505 | return Math.ceil((Math.max(theme.mSize(theme.defaultFont).height, iconSize) | ||
506 | + Math.max(highlightItemSvg.margins.top + highlightItemSvg.margins.bottom, | 506 | + Math.max(highlightItemSvg.margins.top + highlightItemSvg.margins.bottom, | ||
507 | listItemSvg.margins.top + listItemSvg.margins.bottom)) / 2) * 2; | 507 | listItemSvg.margins.top + listItemSvg.margins.bottom)) / 2) * 2; | ||
508 | } | 508 | } | ||
509 | 509 | | |||
510 | return (iconSize + (theme.mSize(theme.defaultFont).height * plasmoid.configuration.textLines) | 510 | return (iconSize + (theme.mSize(theme.defaultFont).height * plasmoid.configuration.textLines) | ||
511 | + (3 * units.smallSpacing) + (2 * units.largeSpacing)); | 511 | + (6 * units.smallSpacing)); | ||
512 | } | 512 | } | ||
513 | 513 | | |||
514 | delegate: FolderItemDelegate { | 514 | delegate: FolderItemDelegate { | ||
515 | width: gridView.cellWidth | 515 | width: gridView.cellWidth | ||
516 | height: gridView.cellHeight | 516 | height: gridView.cellHeight | ||
517 | } | 517 | } | ||
518 | 518 | | |||
519 | onContentXChanged: { | 519 | onContentXChanged: { | ||
▲ Show 20 Lines • Show All 690 Lines • Show Last 20 Lines |