1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 16:02:51 -05:00

dankbar: fix app icon scaling fixes #568

This commit is contained in:
bbedward
2025-10-27 14:35:35 -04:00
parent 48a7d24c11
commit 24b046e9d7
2 changed files with 16 additions and 14 deletions

View File

@@ -289,10 +289,10 @@ Item {
IconImage { IconImage {
id: iconImg id: iconImg
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: SettingsData.runningAppsCompactMode ? (parent.width - 18) / 2 : Theme.spacingXS anchors.leftMargin: SettingsData.runningAppsCompactMode ? (parent.width - Theme.barIconSize(root.barThickness)) / 2 : Theme.spacingXS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: 18 width: Theme.barIconSize(root.barThickness)
height: 18 height: Theme.barIconSize(root.barThickness)
source: { source: {
root._desktopEntriesUpdateTrigger root._desktopEntriesUpdateTrigger
const moddedId = Paths.moddedAppId(appId) const moddedId = Paths.moddedAppId(appId)
@@ -309,9 +309,9 @@ Item {
DankIcon { DankIcon {
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: SettingsData.runningAppsCompactMode ? (parent.width - 18) / 2 : Theme.spacingXS anchors.leftMargin: SettingsData.runningAppsCompactMode ? (parent.width - Theme.barIconSize(root.barThickness)) / 2 : Theme.spacingXS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
size: 18 size: Theme.barIconSize(root.barThickness)
name: "sports_esports" name: "sports_esports"
color: Theme.surfaceText color: Theme.surfaceText
visible: { visible: {
@@ -517,10 +517,10 @@ Item {
IconImage { IconImage {
id: iconImg id: iconImg
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: SettingsData.runningAppsCompactMode ? (parent.width - 18) / 2 : Theme.spacingXS anchors.leftMargin: SettingsData.runningAppsCompactMode ? (parent.width - Theme.barIconSize(root.barThickness)) / 2 : Theme.spacingXS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: 18 width: Theme.barIconSize(root.barThickness)
height: 18 height: Theme.barIconSize(root.barThickness)
source: { source: {
root._desktopEntriesUpdateTrigger root._desktopEntriesUpdateTrigger
const moddedId = Paths.moddedAppId(appId) const moddedId = Paths.moddedAppId(appId)
@@ -537,9 +537,9 @@ Item {
DankIcon { DankIcon {
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: SettingsData.runningAppsCompactMode ? (parent.width - 18) / 2 : Theme.spacingXS anchors.leftMargin: SettingsData.runningAppsCompactMode ? (parent.width - Theme.barIconSize(root.barThickness)) / 2 : Theme.spacingXS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
size: 18 size: Theme.barIconSize(root.barThickness)
name: "sports_esports" name: "sports_esports"
color: Theme.surfaceText color: Theme.surfaceText
visible: { visible: {

View File

@@ -117,8 +117,8 @@ Item {
IconImage { IconImage {
anchors.centerIn: parent anchors.centerIn: parent
width: 16 width: Theme.barIconSize(root.barThickness)
height: 16 height: Theme.barIconSize(root.barThickness)
source: delegateRoot.iconSource source: delegateRoot.iconSource
asynchronous: true asynchronous: true
smooth: true smooth: true
@@ -130,6 +130,7 @@ Item {
id: trayItemArea id: trayItemArea
anchors.fill: parent anchors.fill: parent
hoverEnabled: true
acceptedButtons: Qt.LeftButton | Qt.RightButton acceptedButtons: Qt.LeftButton | Qt.RightButton
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
onClicked: (mouse) => { onClicked: (mouse) => {
@@ -203,8 +204,8 @@ Item {
IconImage { IconImage {
anchors.centerIn: parent anchors.centerIn: parent
width: 16 width: Theme.barIconSize(root.barThickness)
height: 16 height: Theme.barIconSize(root.barThickness)
source: delegateRoot.iconSource source: delegateRoot.iconSource
asynchronous: true asynchronous: true
smooth: true smooth: true
@@ -216,6 +217,7 @@ Item {
id: trayItemArea id: trayItemArea
anchors.fill: parent anchors.fill: parent
hoverEnabled: true
acceptedButtons: Qt.LeftButton | Qt.RightButton acceptedButtons: Qt.LeftButton | Qt.RightButton
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
onClicked: (mouse) => { onClicked: (mouse) => {