BackButton.qml added

This commit is contained in:
Pokamest Nikak 2021-09-08 15:09:16 +03:00
parent 6516a84986
commit 62262a3572
20 changed files with 35 additions and 173 deletions

View file

@ -103,5 +103,6 @@
<file>ui/qml/Pages/Protocols/PageProtoCloak.qml</file> <file>ui/qml/Pages/Protocols/PageProtoCloak.qml</file>
<file>ui/qml/Pages/Protocols/PageProtoOpenVPN.qml</file> <file>ui/qml/Pages/Protocols/PageProtoOpenVPN.qml</file>
<file>ui/qml/Pages/Protocols/PageProtoShadowSocks.qml</file> <file>ui/qml/Pages/Protocols/PageProtoShadowSocks.qml</file>
<file>ui/qml/Controls/BackButton.qml</file>
</qresource> </qresource>
</RCC> </RCC>

View file

@ -0,0 +1,10 @@
ImageButtonType {
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
onClicked: {
UiLogic.closePage()
}
}

View file

@ -6,16 +6,8 @@ import "../Config"
PageBase { PageBase {
id: root id: root
ImageButtonType { BackButton {
id: back id: back
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
onClicked: {
UiLogic.closePage()
}
} }
Text { Text {
font.family: "Lato" font.family: "Lato"

View file

@ -7,16 +7,8 @@ import "../Config"
Item { Item {
id: root id: root
ImageButtonType { BackButton {
id: back id: back
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
onClicked: {
UiLogic.closePage()
}
} }
Rectangle { Rectangle {
y: 40 y: 40

View file

@ -6,16 +6,8 @@ import "../Config"
Item { Item {
id: root id: root
ImageButtonType { BackButton {
id: back id: back
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
onClicked: {
UiLogic.closePage()
}
} }
Text { Text {
font.family: "Lato" font.family: "Lato"

View file

@ -7,6 +7,9 @@ import "../Config"
Item { Item {
id: root id: root
BackButton {
id: back_from_new_server
}
Text { Text {
font.family: "Lato" font.family: "Lato"
font.styleName: "normal" font.styleName: "normal"
@ -68,16 +71,4 @@ Item {
y: GC.trY(590) y: GC.trY(590)
source: "qrc:/images/AmneziaVPN.png" 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()
}
}
} }

View file

@ -6,16 +6,8 @@ import "../Config"
Item { Item {
id: root id: root
ImageButtonType { BackButton {
id: back id: back
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
onClicked: {
UiLogic.closePage()
}
} }
Text { Text {
font.family: "Lato" font.family: "Lato"

View file

@ -7,16 +7,8 @@ import "../Config"
Item { Item {
id: root id: root
enabled: ServerContainersLogic.pageEnabled enabled: ServerContainersLogic.pageEnabled
ImageButtonType { BackButton {
id: back id: back
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
onClicked: {
UiLogic.closePage()
}
} }
Text { Text {
font.family: "Lato" font.family: "Lato"

View file

@ -8,16 +8,8 @@ import "../Config"
Item { Item {
id: root id: root
ImageButtonType { BackButton {
id: back id: back
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
onClicked: {
UiLogic.closePage()
}
} }
Text { Text {
font.family: "Lato" font.family: "Lato"

View file

@ -9,16 +9,8 @@ Item {
id: root id: root
enabled: ServerSettingsLogic.pageEnabled enabled: ServerSettingsLogic.pageEnabled
ImageButtonType { BackButton {
id: back id: back
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
onClicked: {
UiLogic.closePage()
}
} }
Text { Text {
font.family: "Lato" font.family: "Lato"

View file

@ -7,16 +7,8 @@ import "../Config"
Item { Item {
id: root id: root
ImageButtonType { BackButton {
id: back_from_setup_wizard id: back_from_setup_wizard
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
onClicked: {
UiLogic.closePage()
}
} }
Text { Text {
font.family: "Lato" font.family: "Lato"

View file

@ -7,16 +7,8 @@ import "../Config"
Item { Item {
id: root id: root
ImageButtonType { BackButton {
id: back_from_setup_wizard id: back_from_setup_wizard
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
onClicked: {
UiLogic.closePage()
}
} }
Text { Text {
font.family: "Lato" font.family: "Lato"

View file

@ -6,16 +6,8 @@ import "../Config"
Item { Item {
id: root id: root
ImageButtonType { BackButton {
id: back_from_setup_wizard id: back_from_setup_wizard
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
onClicked: {
UiLogic.closePage()
}
} }
Text { Text {
font.family: "Lato" font.family: "Lato"

View file

@ -6,16 +6,8 @@ import "../Config"
Item { Item {
id: root id: root
ImageButtonType { BackButton {
id: back_from_setup_wizard id: back_from_setup_wizard
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
onClicked: {
UiLogic.closePage()
}
} }
Text { Text {
font.family: "Lato" font.family: "Lato"

View file

@ -6,18 +6,9 @@ import "../Config"
Item { Item {
id: root id: root
ImageButtonType { BackButton {
id: back id: back
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
onClicked: {
UiLogic.closePage()
}
} }
ScrollView { ScrollView {
x: 10 x: 10
y: 40 y: 40

View file

@ -8,6 +8,9 @@ import "../Config"
Item { Item {
id: root id: root
BackButton {
id: back
}
Text { Text {
font.family: "Lato" font.family: "Lato"
font.styleName: "normal" font.styleName: "normal"
@ -48,17 +51,6 @@ Item {
SitesLogic.onPushButtonAddCustomSitesClicked() SitesLogic.onPushButtonAddCustomSitesClicked()
} }
} }
ImageButtonType {
id: back
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
onClicked: {
UiLogic.closePage()
}
}
BlueButtonType { BlueButtonType {
id: sites_add id: sites_add
x: 260 x: 260

View file

@ -6,6 +6,9 @@ import "../Config"
Item { Item {
id: root id: root
BackButton {
id: back_from_start
}
Image { Image {
anchors.horizontalCenter: root.horizontalCenter anchors.horizontalCenter: root.horizontalCenter
width: GC.trW(150) width: GC.trW(150)
@ -292,18 +295,4 @@ Item {
visible: false 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()
}
}
} }

View file

@ -7,16 +7,8 @@ import "../../Config"
Item { Item {
id: root id: root
enabled: CloakLogic.pageProtoCloakEnabled enabled: CloakLogic.pageProtoCloakEnabled
ImageButtonType { BackButton {
id: back id: back
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
onClicked: {
UiLogic.closePage()
}
} }
Item { Item {
x: 0 x: 0

View file

@ -7,16 +7,8 @@ import "../../Config"
Item { Item {
id: root id: root
enabled: OpenVpnLogic.pageProtoOpenVpnEnabled enabled: OpenVpnLogic.pageProtoOpenVpnEnabled
ImageButtonType { BackButton {
id: back id: back
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
onClicked: {
UiLogic.closePage()
}
} }
Item { Item {
x: 0 x: 0

View file

@ -7,16 +7,8 @@ import "../../Config"
Item { Item {
id: root id: root
enabled: ShadowSocksLogic.pageProtoShadowSocksEnabled enabled: ShadowSocksLogic.pageProtoShadowSocksEnabled
ImageButtonType { BackButton {
id: back id: back
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
onClicked: {
UiLogic.closePage()
}
} }
Item { Item {
x: 0 x: 0