Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/package/contents/ui/DashboardRepresentation.qml
Show All 38 Lines | |||||
39 | */ | 39 | */ | ||
40 | 40 | | |||
41 | Kicker.DashboardWindow { | 41 | Kicker.DashboardWindow { | ||
42 | id: root | 42 | id: root | ||
43 | 43 | | |||
44 | property bool smallScreen: ((Math.floor(width / units.iconSizes.huge) <= 22) || (Math.floor(height / units.iconSizes.huge) <= 14)) | 44 | property bool smallScreen: ((Math.floor(width / units.iconSizes.huge) <= 22) || (Math.floor(height / units.iconSizes.huge) <= 14)) | ||
45 | 45 | | |||
46 | property int iconSize: smallScreen ? units.iconSizes.large : units.iconSizes.huge | 46 | property int iconSize: smallScreen ? units.iconSizes.large : units.iconSizes.huge | ||
47 | property int cellSize: iconSize + theme.mSize(theme.defaultFont).height | 47 | property int cellSize: iconSize + 2 * theme.mSize(theme.defaultFont).height | ||
48 | + (2 * units.smallSpacing) | 48 | + units.smallSpacing | ||
49 | + (2 * Math.max(highlightItemSvg.margins.top + highlightItemSvg.margins.bottom, | 49 | + Math.max(highlightItemSvg.margins.top + highlightItemSvg.margins.bottom, | ||
50 | highlightItemSvg.margins.left + highlightItemSvg.margins.right)) | 50 | highlightItemSvg.margins.left + highlightItemSvg.margins.right) | ||
51 | property int columns: Math.floor(((smallScreen ? 85 : 80)/100) * Math.ceil(width / cellSize)) | 51 | property int columns: Math.floor(((smallScreen ? 85 : 80)/100) * Math.ceil(width / cellSize)) | ||
52 | property bool searching: (searchField.text != "") | 52 | property bool searching: (searchField.text != "") | ||
53 | property var widgetExplorer: null | 53 | property var widgetExplorer: null | ||
54 | 54 | | |||
55 | keyEventProxy: searchField | 55 | keyEventProxy: searchField | ||
56 | backgroundColor: Qt.rgba(0, 0, 0, 0.737) | 56 | backgroundColor: Qt.rgba(0, 0, 0, 0.737) | ||
57 | 57 | | |||
58 | onKeyEscapePressed: { | 58 | onKeyEscapePressed: { | ||
▲ Show 20 Lines • Show All 1012 Lines • Show Last 20 Lines |