chore: minor ui fixes

This commit is contained in:
vladimir.kuznetsov 2025-04-16 14:05:07 +08:00
parent fa6323e8c9
commit 7b44a7015e
3 changed files with 8 additions and 4 deletions

View file

@ -14,7 +14,7 @@ TextField {
property string defaultBackgroundColor: Style.color.white property string defaultBackgroundColor: Style.color.white
property string defaultBorderColor: Style.color.gray3 property string defaultBorderColor: Style.color.gray3
property string defaultTextColor: Style.color.gray6 property string defaultTextColor: Style.color.black
property string hoveredBackgroundColor: Style.color.white property string hoveredBackgroundColor: Style.color.white
property string hoveredBorderColor: Style.color.gray6 property string hoveredBorderColor: Style.color.gray6
@ -44,6 +44,7 @@ TextField {
selectionColor: Style.color.accent1 selectionColor: Style.color.accent1
selectedTextColor: Style.color.white selectedTextColor: Style.color.white
placeholderTextColor: Style.color.gray6
font.pixelSize: 17 font.pixelSize: 17
font.weight: 400 font.weight: 400

View file

@ -85,9 +85,7 @@ Page {
Layout.topMargin: 10 Layout.topMargin: 10
Layout.preferredWidth: defaultServerDropDown.width Layout.preferredWidth: defaultServerDropDown.width
visible: ServersModel.isDefaultServerFromApi && visible: ServersModel.defaultServerImagePathCollapsed !== ""
ServersModel.defaultServerDescriptionCollapsed !== "" &&
ServersModel.defaultServerDescriptionCollapsed !== ServersModel.defaultServerName
text: ServersModel.defaultServerDescriptionCollapsed text: ServersModel.defaultServerDescriptionCollapsed
@ -96,6 +94,7 @@ Page {
PageController.showNotificationMessage(qsTr("Unable change server location while there is an active connection")) PageController.showNotificationMessage(qsTr("Unable change server location while there is an active connection"))
return return
} }
ServersModel.setProcessedServerIndex(ServersModel.defaultIndex)
PageController.goToPage(PageEnum.PageCountrySelector) PageController.goToPage(PageEnum.PageCountrySelector)
} }
} }

View file

@ -65,6 +65,8 @@ Page {
} }
XSmallTextType { XSmallTextType {
visible: false
Layout.leftMargin: 16 Layout.leftMargin: 16
Layout.rightMargin: 16 Layout.rightMargin: 16
Layout.bottomMargin: 8 Layout.bottomMargin: 8
@ -74,6 +76,8 @@ Page {
} }
InputType { InputType {
visible: false
id: textKey id: textKey
Layout.leftMargin: 16 Layout.leftMargin: 16