Attempting to fix blurry icons and Latex renders in the objects tab.
This commit is contained in:
parent
15fd660e0c
commit
9facc2389c
3 changed files with 6 additions and 4 deletions
|
@ -47,7 +47,7 @@ ScrollView {
|
||||||
ListView {
|
ListView {
|
||||||
id: objectsListView
|
id: objectsListView
|
||||||
model: Object.keys(Objects.types)
|
model: Object.keys(Objects.types)
|
||||||
width: implicitWidth //objectListList.width - (implicitHeight > objectListList.parent.height ? 20 : 0)
|
//width: implicitWidth //objectListList.width - (implicitHeight > objectListList.parent.height ? 20 : 0)
|
||||||
implicitHeight: contentItem.childrenRect.height + footer.height + 10
|
implicitHeight: contentItem.childrenRect.height + footer.height + 10
|
||||||
|
|
||||||
delegate: ListView {
|
delegate: ListView {
|
||||||
|
|
|
@ -83,10 +83,11 @@ Item {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
visible: LatexJS.enabled
|
visible: LatexJS.enabled
|
||||||
property var ltxInfo: visible ? Latex.render(obj.getLatexLabel(), 2*parent.font.pixelSize, parent.color).split(",") : ["","0","0"]
|
property double depth: 2
|
||||||
|
property var ltxInfo: visible ? Latex.render(obj.getLatexLabel(), depth*parent.font.pixelSize, parent.color).split(",") : ["","0","0"]
|
||||||
source: visible ? ltxInfo[0] : ""
|
source: visible ? ltxInfo[0] : ""
|
||||||
width: parseInt(ltxInfo[1])/2
|
width: parseInt(ltxInfo[1])/depth
|
||||||
height: parseInt(ltxInfo[2])/2
|
height: parseInt(ltxInfo[2])/depth
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
|
@ -48,6 +48,7 @@ Item {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
//smooth: true
|
//smooth: true
|
||||||
visible: false
|
visible: false
|
||||||
|
sourceSize.width: width*2
|
||||||
sourceSize.height: sourceSize.width
|
sourceSize.height: sourceSize.width
|
||||||
}
|
}
|
||||||
ColorOverlay {
|
ColorOverlay {
|
||||||
|
|
Loading…
Reference in a new issue