mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-27 14:01:19 +00:00
fix: Use StatusCursorDelegate
for password inputs (#10890)
This commit is contained in:
parent
fa656c9535
commit
278654f694
@ -5,6 +5,7 @@ import QtQuick.Controls 2.14
|
|||||||
import StatusQ.Core 0.1
|
import StatusQ.Core 0.1
|
||||||
import StatusQ.Core.Theme 0.1
|
import StatusQ.Core.Theme 0.1
|
||||||
import StatusQ.Controls 0.1
|
import StatusQ.Controls 0.1
|
||||||
|
import StatusQ.Components 0.1
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\qmltype StatusPasswordInput
|
\qmltype StatusPasswordInput
|
||||||
@ -63,6 +64,7 @@ TextField {
|
|||||||
color: Theme.palette.directColor1
|
color: Theme.palette.directColor1
|
||||||
selectionColor: Theme.palette.primaryColor2
|
selectionColor: Theme.palette.primaryColor2
|
||||||
selectedTextColor: Theme.palette.directColor1
|
selectedTextColor: Theme.palette.directColor1
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
id: inputRectangle
|
id: inputRectangle
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@ -77,6 +79,9 @@ TextField {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cursorDelegate: StatusCursorDelegate {
|
||||||
|
cursorVisible: root.cursorVisible
|
||||||
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: phrase
|
id: phrase
|
||||||
|
@ -3,10 +3,18 @@ import QtQuick.Controls 2.13
|
|||||||
|
|
||||||
import utils 1.0
|
import utils 1.0
|
||||||
|
|
||||||
|
import StatusQ.Components 0.1
|
||||||
|
|
||||||
TextField {
|
TextField {
|
||||||
|
id: root
|
||||||
|
|
||||||
font.family: Style.current.baseFont.name
|
font.family: Style.current.baseFont.name
|
||||||
color: readOnly ? Style.current.secondaryText : Style.current.textColor
|
color: readOnly ? Style.current.secondaryText : Style.current.textColor
|
||||||
selectByMouse: !readOnly
|
selectByMouse: !readOnly
|
||||||
selectedTextColor: Style.current.textColor
|
selectedTextColor: Style.current.textColor
|
||||||
selectionColor: Style.current.primarySelectionColor
|
selectionColor: Style.current.primarySelectionColor
|
||||||
|
|
||||||
|
cursorDelegate: StatusCursorDelegate {
|
||||||
|
cursorVisible: root.cursorVisible
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user