Add temporary "unimplemented" Register box
This commit is contained in:
parent
a2ffaf4a67
commit
f75d44a0dd
1
TODO.md
1
TODO.md
@ -1,3 +1,4 @@
|
||||
- cancel sign in, sign out key icon
|
||||
- Media
|
||||
- Confirmation box after picking file to upload
|
||||
- Handle set avatar upload errors
|
||||
|
3
src/icons/thin/register.svg
Normal file
3
src/icons/thin/register.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m13.473 7.196c-.425-.439-.401-1.127.035-1.552l4.461-4.326c.218-.211.498-.318.775-.318.282 0 .563.11.776.331zm-7.334 11.021c-.092.089-.139.208-.139.327 0 .25.204.456.456.456.114 0 .229-.042.317-.128l.749-.729-.633-.654zm6.33-8.425-2.564 2.485c-1.378 1.336-2.081 2.63-2.73 4.437l1.132 1.169c1.825-.593 3.14-1.255 4.518-2.591l2.563-2.486zm7.477-7.659-6.604 6.405 3.326 3.434 6.604-6.403c.485-.469.728-1.093.728-1.718 0-2.088-2.53-3.196-4.054-1.718zm-1.946 11.333v7.534h-16v-12h8.013l2.058-2h-12.071v16h20v-11.473z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 618 B |
3
src/icons/thin/reset-password.svg
Normal file
3
src/icons/thin/reset-password.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg clip-rule="evenodd" fill-rule="evenodd" height="24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m2.458 9.012c-.297.947-.458 1.955-.458 3 0 5.52 4.481 10 10 10 5.52 0 10-4.48 10-10 0-5.519-4.48-10-10-10-2.121 0-4.083.668-5.703 1.796l1.703 2.204h-6.58l1.935-6.012 1.718 2.223c1.958-1.389 4.346-2.211 6.927-2.211 6.623 0 12 5.377 12 12s-5.377 11.988-12 11.988-12-5.365-12-11.988c0-1.036.132-2.041.379-3zm10.35-3.012c.292.821.375 1.346 1.01 1.609.637.264 1.073-.052 1.854-.423l1.142 1.142c-.373.787-.687 1.218-.423 1.854.262.634.784.716 1.609 1.009v1.617c-.816.29-1.347.375-1.61 1.01-.264.636.052 1.071.424 1.853l-1.142 1.142c-.79-.375-1.219-.687-1.85-.424-.639.265-.723.793-1.014 1.611h-1.616c-.292-.821-.375-1.347-1.01-1.61-.637-.264-1.072.052-1.854.423l-1.142-1.142c.366-.771.689-1.212.423-1.854-.263-.635-.793-.719-1.609-1.009v-1.617c.817-.29 1.346-.373 1.609-1.009.264-.637-.051-1.07-.423-1.854l1.142-1.142c.788.374 1.218.687 1.854.423.635-.263.719-.792 1.01-1.609zm-.808 8c-1.105 0-2-.896-2-2 0-1.105.895-2.001 2-2.001 1.104 0 2 .896 2 2.001 0 1.104-.896 2-2 2z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
@ -9,7 +9,7 @@ HPage {
|
||||
]
|
||||
|
||||
SignIn { Component.onCompleted: forceActiveFocus() }
|
||||
Item {} // TODO
|
||||
Item {} // TODO
|
||||
Register {}
|
||||
Recovery {}
|
||||
}
|
||||
}
|
||||
|
29
src/qml/Pages/AddAccount/Register.qml
Normal file
29
src/qml/Pages/AddAccount/Register.qml
Normal file
@ -0,0 +1,29 @@
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import "../../Base"
|
||||
|
||||
HBox {
|
||||
id: signInBox
|
||||
clickButtonOnEnter: "ok"
|
||||
|
||||
buttonModel: [
|
||||
{ name: "ok", text: qsTr("Register from Riot"), iconName: "register" },
|
||||
]
|
||||
|
||||
buttonCallbacks: ({
|
||||
ok: button => {
|
||||
Qt.openUrlExternally("https://riot.im/app/#/register")
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
HLabel {
|
||||
wrapMode: Text.Wrap
|
||||
text: qsTr(
|
||||
"Registering is not implemented yet. You can create a new " +
|
||||
"account from a client that supports it, such as Riot."
|
||||
)
|
||||
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user