Attempting to fix blurry icons and Latex renders in the objects tab.

This commit is contained in:
Adsooi 2022-10-18 02:00:56 +02:00
parent 15fd660e0c
commit 9facc2389c
Signed by: Ad5001
GPG key ID: 7251B1AF90B960F9
3 changed files with 6 additions and 4 deletions

View file

@ -47,7 +47,7 @@ ScrollView {
ListView {
id: objectsListView
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
delegate: ListView {

View file

@ -83,10 +83,11 @@ Item {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
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] : ""
width: parseInt(ltxInfo[1])/2
height: parseInt(ltxInfo[2])/2
width: parseInt(ltxInfo[1])/depth
height: parseInt(ltxInfo[2])/depth
}
MouseArea {

View file

@ -48,6 +48,7 @@ Item {
width: parent.width
//smooth: true
visible: false
sourceSize.width: width*2
sourceSize.height: sourceSize.width
}
ColorOverlay {