diff --git a/go.mod b/go.mod
index 8964e3a8..42000d2f 100644
--- a/go.mod
+++ b/go.mod
@@ -3,7 +3,7 @@ module cwtch.im/ui
go 1.12
require (
- cwtch.im/cwtch v0.4.5
+ cwtch.im/cwtch v0.4.6
git.openprivacy.ca/openprivacy/connectivity v1.3.1
git.openprivacy.ca/openprivacy/log v1.0.1
github.com/c-bata/go-prompt v0.2.3 // indirect
@@ -20,4 +20,4 @@ require (
golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect
golang.org/x/net v0.0.0-20201022231255-08b38378de70 // indirect
golang.org/x/sys v0.0.0-20201022201747-fb209a7c41cd // indirect
-)
\ No newline at end of file
+)
diff --git a/go.sum b/go.sum
index 83fc3264..40e915e9 100644
--- a/go.sum
+++ b/go.sum
@@ -9,6 +9,8 @@ cwtch.im/cwtch v0.4.4 h1:LC9SngDx+iLXFiDK8GUkSxaWqloXQcPijvMPmwt9h80=
cwtch.im/cwtch v0.4.4/go.mod h1:10gBkMSqAH95Pz4jTx5mpIHE+dkn+4kRC4BFTxWuQK8=
cwtch.im/cwtch v0.4.5 h1:BK4IMqCMf9xNmeLzaVDUbl2bnXdw5fOWXvEGBMTOjXM=
cwtch.im/cwtch v0.4.5/go.mod h1:Mh7vQQ3z55+prpX6EuUkg4QNQkBACMoDcgCNBeAH2EY=
+cwtch.im/cwtch v0.4.6 h1:jQT0WZY0BGS/EKZrtvL48kMYoed00/q1ycvI0u7Dez4=
+cwtch.im/cwtch v0.4.6/go.mod h1:Mh7vQQ3z55+prpX6EuUkg4QNQkBACMoDcgCNBeAH2EY=
cwtch.im/tapir v0.2.0 h1:7MkoR5+uEuPW34/O0GZRidnIjq/01Cfm8nl5IRuqpGc=
cwtch.im/tapir v0.2.0/go.mod h1:xzzZ28adyUXNkYL1YodcHsAiTt3IJ8Loc29YVn9mIEQ=
cwtch.im/tapir v0.2.1 h1:t1YJB9q5sV1A9xwiiwL6WVfw3dwQWLoecunuzT1PQtw=
diff --git a/go/handlers/appHandler.go b/go/handlers/appHandler.go
index c999e888..af743fb2 100644
--- a/go/handlers/appHandler.go
+++ b/go/handlers/appHandler.go
@@ -4,6 +4,7 @@ import (
"cwtch.im/cwtch/app"
"cwtch.im/cwtch/app/plugins"
"cwtch.im/cwtch/event"
+ "cwtch.im/cwtch/model/attr"
"cwtch.im/ui/go/constants"
"cwtch.im/ui/go/features/groups"
"cwtch.im/ui/go/the"
@@ -75,6 +76,11 @@ func App(gcd *ui.GrandCentralDispatcher, subscribed chan bool, reloadingAccounts
p.SetAttribute(app.AttributeTag, constants.ProfileTypeV1DefaultPassword)
}
+ if e.Data[event.Created] == event.True {
+ p.SetAttribute(attr.GetPublicScope(constants.Name), p.GetName())
+ p.SetAttribute(attr.GetPublicScope(constants.Picture), ui.ImageToString(ui.NewImage(ui.RandomProfileImage(onion), ui.TypeImageDistro)))
+ }
+
log.Infof("NewPeer for %v\n", onion)
ui.AddProfile(gcd, onion)
@@ -88,7 +94,7 @@ func App(gcd *ui.GrandCentralDispatcher, subscribed chan bool, reloadingAccounts
if e.Data[event.Status] != "running" {
p.Listen()
p.StartPeersConnections()
- if _,err := groups.ExperimentGate(gcd.GlobalSettings.Experiments); err == nil {
+ if _, err := groups.ExperimentGate(gcd.GlobalSettings.Experiments); err == nil {
p.StartServerConnections()
}
}
diff --git a/i18n/translation_de.qm b/i18n/translation_de.qm
index 9ec5da3e..371e5a83 100644
Binary files a/i18n/translation_de.qm and b/i18n/translation_de.qm differ
diff --git a/i18n/translation_de.ts b/i18n/translation_de.ts
index 40bee578..f825070c 100644
--- a/i18n/translation_de.ts
+++ b/i18n/translation_de.ts
@@ -349,15 +349,7 @@
ProfileAddEditPane
-
- default suggested profile name
-
-
-
-
-
- Send this address to peers you want to connect with
@@ -400,6 +392,18 @@
+
+
+
+ Send this address to peers you want to connect with
+
+
+
+
+
+ Your Display Name
+
+
@@ -495,13 +499,13 @@
-
+
Your Profiles
-
+
Your Profiles
@@ -526,66 +530,72 @@
Benutzeroberflächen-Zoom (betriftt hauptsächlich Text- und Knopgrößen)
-
+
Language
-
+
-
+
-
+
-
+
-
+
Interface Zoom
-
+
Groß
-
+
Theme
-
+
-
+
-
+
+
+ Theme
+
+
+
+
Version %1
-
+
Built on: %2
@@ -596,7 +606,7 @@
defaultmäßige Textgröße (Skalierungsfaktor:
-
+
Klein
diff --git a/i18n/translation_en.qm b/i18n/translation_en.qm
index 5a0195a7..96ee0bd8 100644
Binary files a/i18n/translation_en.qm and b/i18n/translation_en.qm differ
diff --git a/i18n/translation_en.ts b/i18n/translation_en.ts
index 75a00117..e1ca35ea 100644
--- a/i18n/translation_en.ts
+++ b/i18n/translation_en.ts
@@ -446,9 +446,7 @@ Right-click to reset.
-
- default suggested profile name
Alice
@@ -463,10 +461,9 @@ Right-click to reset.
Edit Profille
-
Send this address to peers you want to connect with
- Send this address to peers you want to connect with
+ Send this address to peers you want to connect with
@@ -497,6 +494,18 @@ Right-click to reset.
Not using a password on this account means that all data stored locally will not be encrypted
Not using a password on this account means that all data stored locally will not be encrypted
+
+
+
+ Send this address to peers you want to connect with
+ Send this address to peers you want to connect with
+
+
+
+
+ Your Display Name
+ Your Display Name
+
@@ -592,13 +601,13 @@ Right-click to reset.
0 profiles loaded with that password
-
+
Your Profiles
Your Profiles
-
+
Your Profiles
Your Servers
@@ -632,66 +641,72 @@ Right-click to reset.
Block Unknown Peers
-
+
Language
Language
-
+
English
-
+
Frances
-
+
Portuguesa
-
+
Deutsche
-
+
Interface Zoom
Zoom level
-
+
Large
-
+
Theme
Theme
-
+
Light
-
+
Dark
-
+
+
+ Theme
+
+
+
+
Version %1
Version %1
-
+
Built on: %2
Built on: %2
@@ -702,7 +717,7 @@ Right-click to reset.
Default size text (scale factor:
-
+
Small
diff --git a/i18n/translation_fr.qm b/i18n/translation_fr.qm
index e13d0862..42e1df36 100644
Binary files a/i18n/translation_fr.qm and b/i18n/translation_fr.qm differ
diff --git a/i18n/translation_fr.ts b/i18n/translation_fr.ts
index bab389d5..1a539e31 100644
--- a/i18n/translation_fr.ts
+++ b/i18n/translation_fr.ts
@@ -349,15 +349,7 @@
ProfileAddEditPane
-
- default suggested profile name
-
-
-
-
-
- Send this address to peers you want to connect with
@@ -400,6 +392,18 @@
+
+
+
+ Send this address to peers you want to connect with
+
+
+
+
+
+ Your Display Name
+
+
@@ -495,13 +499,13 @@
-
+
Your Profiles
-
+
Your Profiles
@@ -526,66 +530,72 @@
Interface zoom (essentiellement la taille du texte et des composants de l'interface)
-
+
Language
-
+
-
+
-
+
-
+
-
+
Interface Zoom
-
+
Large
-
+
Theme
-
+
-
+
-
+
+
+ Theme
+
+
+
+
Version %1
-
+
Built on: %2
@@ -596,7 +606,7 @@
Taille par défaut du texte (échelle:
-
+
Petit
diff --git a/i18n/translation_pt.qm b/i18n/translation_pt.qm
index 8c6f6d59..f0ec2470 100644
Binary files a/i18n/translation_pt.qm and b/i18n/translation_pt.qm differ
diff --git a/i18n/translation_pt.ts b/i18n/translation_pt.ts
index 237bff16..6a0fb62b 100644
--- a/i18n/translation_pt.ts
+++ b/i18n/translation_pt.ts
@@ -349,15 +349,7 @@
ProfileAddEditPane
-
- default suggested profile name
-
-
-
-
-
- Send this address to peers you want to connect with
@@ -400,6 +392,18 @@
+
+
+
+ Send this address to peers you want to connect with
+
+
+
+
+
+ Your Display Name
+
+
@@ -495,13 +499,13 @@
-
+
Your Profiles
-
+
Your Profiles
@@ -526,66 +530,72 @@
Zoom da interface (afeta principalmente tamanho de texto e botões)
-
+
Language
-
+
-
+
-
+
-
+
-
+
Interface Zoom
-
+
Grande
-
+
Theme
-
+
-
+
-
+
+
+ Theme
+
+
+
+
Version %1
-
+
Built on: %2
@@ -596,7 +606,7 @@
Texto tamanho padrão (fator de escala:
-
+
Pequeno
diff --git a/qml/panes/ProfileAddEditPane.qml b/qml/panes/ProfileAddEditPane.qml
index 4f94076c..4c80de0c 100644
--- a/qml/panes/ProfileAddEditPane.qml
+++ b/qml/panes/ProfileAddEditPane.qml
@@ -32,7 +32,7 @@ Opaque.Flickable {
flickRoot.contentY = 0
mode = mode_add
reset_errors()
- txtProfileName.text = qsTr("default-profile-name")
+ txtProfileName.text = ""
changingPassword = false
txtPassword1.text = ""
txtPassword2.text = ""
@@ -250,14 +250,13 @@ Opaque.Flickable {
Opaque.UnderlineTextField {
id: txtProfileName
- visible: mode == mode_edit
- //Layout.fillWidth: true
+
backgroundColor: Theme.backgroundPaneColor
width: parent.width - (40*gcd.themeScale)
anchors.horizontalCenter: parent.horizontalCenter
- //: default suggested profile name
- text: qsTr("default-profile-name")
+ //: Your Display Name
+ placeholderText: qsTr("your-display-name")
}
diff --git a/qml/panes/ProfileManagerPane.qml b/qml/panes/ProfileManagerPane.qml
index 0cea77ce..572d7c2a 100644
--- a/qml/panes/ProfileManagerPane.qml
+++ b/qml/panes/ProfileManagerPane.qml
@@ -78,7 +78,7 @@ ColumnLayout {
Opaque.ScalingLabel {
id: error
anchors.horizontalCenter: parent.horizontalCenter
- color: "red"
+ color: Theme.textfieldErrorColor
//: 0 profiles loaded with that password
text: qsTr("error-0-profiles-loaded-for-password")
visible: false