- made delegates fit the overall look and feel of the app
This commit is contained in:
parent
a5ef26277e
commit
b52ff6701e
2 changed files with 4 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
|||
import QtQuick 2.0
|
||||
import QtQuick.Controls 2.2
|
||||
|
||||
ItemDelegate {
|
||||
SmoothItemDelegate {
|
||||
id: control
|
||||
property var status
|
||||
property var connect
|
||||
|
@ -38,9 +38,10 @@ ItemDelegate {
|
|||
id: statusItem
|
||||
anchors {
|
||||
right: parent.right
|
||||
rightMargin: ( height / control.height / 2 ) * height
|
||||
verticalCenter: parent.verticalCenter
|
||||
}
|
||||
height: parent.font.pixelSize
|
||||
height: parent.font.pixelSize * 0.8
|
||||
width: height
|
||||
|
||||
Rectangle {
|
||||
|
|
|
@ -1,19 +1,9 @@
|
|||
import QtQuick 2.0
|
||||
import QtQuick.Controls 2.2
|
||||
|
||||
ItemDelegate {
|
||||
SmoothItemDelegate {
|
||||
id: control
|
||||
text: ""
|
||||
font.pixelSize: options_stack.text_pixelSize
|
||||
property color textColor: appTheme.style.textColor
|
||||
|
||||
contentItem: Text {
|
||||
text: parent.text
|
||||
color: control.textColor
|
||||
font.pixelSize: parent.font.pixelSize
|
||||
}
|
||||
|
||||
width: parent.width
|
||||
|
||||
Image {
|
||||
id: forwardImage
|
||||
|
|
Reference in a new issue