forked from Public/monero-gui
Remove scaleRatio
This commit is contained in:
@@ -42,34 +42,34 @@ Rectangle {
|
||||
|
||||
ColumnLayout {
|
||||
id: settingsLog
|
||||
property int itemHeight: 60 * scaleRatio
|
||||
property int itemHeight: 60
|
||||
Layout.fillWidth: true
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
anchors.margins: (isMobile)? 17 * scaleRatio : 20 * scaleRatio
|
||||
anchors.margins: (isMobile)? 17 : 20
|
||||
anchors.topMargin: 0
|
||||
spacing: 10
|
||||
|
||||
// Rectangle {
|
||||
// // divider
|
||||
// Layout.preferredHeight: 1 * scaleRatio
|
||||
// Layout.preferredHeight: 1
|
||||
// Layout.fillWidth: true
|
||||
// Layout.bottomMargin: 8 * scaleRatio
|
||||
// Layout.bottomMargin: 8
|
||||
// color: MoneroComponents.Style.dividerColor
|
||||
// opacity: MoneroComponents.Style.dividerOpacity
|
||||
// }
|
||||
|
||||
MoneroComponents.TextPlain {
|
||||
Layout.bottomMargin: 2 * scaleRatio
|
||||
Layout.bottomMargin: 2
|
||||
color: MoneroComponents.Style.defaultFontColor
|
||||
font.pixelSize: 18 * scaleRatio
|
||||
font.pixelSize: 18
|
||||
font.family: MoneroComponents.Style.fontRegular.name
|
||||
text: qsTr("Log level") + translationManager.emptyString
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
spacing: 10 * scaleRatio
|
||||
spacing: 10
|
||||
Layout.fillWidth: true
|
||||
id: logColumn
|
||||
z: parent.z + 1
|
||||
@@ -87,7 +87,7 @@ Rectangle {
|
||||
MoneroComponents.StandardDropdown {
|
||||
id: logLevelDropdown
|
||||
dataModel: logLevel
|
||||
itemTopMargin: 2 * scaleRatio
|
||||
itemTopMargin: 2
|
||||
currentIndex: appWindow.persistentSettings.logLevel;
|
||||
onChanged: {
|
||||
if (currentIndex == 5) {
|
||||
@@ -112,8 +112,8 @@ Rectangle {
|
||||
Layout.preferredWidth: logColumn.width
|
||||
text: appWindow.persistentSettings.logCategories
|
||||
placeholderText: "(e.g. *:WARNING,net.p2p:DEBUG)"
|
||||
placeholderFontSize: 14 * scaleRatio
|
||||
fontSize: 14 * scaleRatio
|
||||
placeholderFontSize: 14
|
||||
fontSize: 14
|
||||
enabled: logLevelDropdown.currentIndex === 5
|
||||
onEditingFinished: {
|
||||
if(enabled) {
|
||||
@@ -126,10 +126,10 @@ Rectangle {
|
||||
}
|
||||
|
||||
MoneroComponents.TextPlain {
|
||||
Layout.topMargin: 10 * scaleRatio
|
||||
Layout.bottomMargin: 2 * scaleRatio
|
||||
Layout.topMargin: 10
|
||||
Layout.bottomMargin: 2
|
||||
color: MoneroComponents.Style.defaultFontColor
|
||||
font.pixelSize: 18 * scaleRatio
|
||||
font.pixelSize: 18
|
||||
font.family: MoneroComponents.Style.fontRegular.name
|
||||
text: qsTr("Daemon log") + translationManager.emptyString
|
||||
}
|
||||
@@ -137,7 +137,7 @@ Rectangle {
|
||||
Item {
|
||||
Layout.fillHeight: true
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: 240 * scaleRatio
|
||||
Layout.preferredHeight: 240
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
@@ -159,7 +159,7 @@ Rectangle {
|
||||
selectByMouse: true
|
||||
selectByKeyboard: true
|
||||
font.family: MoneroComponents.Style.defaultFontColor
|
||||
font.pixelSize: 14 * scaleRatio
|
||||
font.pixelSize: 14
|
||||
wrapMode: TextEdit.Wrap
|
||||
readOnly: true
|
||||
function logCommand(msg){
|
||||
@@ -212,7 +212,7 @@ Rectangle {
|
||||
Layout.fillWidth: true
|
||||
fontBold: false
|
||||
placeholderText: qsTr("command + enter (e.g 'help' or 'status')") + translationManager.emptyString
|
||||
placeholderFontSize: 16 * scaleRatio
|
||||
placeholderFontSize: 16
|
||||
onAccepted: {
|
||||
if(text.length > 0) {
|
||||
consoleArea.logCommand(">>> " + text)
|
||||
|
||||
Reference in New Issue
Block a user