@ -122,66 +122,6 @@ Page {
currentFolder: walletPathField . text
folder: ( isWindows ) ? StandardPaths . writableLocation ( StandardPaths . DocumentsLocation ) + "/neroshop" : StandardPaths . writableLocation ( StandardPaths . HomeLocation ) + "/neroshop"
}
/ / / / / / / / / / / / / / / / / / / / / / / / / / /
/* Button { / / must be used in conjunction with a TabBar according to: https: / / d o c . q t . i o / q t - 5 / q m l - q t q u i c k - c o n t r o l s 2 - t a b b u t t o n . h t m l
text: qsTr ( "Register" )
width: implicitWidth
onClicked: mainPageStack . currentIndex = 0
background: Rectangle {
color: buttonsBar . buttonColor / / " # 0 0 a e b f "
}
}
Button {
id: login_button / / a u t h _ w a l l e t f i l e _ b u t t o n
text: qsTr ( "Login with Wallet file" )
width: implicitWidth
onClicked: mainPageStack . currentIndex = 1
contentItem: Text {
/ / f o n t . f a m i l y : " C o n s o l a s " ;
/ / f o n t . p o i n t S i z e : 1 0 ;
/ / f o n t . b o l d : t r u e
text: login_button . text
color: "#ffffff" / / w h i t e t e x t
}
background: Rectangle {
color: buttonsBar . buttonColor / /NeroshopComponents.Style.moneroOrangeColor/ / "#ff6600" / / p a r e n t . d o w n ? " # b b b b b b " :
/ / ( p a r e n t . h o v e r e d ? " # d 6 d 6 d 6 " : " # f 6 f 6 f 6 " )
radius: 0
/ / b o r d e r . c o l o r : l o g i n _ b u t t o n . h o v e r e d ? " # f f f f f f " : t h i s . c o l o r / / " # f f f f f f " / / c o n t r o l . d o w n ? " # 1 7 a 8 1 a " : " # 2 1 b e 2 b "
}
}
Button {
text: qsTr ( "Login with Seed (Mnemonic)" )
width: implicitWidth
onClicked: mainPageStack . currentIndex = 2
background: Rectangle {
color: buttonsBar . buttonColor / / N e r o s h o p C o m p o n e n t s . S t y l e . m o n e r o G r a y C o l o r
}
}
Button {
text: qsTr ( "Login with Keys" )
width: implicitWidth
onClicked: mainPageStack . currentIndex = 3
background: Rectangle {
color: buttonsBar . buttonColor / / " # 4 0 2 e f 7 "
}
}
Button {
text: qsTr ( "Login with Hardware wallet" )
width: implicitWidth
/ / o n C l i c k e d : m a i n P a g e S t a c k . c u r r e n t I n d e x = 4
background: Rectangle {
color: buttonsBar . buttonColor / / " r e d "
}
} * /
/ / / / / / / / / / / / / / / / / / / / / / / / / / /
StackLayout { / / P e r f e c t f o r a s t a c k o f i t e m s w h e r e o n l y o n e i t e m i s v i s i b l e a t a t i m e / / C o l u m n L a y o u t { / / F r o m t o p t o b o t t o m
id: mainPageStack / / a u t h _ m e n u i n s i d e h o m e m e n u
@ -207,6 +147,7 @@ Page {
anchors.rightMargin: 20
implicitWidth: 60 ; height: implicitWidth
text: qsTr ( FontAwesome . angleRight )
hoverEnabled: true
background: Rectangle {
color: "#121212" / /"#6b5b95"/ /
@ -273,6 +214,7 @@ Page {
/ / d i s p l a y : A b s t r a c t B u t t o n . I c o n O n l y / / A b s t r a c t B u t t o n . T e x t B e s i d e I c o n / / A b s t r a c t B u t t o n . T e x t O n l y / / A b s t r a c t B u t t o n . T e x t U n d e r I c o n
/ / i c o n . s o u r c e : " f i l e : / / / " + n e r o s h o p R e s o u r c e s D i r + " / e l l i p s i s . p n g " / / " / u p l o a d . p n g "
/ / i c o n . c o l o r : " # f f f f f f "
hoverEnabled: true
onClicked: walletFileDialog . open ( )
background: Rectangle {
@ -331,6 +273,7 @@ Page {
icon.source: "file:///" + neroshopResourcesDir + "/file.png" / / k e y s ( k e y . p n g ) , s e e d ( s p r o u t . p n g ) , f i l e , h a r d w a r e
/ / i c o n . c o l o r : " # f f f f f f "
display: AbstractButton . IconOnly / /hovered ? AbstractButton.TextBesideIcon : AbstractButton.IconOnly/ / AbstractButton . TextUnderIcon
hoverEnabled: true
background: Rectangle {
color: ( parent . checked ) ? "#39304f" : "#6b5b95"
/ / b o r d e r . c o l o r :
@ -356,6 +299,7 @@ Page {
icon.source: "file:///" + neroshopResourcesDir + "/sprout.png" / / k e y s ( k e y . p n g ) , s e e d ( s p r o u t . p n g ) , f i l e , h a r d w a r e
/ / i c o n . c o l o r : " # f f f f f f "
display: AbstractButton . IconOnly / /hovered ? AbstractButton.TextBesideIcon : AbstractButton.IconOnly/ / AbstractButton . TextUnderIcon
hoverEnabled: true
background: Rectangle {
color: ( parent . checked ) ? "#39304f" : "#6b5b95"
/ / b o r d e r . c o l o r :
@ -373,6 +317,7 @@ Page {
icon.source: "file:///" + neroshopResourcesDir + "/key.png" / / k e y s ( k e y . p n g ) , s e e d ( s p r o u t . p n g ) , f i l e , h a r d w a r e
/ / i c o n . c o l o r : " # f f f f f f "
display: AbstractButton . IconOnly / /hovered ? AbstractButton.TextBesideIcon : AbstractButton.IconOnly/ / AbstractButton . TextUnderIcon
hoverEnabled: true
background: Rectangle {
color: ( parent . checked ) ? "#39304f" : "#6b5b95"
/ / b o r d e r . c o l o r :
@ -390,6 +335,7 @@ Page {
icon.source: "file:///" + neroshopResourcesDir + "/usb.png" / / k e y s ( k e y . p n g ) , s e e d ( s p r o u t . p n g ) , f i l e , h a r d w a r e
/ / i c o n . c o l o r : " # f f f f f f "
display: AbstractButton . IconOnly / /hovered ? AbstractButton.TextBesideIcon : AbstractButton.IconOnly/ / AbstractButton . TextUnderIcon
hoverEnabled: true
background: Rectangle {
color: ( parent . checked ) ? "#39304f" : "#6b5b95"
/ / b o r d e r . c o l o r :
@ -528,6 +474,7 @@ Page {
anchors.leftMargin: 20
implicitWidth: 60 ; height: implicitWidth
text: qsTr ( FontAwesome . angleLeft )
hoverEnabled: true
visible: ( walletSeedRepeater . model == null )
background: Rectangle {
@ -559,6 +506,7 @@ Page {
anchors.rightMargin: 20
implicitWidth: 60 ; height: implicitWidth
text: qsTr ( FontAwesome . angleRight )
hoverEnabled: true
visible: ( walletSeedRepeater . model != null )
background: Rectangle {
@ -660,6 +608,7 @@ Page {
implicitWidth: 24 ; implicitHeight: 24
checkable: true
checked: true / / f a l s e
hoverEnabled: true
/ / c h e c k e d = s h o w , u n c h e c k e d = h i d e . P a s s w o r d s a r e h i d d e n b y d e f a u l t
background: Rectangle {
color: "transparent"
@ -753,7 +702,8 @@ Page {
text: qsTr ( "Change" )
/ / d i s p l a y : A b s t r a c t B u t t o n . I c o n O n l y / / A b s t r a c t B u t t o n . T e x t B e s i d e I c o n / / A b s t r a c t B u t t o n . T e x t O n l y
/ / i c o n . s o u r c e : " f i l e : / / / " + n e r o s h o p R e s o u r c e s D i r + " / c h a n g e . p n g "
/ / i c o n . c o l o r : " # f f f f f f "
/ / i c o n . c o l o r : " # f f f f f f "
hoverEnabled: true
onClicked: walletFolderDialog . open ( )
background: Rectangle {
@ -781,7 +731,8 @@ Page {
Layout.topMargin: 10 / / 2 0
Layout.preferredWidth: ( walletPathChangeButton . width * 3 ) - parent . spacing / / 1 5 0
Layout.preferredHeight: 50
text: qsTr ( "Generate" ) / / ( " G e n e r a t e K e y s " )
text: qsTr ( "Generate" ) / / ( " G e n e r a t e K e y s " )
hoverEnabled: true
onClicked: generateWalletKeys ( )
contentItem: Text {
@ -914,6 +865,7 @@ Page {
icon.source: "file:///" + neroshopResourcesDir + "/copy.png"
icon.color: "#ffffff"
display: AbstractButton . IconOnly / /AbstractButton.TextBesideIcon/ / AbstractButton . TextOnly / / A b s t r a c t B u t t o n . T e x t U n d e r I c o n
hoverEnabled: true
onClicked: Wallet . copyMnemonicToClipboard ( ) / / / / c o p y T o C l i p b o a r d ( )
background: Rectangle {
@ -939,6 +891,7 @@ Page {
anchors.leftMargin: 20
implicitWidth: 60 ; height: implicitWidth
text: qsTr ( FontAwesome . angleLeft )
hoverEnabled: true
background: Rectangle {
color: "#121212" / /"#6b5b95"/ /
@ -994,6 +947,7 @@ Page {
Layout.preferredHeight: 50
Layout.topMargin: 15
text: qsTr ( "Register" )
hoverEnabled: true
onClicked: registerWallet ( )
background: Rectangle {
color: "#6b5b95"