mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-05 03:34:00 +08:00
Make header of detail page depend on header of origin
It's the same as the list of packages you came from, now. Contributes to issue CURA-8565.
This commit is contained in:
parent
2b419a2379
commit
02d74b4226
@ -12,6 +12,7 @@ Item
|
||||
{
|
||||
id: detailPage
|
||||
property var packageData: packages.selectedPackage
|
||||
property string title: catalog.i18nc("@header", "Package details")
|
||||
|
||||
RowLayout
|
||||
{
|
||||
@ -49,7 +50,7 @@ Item
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
Layout.fillWidth: true
|
||||
|
||||
text: "Install Plug-ins" //TODO: Depend on package type, and translate.
|
||||
text: detailPage.title
|
||||
font: UM.Theme.getFont("large")
|
||||
color: UM.Theme.getColor("text")
|
||||
}
|
||||
|
@ -19,8 +19,6 @@ ListView
|
||||
Component.onCompleted: model.updatePackages()
|
||||
Component.onDestruction: model.abortUpdating()
|
||||
|
||||
//ScrollBar.vertical.policy: ScrollBar.AlwaysOff
|
||||
|
||||
spacing: UM.Theme.getSize("default_margin").height
|
||||
|
||||
section.property: "package.sectionTitle"
|
||||
@ -88,6 +86,7 @@ ListView
|
||||
PackageDetails
|
||||
{
|
||||
packageData: packages.selectedPackage
|
||||
title: packages.pageTitle
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user