BackButton.qml added
This commit is contained in:
parent
6516a84986
commit
62262a3572
20 changed files with 35 additions and 173 deletions
|
@ -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>
|
||||||
|
|
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 {
|
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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue