fix: add StyledTextEdit and TextField to use the font
This commit is contained in:
parent
8755c901de
commit
7e96a17f3b
|
@ -48,7 +48,7 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
|
||||
TextField {
|
||||
StyledTextField {
|
||||
id: txtData
|
||||
text: ""
|
||||
padding: 0
|
||||
|
|
|
@ -172,7 +172,7 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
TextEdit {
|
||||
StyledTextEdit {
|
||||
id: chatName
|
||||
text: userName
|
||||
anchors.leftMargin: 20
|
||||
|
@ -227,7 +227,7 @@ Item {
|
|||
z: -1
|
||||
}
|
||||
|
||||
TextEdit {
|
||||
StyledTextEdit {
|
||||
id: chatText
|
||||
text: message
|
||||
anchors.left: parent.left
|
||||
|
@ -258,7 +258,7 @@ Item {
|
|||
visible: contentType == Constants.stickerType
|
||||
}
|
||||
|
||||
TextEdit {
|
||||
StyledTextEdit {
|
||||
id: chatTime
|
||||
color: Theme.darkGrey
|
||||
text: timestamp
|
||||
|
|
|
@ -23,7 +23,7 @@ Rectangle {
|
|||
channelIdenticon: chatsModel.activeChannel.identicon
|
||||
}
|
||||
|
||||
TextEdit {
|
||||
StyledTextEdit {
|
||||
id: channelName
|
||||
width: 80
|
||||
height: 20
|
||||
|
|
|
@ -8,7 +8,7 @@ Rectangle {
|
|||
property string name: "channelName"
|
||||
property string lastMessage: "My latest message\n with a return"
|
||||
property string timestamp: "20/2/2020"
|
||||
property string unviewedMessagesCount: "2"
|
||||
property string unviewedMessagesCount: "7"
|
||||
property string chatType: Constants.chatTypePublic
|
||||
property string searchStr: ""
|
||||
|
||||
|
@ -110,7 +110,8 @@ Rectangle {
|
|||
visible: unviewedMessagesCount > 0
|
||||
StyledText {
|
||||
id: contactNumberChats
|
||||
text: wrapper.unviewedMessagesCount
|
||||
text: wrapper.unviewedMessagesCount < 100 ? wrapper.unviewedMessagesCount : "99"
|
||||
font.pixelSize: 12
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
color: "white"
|
||||
|
|
|
@ -32,7 +32,7 @@ ModalPopup {
|
|||
}
|
||||
}
|
||||
|
||||
TextEdit {
|
||||
StyledTextEdit {
|
||||
id: groupName
|
||||
text: chatsModel.activeChannel.name
|
||||
anchors.top: parent.top
|
||||
|
|
|
@ -39,7 +39,7 @@ ModalPopup {
|
|||
}
|
||||
}
|
||||
|
||||
TextEdit {
|
||||
StyledTextEdit {
|
||||
id: profileName
|
||||
text: userName
|
||||
anchors.top: parent.top
|
||||
|
|
|
@ -99,7 +99,7 @@ SplitView {
|
|||
}
|
||||
}
|
||||
|
||||
TextField {
|
||||
StyledTextField {
|
||||
id: txtData
|
||||
text: ""
|
||||
leftPadding: 0
|
||||
|
|
|
@ -52,7 +52,7 @@ Item {
|
|||
anchors.topMargin: Theme.padding
|
||||
height: walletAmountValue.height + totalValue.height
|
||||
|
||||
TextEdit {
|
||||
StyledTextEdit {
|
||||
id: walletAmountValue
|
||||
color: "black"
|
||||
text: walletModel.totalFiatBalance
|
||||
|
|
|
@ -208,6 +208,8 @@ DISTFILES += \
|
|||
shared/RoundedIcon.qml \
|
||||
shared/StyledText.qml \
|
||||
shared/StyledTextArea.qml \
|
||||
shared/StyledTextEdit.qml \
|
||||
shared/StyledTextField.qml \
|
||||
shared/TextWithLabel.qml \
|
||||
shared/qmldir
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ Item {
|
|||
anchors.topMargin: inputBox.hasLabel ? inputBox.labelMargin : 0
|
||||
anchors.right: parent.right
|
||||
anchors.left: parent.left
|
||||
TextField {
|
||||
StyledTextField {
|
||||
id: inputValue
|
||||
visible: !inputBox.isTextArea && !inputBox.isSelect
|
||||
placeholderText: inputBox.placeholderText
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
import QtQuick 2.13
|
||||
import "../imports"
|
||||
|
||||
TextEdit {
|
||||
font.family: Theme.fontRegular.name
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
import QtQuick 2.13
|
||||
import QtQuick.Controls 2.13
|
||||
import "../imports"
|
||||
|
||||
TextField {
|
||||
font.family: Theme.fontRegular.name
|
||||
}
|
|
@ -25,7 +25,7 @@ Item {
|
|||
color: Theme.darkGrey
|
||||
}
|
||||
|
||||
TextEdit {
|
||||
StyledTextEdit {
|
||||
id: textItem
|
||||
text: inputBox.text
|
||||
selectByMouse: true
|
||||
|
|
|
@ -10,4 +10,6 @@ SearchBox 1.0 SearchBox.qml
|
|||
Select 1.0 Select.qml
|
||||
StyledTextArea 1.0 StyledTextArea.qml
|
||||
StyledText 1.0 StyledText.qml
|
||||
StyledTextField 1.0 StyledTextField.qml
|
||||
StyledTextEdit 1.0 StyledTextEdit.qml
|
||||
RoundImage 1.0 RoundImage.qml
|
||||
|
|
Loading…
Reference in New Issue