feat: use logarithmic conversion for lithophanes

This commit is contained in:
Tim Kuipers 2019-05-20 12:10:18 +02:00
parent ba878ccff0
commit 3168328750
3 changed files with 40 additions and 4 deletions

View file

@ -143,6 +143,28 @@ UM.Dialog
}
}
UM.TooltipArea {
Layout.fillWidth:true
height: childrenRect.height
text: catalog.i18nc("@info:tooltip","For lithophanes a logarithmic function is more appropriate for most materials. For height maps the pixel values correspond to heights linearly.")
Row {
width: parent.width
Label {
text: "Conversion"
width: 150 * screenScaleFactor
anchors.verticalCenter: parent.verticalCenter
}
ComboBox {
id: conversion
objectName: "Conversion"
model: [ catalog.i18nc("@item:inlistbox","Logarithmic"), catalog.i18nc("@item:inlistbox","Linear") ]
width: 180 * screenScaleFactor
onCurrentIndexChanged: { manager.onConvertFunctionChanged(currentIndex) }
}
}
}
UM.TooltipArea {
Layout.fillWidth:true
height: childrenRect.height