BackButton.qml added
This commit is contained in:
parent
6516a84986
commit
62262a3572
20 changed files with 35 additions and 173 deletions
10
client/ui/qml/Controls/BackButton.qml
Normal file
10
client/ui/qml/Controls/BackButton.qml
Normal file
|
@ -0,0 +1,10 @@
|
|||
ImageButtonType {
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
|
@ -6,16 +6,8 @@ import "../Config"
|
|||
|
||||
PageBase {
|
||||
id: root
|
||||
ImageButtonType {
|
||||
BackButton {
|
||||
id: back
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
Text {
|
||||
font.family: "Lato"
|
||||
|
|
|
@ -7,16 +7,8 @@ import "../Config"
|
|||
|
||||
Item {
|
||||
id: root
|
||||
ImageButtonType {
|
||||
BackButton {
|
||||
id: back
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
Rectangle {
|
||||
y: 40
|
||||
|
|
|
@ -6,16 +6,8 @@ import "../Config"
|
|||
|
||||
Item {
|
||||
id: root
|
||||
ImageButtonType {
|
||||
BackButton {
|
||||
id: back
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
Text {
|
||||
font.family: "Lato"
|
||||
|
|
|
@ -7,6 +7,9 @@ import "../Config"
|
|||
|
||||
Item {
|
||||
id: root
|
||||
BackButton {
|
||||
id: back_from_new_server
|
||||
}
|
||||
Text {
|
||||
font.family: "Lato"
|
||||
font.styleName: "normal"
|
||||
|
@ -68,16 +71,4 @@ Item {
|
|||
y: GC.trY(590)
|
||||
source: "qrc:/images/AmneziaVPN.png"
|
||||
}
|
||||
ImageButtonType {
|
||||
id: back_from_new_server
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -6,16 +6,8 @@ import "../Config"
|
|||
|
||||
Item {
|
||||
id: root
|
||||
ImageButtonType {
|
||||
BackButton {
|
||||
id: back
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
Text {
|
||||
font.family: "Lato"
|
||||
|
|
|
@ -7,16 +7,8 @@ import "../Config"
|
|||
Item {
|
||||
id: root
|
||||
enabled: ServerContainersLogic.pageEnabled
|
||||
ImageButtonType {
|
||||
BackButton {
|
||||
id: back
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
Text {
|
||||
font.family: "Lato"
|
||||
|
|
|
@ -8,16 +8,8 @@ import "../Config"
|
|||
|
||||
Item {
|
||||
id: root
|
||||
ImageButtonType {
|
||||
BackButton {
|
||||
id: back
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
Text {
|
||||
font.family: "Lato"
|
||||
|
|
|
@ -9,16 +9,8 @@ Item {
|
|||
id: root
|
||||
enabled: ServerSettingsLogic.pageEnabled
|
||||
|
||||
ImageButtonType {
|
||||
BackButton {
|
||||
id: back
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
Text {
|
||||
font.family: "Lato"
|
||||
|
|
|
@ -7,16 +7,8 @@ import "../Config"
|
|||
|
||||
Item {
|
||||
id: root
|
||||
ImageButtonType {
|
||||
BackButton {
|
||||
id: back_from_setup_wizard
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
Text {
|
||||
font.family: "Lato"
|
||||
|
|
|
@ -7,16 +7,8 @@ import "../Config"
|
|||
|
||||
Item {
|
||||
id: root
|
||||
ImageButtonType {
|
||||
BackButton {
|
||||
id: back_from_setup_wizard
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
Text {
|
||||
font.family: "Lato"
|
||||
|
|
|
@ -6,16 +6,8 @@ import "../Config"
|
|||
|
||||
Item {
|
||||
id: root
|
||||
ImageButtonType {
|
||||
BackButton {
|
||||
id: back_from_setup_wizard
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
Text {
|
||||
font.family: "Lato"
|
||||
|
|
|
@ -6,16 +6,8 @@ import "../Config"
|
|||
|
||||
Item {
|
||||
id: root
|
||||
ImageButtonType {
|
||||
BackButton {
|
||||
id: back_from_setup_wizard
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
Text {
|
||||
font.family: "Lato"
|
||||
|
|
|
@ -6,18 +6,9 @@ import "../Config"
|
|||
|
||||
Item {
|
||||
id: root
|
||||
ImageButtonType {
|
||||
BackButton {
|
||||
id: back
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
|
||||
ScrollView {
|
||||
x: 10
|
||||
y: 40
|
||||
|
|
|
@ -8,6 +8,9 @@ import "../Config"
|
|||
|
||||
Item {
|
||||
id: root
|
||||
BackButton {
|
||||
id: back
|
||||
}
|
||||
Text {
|
||||
font.family: "Lato"
|
||||
font.styleName: "normal"
|
||||
|
@ -48,17 +51,6 @@ Item {
|
|||
SitesLogic.onPushButtonAddCustomSitesClicked()
|
||||
}
|
||||
}
|
||||
ImageButtonType {
|
||||
id: back
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
BlueButtonType {
|
||||
id: sites_add
|
||||
x: 260
|
||||
|
|
|
@ -6,6 +6,9 @@ import "../Config"
|
|||
|
||||
Item {
|
||||
id: root
|
||||
BackButton {
|
||||
id: back_from_start
|
||||
}
|
||||
Image {
|
||||
anchors.horizontalCenter: root.horizontalCenter
|
||||
width: GC.trW(150)
|
||||
|
@ -292,18 +295,4 @@ Item {
|
|||
visible: false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ImageButtonType {
|
||||
id: back_from_start
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
visible: StartPageLogic.pushButtonBackFromStartVisible
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,16 +7,8 @@ import "../../Config"
|
|||
Item {
|
||||
id: root
|
||||
enabled: CloakLogic.pageProtoCloakEnabled
|
||||
ImageButtonType {
|
||||
BackButton {
|
||||
id: back
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
Item {
|
||||
x: 0
|
||||
|
|
|
@ -7,16 +7,8 @@ import "../../Config"
|
|||
Item {
|
||||
id: root
|
||||
enabled: OpenVpnLogic.pageProtoOpenVpnEnabled
|
||||
ImageButtonType {
|
||||
BackButton {
|
||||
id: back
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
Item {
|
||||
x: 0
|
||||
|
|
|
@ -7,16 +7,8 @@ import "../../Config"
|
|||
Item {
|
||||
id: root
|
||||
enabled: ShadowSocksLogic.pageProtoShadowSocksEnabled
|
||||
ImageButtonType {
|
||||
BackButton {
|
||||
id: back
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
Item {
|
||||
x: 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue