Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/ApplicationPage.qml
Show All 36 Lines | 31 | DiscoverPage { | |||
---|---|---|---|---|---|
37 | 37 | | |||
38 | background: Rectangle { color: Kirigami.Theme.viewBackgroundColor } | 38 | background: Rectangle { color: Kirigami.Theme.viewBackgroundColor } | ||
39 | 39 | | |||
40 | ReviewsPage { | 40 | ReviewsPage { | ||
41 | id: reviewsSheet | 41 | id: reviewsSheet | ||
42 | model: reviewsModel | 42 | model: reviewsModel | ||
43 | } | 43 | } | ||
44 | 44 | | |||
45 | bottomPadding: 100 | ||||
45 | pageOverlay: Item { | 46 | pageOverlay: Item { | ||
46 | InstallApplicationButton { | 47 | Rectangle { | ||
47 | id: button | 48 | Kirigami.Separator { | ||
48 | anchors { | 49 | anchors { | ||
50 | left: parent.left | ||||
51 | right: parent.right | ||||
52 | top: parent.top | ||||
53 | } | ||||
54 | } | ||||
55 | | ||||
56 | color: Kirigami.Theme.viewBackgroundColor | ||||
57 | anchors.fill: layo | ||||
58 | } | ||||
59 | RowLayout { | ||||
60 | id: layo | ||||
61 | anchors { | ||||
62 | left: parent.left | ||||
49 | right: parent.right | 63 | right: parent.right | ||
50 | bottom: parent.bottom | 64 | bottom: parent.bottom | ||
51 | bottomMargin: Kirigami.Units.gridUnit | 65 | } | ||
52 | rightMargin: appInfo.width - appInfo.flickable.width | 66 | ToolButton { | ||
67 | iconName: "draw-arrow-back" | ||||
68 | onClicked: appInfo.shortcutPrevious.activated() | ||||
69 | } | ||||
70 | Label { | ||||
71 | text: i18n("Back") | ||||
72 | } | ||||
73 | | ||||
74 | Item { | ||||
75 | Layout.fillWidth: true | ||||
53 | } | 76 | } | ||
54 | 77 | | |||
78 | InstallApplicationButton { | ||||
79 | id: button | ||||
80 | | ||||
55 | Layout.alignment: Qt.AlignRight | 81 | Layout.alignment: Qt.AlignRight | ||
56 | application: appInfo.application | 82 | application: appInfo.application | ||
57 | fill: true | 83 | fill: true | ||
58 | additionalItem: Button { | 84 | additionalItem: Button { | ||
59 | Layout.fillWidth: true | 85 | Layout.fillWidth: true | ||
60 | visible: application.isInstalled && application.canExecute | 86 | visible: application.isInstalled && application.canExecute | ||
61 | text: i18n("Launch") | 87 | text: i18n("Launch") | ||
62 | onClicked: application.invokeApplication() | 88 | onClicked: application.invokeApplication() | ||
63 | } | 89 | } | ||
64 | } | 90 | } | ||
65 | | ||||
66 | DropShadow { | | |||
67 | anchors.fill: button | | |||
68 | source: button | | |||
69 | horizontalOffset: 3 | | |||
70 | verticalOffset: 3 | | |||
71 | radius: 8 | | |||
72 | samples: 10 | | |||
73 | color: "#000000" | | |||
74 | } | 91 | } | ||
75 | } | 92 | } | ||
76 | 93 | | |||
77 | ColumnLayout { | 94 | ColumnLayout { | ||
78 | RowLayout { | 95 | RowLayout { | ||
79 | Layout.fillWidth: true | 96 | Layout.fillWidth: true | ||
80 | spacing: Kirigami.Units.gridUnit | 97 | spacing: Kirigami.Units.gridUnit | ||
81 | QIconItem { | 98 | QIconItem { | ||
▲ Show 20 Lines • Show All 127 Lines • Show Last 20 Lines |