- made delegates fit the overall look and feel of the app

This commit is contained in:
Dorian Zedler 2019-03-27 22:25:23 +01:00
parent a5ef26277e
commit b52ff6701e
2 changed files with 4 additions and 13 deletions

View file

@ -1,7 +1,7 @@
import QtQuick 2.0 import QtQuick 2.0
import QtQuick.Controls 2.2 import QtQuick.Controls 2.2
ItemDelegate { SmoothItemDelegate {
id: control id: control
property var status property var status
property var connect property var connect
@ -38,9 +38,10 @@ ItemDelegate {
id: statusItem id: statusItem
anchors { anchors {
right: parent.right right: parent.right
rightMargin: ( height / control.height / 2 ) * height
verticalCenter: parent.verticalCenter verticalCenter: parent.verticalCenter
} }
height: parent.font.pixelSize height: parent.font.pixelSize * 0.8
width: height width: height
Rectangle { Rectangle {

View file

@ -1,19 +1,9 @@
import QtQuick 2.0 import QtQuick 2.0
import QtQuick.Controls 2.2 import QtQuick.Controls 2.2
ItemDelegate { SmoothItemDelegate {
id: control id: control
text: "" 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 { Image {
id: forwardImage id: forwardImage