Merge branch 'dev' into feature/amnezia-wireguard-client-impl

This commit is contained in:
pokamest 2023-10-11 19:40:40 +01:00
commit ce9a23e021
3 changed files with 13 additions and 5 deletions

View file

@ -5,6 +5,8 @@ import QtQuick.Shapes
Popup {
id: root
property alias buttonWidth: button.implicitWidth
modal: false
closePolicy: Popup.NoAutoClose
padding: 4
@ -20,6 +22,8 @@ Popup {
}
ImageButtonType {
id: button
image: "qrc:/images/svg/close_black_24dp.svg"
imageColor: "#D7D8DB"

View file

@ -136,6 +136,11 @@ PageType {
ServersModel.currentlyProcessedIndex = ServersModel.defaultIndex
tabBarStackView.push(pagePath, { "objectName" : pagePath })
}
onWidthChanged: {
topCloseButton.x = tabBarStackView.x + tabBarStackView.width -
topCloseButton.buttonWidth - topCloseButton.rightPadding
}
}
TabBar {
@ -231,7 +236,7 @@ PageType {
TopCloseButtonType {
id: topCloseButton
x: tabBarStackView.width - topCloseButton.width
x: tabBarStackView.width - topCloseButton.buttonWidth - topCloseButton.rightPadding
z: 1
}