Simplify clipboard preview divider
This commit is contained in:
@@ -448,17 +448,21 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Item {
|
||||||
width: parent.width / 2 - root.contentSpacing / 2
|
width: parent.width / 2 - root.contentSpacing / 2
|
||||||
height: parent.height
|
height: parent.height
|
||||||
radius: root.cornerRadius
|
|
||||||
color: Util.alpha(root.background, 0.5)
|
|
||||||
border.color: Util.alpha(root.border, 0.1)
|
|
||||||
border.width: Style.normalBorderWidth
|
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
property var activeRow: displayModel.count > 0 && root.selectedIndex >= 0 && root.selectedIndex < displayModel.count ? displayModel.get(root.selectedIndex) : null
|
property var activeRow: displayModel.count > 0 && root.selectedIndex >= 0 && root.selectedIndex < displayModel.count ? displayModel.get(root.selectedIndex) : null
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
width: Style.normalBorderWidth
|
||||||
|
color: Util.alpha(root.border, 0.28)
|
||||||
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
visible: parent.activeRow && parent.activeRow.entryType === "text"
|
visible: parent.activeRow && parent.activeRow.entryType === "text"
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@@ -478,6 +482,7 @@ Item {
|
|||||||
anchors.margins: Style.space(16)
|
anchors.margins: Style.space(16)
|
||||||
source: parent.activeRow ? parent.activeRow.previewImage : ""
|
source: parent.activeRow ? parent.activeRow.previewImage : ""
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
|
verticalAlignment: Image.AlignTop
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
smooth: true
|
smooth: true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user