mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-05-16 17:22:45 -04:00
text: change default rendering back to Qt
This commit is contained in:
@@ -70,7 +70,7 @@ Rectangle {
|
||||
materialIconSizeAdjustment: root.computedIconSize * 0.3
|
||||
}
|
||||
|
||||
Text {
|
||||
StyledText {
|
||||
width: parent.width
|
||||
text: root.item?._hName ?? root.item?.name ?? ""
|
||||
textFormat: root.item?._hRich ? Text.RichText : Text.PlainText
|
||||
|
||||
@@ -95,7 +95,7 @@ Rectangle {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
height: nameText.implicitHeight + (subText.visible ? subText.height + 2 : 0)
|
||||
|
||||
Text {
|
||||
StyledText {
|
||||
id: nameText
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
@@ -128,7 +128,7 @@ Rectangle {
|
||||
return e.endsWith("…") ? e.length - 1 : e.length;
|
||||
}
|
||||
|
||||
Text {
|
||||
StyledText {
|
||||
id: subText
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
|
||||
@@ -72,7 +72,9 @@ Rectangle {
|
||||
readonly property var iconMap: {
|
||||
const cats = root.controller?.appCategories ?? [];
|
||||
const m = {};
|
||||
cats.forEach(c => { m[c] = AppSearchService.getCategoryIcon(c); });
|
||||
cats.forEach(c => {
|
||||
m[c] = AppSearchService.getCategoryIcon(c);
|
||||
});
|
||||
return m;
|
||||
}
|
||||
|
||||
@@ -137,7 +139,9 @@ Rectangle {
|
||||
dim: false
|
||||
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
|
||||
|
||||
background: Rectangle { color: "transparent" }
|
||||
background: Rectangle {
|
||||
color: "transparent"
|
||||
}
|
||||
|
||||
contentItem: Rectangle {
|
||||
radius: Theme.cornerRadius
|
||||
|
||||
@@ -114,7 +114,7 @@ Rectangle {
|
||||
color: Theme.withAlpha(Theme.surfaceContainer, 0.85)
|
||||
visible: root.item?.name?.length > 0
|
||||
|
||||
Text {
|
||||
StyledText {
|
||||
id: labelText
|
||||
anchors.fill: parent
|
||||
anchors.margins: Theme.spacingXS
|
||||
|
||||
Reference in New Issue
Block a user