Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/FolderItemActionButton.qml
Show All 19 Lines | |||||
20 | import QtQuick 2.2 | 20 | import QtQuick 2.2 | ||
21 | import org.kde.plasma.plasmoid 2.0 | 21 | import org.kde.plasma.plasmoid 2.0 | ||
22 | 22 | | |||
23 | import org.kde.plasma.core 2.0 as PlasmaCore | 23 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
24 | 24 | | |||
25 | PlasmaCore.SvgItem { | 25 | PlasmaCore.SvgItem { | ||
26 | id: actionButton | 26 | id: actionButton | ||
27 | 27 | | |||
28 | width: visible ? units.iconSizes.small : 0 | 28 | width: { | ||
29 | if (!visible) { | ||||
30 | return 0; | ||||
31 | } | ||||
32 | switch(plasmoid.configuration.iconSize) { | ||||
33 | case 0: return units.iconSizes.small; | ||||
34 | case 1: return units.iconSizes.small; | ||||
35 | case 2: return units.iconSizes.small; | ||||
36 | case 3: return units.iconSizes.smallMedium; | ||||
37 | case 4: return units.iconSizes.smallMedium; | ||||
38 | case 5: return units.iconSizes.medium; | ||||
ndavis: medium would be better because then it won't overlap with the icon/thumbnail | |||||
39 | default: return units.iconSizes.small; | ||||
40 | } | ||||
41 | } | ||||
29 | height: width | 42 | height: width | ||
30 | 43 | | |||
31 | signal clicked | 44 | signal clicked | ||
32 | 45 | | |||
33 | property string element | 46 | property string element | ||
34 | 47 | | |||
35 | svg: actionOverlays | 48 | svg: actionOverlays | ||
36 | elementId: element + "-normal" | 49 | elementId: element + "-normal" | ||
Show All 37 Lines |
medium would be better because then it won't overlap with the icon/thumbnail