added saving the selected server and protocol to the config

This commit is contained in:
vladimir.kuznetsov 2023-05-12 11:36:09 +08:00
parent b66f4bf2be
commit e3e7503a7c
6 changed files with 160 additions and 97 deletions

View file

@ -17,6 +17,7 @@ Item {
property string buttonImage: "qrc:/images/controls/chevron-down.svg"
property string buttonImageColor: "#494B50"
property int buttonMaximumWidth
property string defaultColor: "#1C1D21"
@ -70,8 +71,13 @@ Item {
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
Layout.maximumWidth: buttonMaximumWidth ? buttonMaximumWidth : implicitWidth
color: root.textColor
text: root.text
wrapMode: Text.NoWrap
elide: Text.ElideRight
}
}