mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
Some font adjustments
This commit is contained in:
parent
a9b6a70d15
commit
6677a185f8
5 changed files with 17 additions and 12 deletions
|
@ -71,10 +71,11 @@ Item {
|
|||
Text {
|
||||
id: inputLabel
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: 2
|
||||
anchors.left: parent.left
|
||||
font.family: Style.fontRegular.name
|
||||
font.pixelSize: 16
|
||||
font.bold: false
|
||||
font.pixelSize: 14
|
||||
font.bold: true
|
||||
textFormat: Text.RichText
|
||||
color: Style.defaultFontColor
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ Item {
|
|||
property alias text: input.text
|
||||
property alias placeholderText: placeholderLabel.text
|
||||
property bool placeholderCenter: false
|
||||
property int placeholderFontSize: 18
|
||||
property int placeholderFontSize: 18 * scaleRatio
|
||||
property alias validator: input.validator
|
||||
property alias readOnly : input.readOnly
|
||||
property alias cursorPosition: input.cursorPosition
|
||||
|
@ -53,12 +53,12 @@ Item {
|
|||
property alias labelTextFormat: inputLabel.textFormat
|
||||
property string backgroundColor: "transparent"
|
||||
property string tipText: ""
|
||||
property int labelFontSize: 16 * scaleRatio
|
||||
property bool labelFontBold: false
|
||||
property int labelFontSize: 14 * scaleRatio
|
||||
property bool labelFontBold: true
|
||||
property alias labelWrapMode: inputLabel.wrapMode
|
||||
property alias labelHorizontalAlignment: inputLabel.horizontalAlignment
|
||||
property bool showingHeader: inputLabel.text !== "" || copyButton
|
||||
property int inputHeight: 42
|
||||
property int inputHeight: 42 * scaleRatio
|
||||
signal labelLinkActivated(); // input label, rich text <a> signal
|
||||
signal editingFinished();
|
||||
signal accepted();
|
||||
|
|
|
@ -39,7 +39,7 @@ ColumnLayout {
|
|||
property alias readOnly: multiLine.readOnly
|
||||
property alias addressValidation: multiLine.addressValidation
|
||||
property alias labelButtonText: labelButton.text
|
||||
property bool labelFontBold: false
|
||||
property bool labelFontBold: true
|
||||
property bool labelButtonVisible: false
|
||||
property bool copyButton: false
|
||||
signal labelButtonClicked();
|
||||
|
@ -50,14 +50,14 @@ ColumnLayout {
|
|||
id: inputLabelRect
|
||||
color: "transparent"
|
||||
Layout.fillWidth: true
|
||||
height: inputLabel.height + 10
|
||||
height: (inputLabel.height + 10) * scaleRatio
|
||||
|
||||
Text {
|
||||
id: inputLabel
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
font.family: Style.fontRegular.name
|
||||
font.pixelSize: 16 * scaleRatio
|
||||
font.pixelSize: 14 * scaleRatio
|
||||
font.bold: labelFontBold
|
||||
textFormat: Text.RichText
|
||||
color: Style.defaultFontColor
|
||||
|
@ -92,15 +92,15 @@ ColumnLayout {
|
|||
addressValidation: true
|
||||
anchors.top: inputLabelRect.bottom
|
||||
Layout.fillWidth: true
|
||||
topPadding: 10
|
||||
bottomPadding: 10
|
||||
topPadding: 10 * scaleRatio
|
||||
bottomPadding: 10 * scaleRatio
|
||||
|
||||
Text {
|
||||
id: placeholderLabel
|
||||
visible: multiLine.text ? false : true
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 10
|
||||
anchors.leftMargin: 10 * scaleRatio
|
||||
opacity: 0.25
|
||||
color: Style.defaultFontColor
|
||||
font.family: Style.fontRegular.name
|
||||
|
|
|
@ -218,6 +218,8 @@ Rectangle {
|
|||
id: transactionPriority
|
||||
Layout.minimumWidth: 120 * scaleRatio
|
||||
text: qsTr("Sort") + translationManager.emptyString
|
||||
fontSize: 14
|
||||
fontBold: true
|
||||
}
|
||||
|
||||
ListModel {
|
||||
|
|
|
@ -161,6 +161,8 @@ Rectangle {
|
|||
Label {
|
||||
id: transactionPriority
|
||||
text: qsTr("Transaction priority") + translationManager.emptyString
|
||||
fontBold: true
|
||||
fontSize: 14
|
||||
}
|
||||
// Note: workaround for translations in listElements
|
||||
// ListElement: cannot use script for property value, so
|
||||
|
|
Loading…
Reference in a new issue