Update look of the profilesPage

CURA-8949
This commit is contained in:
Jaime van Kessel 2022-02-18 15:09:57 +01:00
parent 9df7ccd5cc
commit a458155258
2 changed files with 34 additions and 19 deletions

View file

@ -381,6 +381,7 @@ UM.ManagementPage
anchors anchors
{ {
top: detailsPanelHeaderColumn.bottom top: detailsPanelHeaderColumn.bottom
margins: UM.Theme.getSize("default_margin").height
left: parent.left left: parent.left
right: parent.right right: parent.right
bottom: parent.bottom bottom: parent.bottom

View file

@ -39,22 +39,23 @@ Item
width: Math.max(1, Math.round(tableBase.width / headerRepeater.count)) width: Math.max(1, Math.round(tableBase.width / headerRepeater.count))
height: UM.Theme.getSize("section").height height: UM.Theme.getSize("section").height
color: UM.Theme.getColor("secondary") color: UM.Theme.getColor("main_background")
border.width: UM.Theme.getSize("default_lining").width
border.color: UM.Theme.getColor("thick_lining")
Label UM.Label
{ {
id: contentText id: contentText
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: UM.Theme.getSize("narrow_margin").width anchors.leftMargin: UM.Theme.getSize("default_margin").width
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: UM.Theme.getSize("narrow_margin").width anchors.rightMargin: UM.Theme.getSize("narrow_margin").width
wrapMode: Text.NoWrap
text: modelData text: modelData
font: UM.Theme.getFont("medium_bold") font: UM.Theme.getFont("medium_bold")
color: UM.Theme.getColor("text")
elide: Text.ElideRight elide: Text.ElideRight
} }
Rectangle //Resize handle. Item //Resize handle.
{ {
anchors anchors
{ {
@ -62,9 +63,7 @@ Item
top: parent.top top: parent.top
bottom: parent.bottom bottom: parent.bottom
} }
width: UM.Theme.getSize("thick_lining").width width: UM.Theme.getSize("default_lining").width
color: UM.Theme.getColor("thick_lining")
MouseArea MouseArea
{ {
@ -97,13 +96,24 @@ Item
} }
} }
onWidthChanged: onWidthChanged: tableView.forceLayout(); //Rescale table cells underneath as well.
{
tableView.forceLayout(); //Rescale table cells underneath as well.
}
} }
} }
} }
Rectangle
{
color: UM.Theme.getColor("main_background")
anchors
{
top: headerBar.bottom
topMargin: -UM.Theme.getSize("default_lining").width
left: parent.left
right: parent.right
bottom: parent.bottom
}
border.width: UM.Theme.getSize("default_lining").width
border.color: UM.Theme.getColor("thick_lining")
}
TableView TableView
{ {
@ -114,6 +124,7 @@ Item
left: parent.left left: parent.left
right: parent.right right: parent.right
bottom: parent.bottom bottom: parent.bottom
margins: UM.Theme.getSize("default_lining").width
} }
flickableDirection: Flickable.AutoFlickIfNeeded flickableDirection: Flickable.AutoFlickIfNeeded
@ -128,18 +139,21 @@ Item
{ {
implicitHeight: Math.max(1, cellContent.height) implicitHeight: Math.max(1, cellContent.height)
color: UM.Theme.getColor((tableBase.currentRow == row) ? "primary" : ((row % 2 == 0) ? "main_background" : "viewport_background")) color: UM.Theme.getColor((tableBase.currentRow == row) ? "text_selection" : "main_background")
Label UM.Label
{ {
id: cellContent id: cellContent
width: parent.width anchors
{
left: parent.left
leftMargin: UM.Theme.getSize("default_margin").width
right: parent.right
}
wrapMode: Text.NoWrap
text: display text: display
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight elide: Text.ElideRight
font: UM.Theme.getFont("default")
color: UM.Theme.getColor("text")
} }
TextMetrics TextMetrics
{ {