mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-02-24 02:30:33 +02:00
Fixes a layout bug for SettingsLog.qml
This commit is contained in:
parent
eef3f8a3ac
commit
3d7090bdba
@ -41,6 +41,7 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
|
id: logGrid
|
||||||
columns: appWindow.persistentSettings.logLevel === 5 ? 2 : 1
|
columns: appWindow.persistentSettings.logLevel === 5 ? 2 : 1
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
columnSpacing: 32 * scaleRatio
|
columnSpacing: 32 * scaleRatio
|
||||||
@ -77,6 +78,7 @@ Rectangle {
|
|||||||
appWindow.persistentSettings.logLevel = currentIndex;
|
appWindow.persistentSettings.logLevel = currentIndex;
|
||||||
}
|
}
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.maximumWidth: logGrid.width / 2
|
||||||
shadowReleasedColor: "#FF4304"
|
shadowReleasedColor: "#FF4304"
|
||||||
shadowPressedColor: "#B32D00"
|
shadowPressedColor: "#B32D00"
|
||||||
releasedColor: "#363636"
|
releasedColor: "#363636"
|
||||||
@ -88,9 +90,11 @@ Rectangle {
|
|||||||
id: logCategories
|
id: logCategories
|
||||||
visible: persistentSettings.logLevel === 5
|
visible: persistentSettings.logLevel === 5
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.maximumWidth: logGrid.width / 2
|
||||||
text: appWindow.persistentSettings.logCategories
|
text: appWindow.persistentSettings.logCategories
|
||||||
placeholderText: "(e.g. *:WARNING,net.p2p:DEBUG)"
|
placeholderText: "(e.g. *:WARNING,net.p2p:DEBUG)"
|
||||||
placeholderFontSize: 14 * scaleRatio
|
placeholderFontSize: 14 * scaleRatio
|
||||||
|
fontSize: 14 * scaleRatio
|
||||||
enabled: logLevelDropdown.currentIndex === 5
|
enabled: logLevelDropdown.currentIndex === 5
|
||||||
onEditingFinished: {
|
onEditingFinished: {
|
||||||
if(enabled) {
|
if(enabled) {
|
||||||
@ -191,7 +195,7 @@ Rectangle {
|
|||||||
id: sendCommandText
|
id: sendCommandText
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
fontBold: false
|
fontBold: false
|
||||||
placeholderText: qsTr("command + enter (e.g help)") + translationManager.emptyString
|
placeholderText: qsTr("command + enter (e.g 'help' or 'status')") + translationManager.emptyString
|
||||||
placeholderFontSize: 16 * scaleRatio
|
placeholderFontSize: 16 * scaleRatio
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
if(text.length > 0) {
|
if(text.length > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user