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

@ -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 {
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"

View file

@ -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

View file

@ -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"

View file

@ -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()
}
}
}

View file

@ -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"

View file

@ -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"

View file

@ -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"

View file

@ -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"

View file

@ -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"

View file

@ -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"

View file

@ -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"

View file

@ -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"

View file

@ -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

View file

@ -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

View file

@ -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()
}
}
}

View file

@ -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

View file

@ -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

View file

@ -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