mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-21 20:19:32 +08:00
Basis of header line
I think the icon on the button is too small, but that's not currently configurable. Will have to look into that. Contributes to issue CURA-8565.
This commit is contained in:
parent
a715274ca7
commit
0d05e71f9d
@ -3,8 +3,45 @@
|
||||
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Controls 2.15
|
||||
import QtQuick.Layouts 1.3
|
||||
|
||||
Label
|
||||
import Cura 1.0 as Cura
|
||||
import UM 1.0 as UM
|
||||
|
||||
Item
|
||||
{
|
||||
text: "Test!"
|
||||
Column
|
||||
{
|
||||
anchors.fill: parent
|
||||
anchors.margins: UM.Theme.getSize("default_margin").width
|
||||
|
||||
RowLayout
|
||||
{
|
||||
spacing: UM.Theme.getSize("default_margin").width
|
||||
|
||||
Cura.SecondaryButton
|
||||
{
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
Layout.preferredHeight: UM.Theme.getSize("action_button").height
|
||||
Layout.preferredWidth: height
|
||||
|
||||
onClicked: contextStack.pop() //Remove this page, returning to the main package list or whichever thing is beneath it.
|
||||
|
||||
tooltip: catalog.i18nc("@button:tooltip", "Back")
|
||||
toolTipContentAlignment: Cura.ToolTip.ContentAlignment.AlignRight
|
||||
iconSource: UM.Theme.getIcon("ArrowLeft")
|
||||
leftPadding: UM.Theme.getSize("narrow_margin").width
|
||||
rightPadding: leftPadding
|
||||
}
|
||||
|
||||
Label
|
||||
{
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
|
||||
text: "Install Plug-ins" //TODO: Depend on package type, and translate.
|
||||
font: UM.Theme.getFont("large")
|
||||
color: UM.Theme.getColor("text")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user