1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-30 08:22:51 -05:00

runningapps: fix tooltip positioning

fixes #682
This commit is contained in:
bbedward
2025-11-10 13:57:03 -05:00
parent cc02d09c4d
commit 8fea126c20
3 changed files with 28 additions and 20 deletions

View File

@@ -421,7 +421,11 @@ Item {
tooltipLoader.item.show(delegateItem.tooltipText, screenX + tooltipX, relativeY, root.parentScreen, isLeft, !isLeft) tooltipLoader.item.show(delegateItem.tooltipText, screenX + tooltipX, relativeY, root.parentScreen, isLeft, !isLeft)
} else { } else {
const globalPos = delegateItem.mapToGlobal(delegateItem.width / 2, delegateItem.height) const globalPos = delegateItem.mapToGlobal(delegateItem.width / 2, delegateItem.height)
const tooltipY = Theme.barHeight + SettingsData.dankBarSpacing + Theme.spacingXS const screenHeight = root.parentScreen ? root.parentScreen.height : Screen.height
const isBottom = root.axis?.edge === "bottom"
const tooltipY = isBottom
? (screenHeight - Theme.barHeight - SettingsData.dankBarSpacing - Theme.spacingXS - 35)
: (Theme.barHeight + SettingsData.dankBarSpacing + Theme.spacingXS)
tooltipLoader.item.show(delegateItem.tooltipText, globalPos.x, tooltipY, root.parentScreen, false, false) tooltipLoader.item.show(delegateItem.tooltipText, globalPos.x, tooltipY, root.parentScreen, false, false)
} }
} }
@@ -650,7 +654,11 @@ Item {
tooltipLoader.item.show(delegateItem.tooltipText, screenX + tooltipX, relativeY, root.parentScreen, isLeft, !isLeft) tooltipLoader.item.show(delegateItem.tooltipText, screenX + tooltipX, relativeY, root.parentScreen, isLeft, !isLeft)
} else { } else {
const globalPos = delegateItem.mapToGlobal(delegateItem.width / 2, delegateItem.height) const globalPos = delegateItem.mapToGlobal(delegateItem.width / 2, delegateItem.height)
const tooltipY = Theme.barHeight + SettingsData.dankBarSpacing + Theme.spacingXS const screenHeight = root.parentScreen ? root.parentScreen.height : Screen.height
const isBottom = root.axis?.edge === "bottom"
const tooltipY = isBottom
? (screenHeight - Theme.barHeight - SettingsData.dankBarSpacing - Theme.spacingXS - 35)
: (Theme.barHeight + SettingsData.dankBarSpacing + Theme.spacingXS)
tooltipLoader.item.show(delegateItem.tooltipText, globalPos.x, tooltipY, root.parentScreen, false, false) tooltipLoader.item.show(delegateItem.tooltipText, globalPos.x, tooltipY, root.parentScreen, false, false)
} }
} }

View File

@@ -8,7 +8,7 @@
{ {
"term": "(Unnamed)", "term": "(Unnamed)",
"context": "(Unnamed)", "context": "(Unnamed)",
"reference": "Modules/Dock/DockContextMenu.qml:226", "reference": "Modules/Dock/DockContextMenu.qml:227",
"comment": "" "comment": ""
}, },
{ {
@@ -692,7 +692,7 @@
{ {
"term": "Close", "term": "Close",
"context": "Close", "context": "Close",
"reference": "Modules/SystemUpdatePopout.qml:335, Modals/NetworkWiredInfoModal.qml:131, Modals/NetworkInfoModal.qml:131, Modules/DankBar/Widgets/RunningApps.qml:770", "reference": "Modules/SystemUpdatePopout.qml:335, Modals/NetworkWiredInfoModal.qml:131, Modals/NetworkInfoModal.qml:131, Modules/DankBar/Widgets/RunningApps.qml:778",
"comment": "" "comment": ""
}, },
{ {
@@ -1988,7 +1988,7 @@
{ {
"term": "Launch on dGPU", "term": "Launch on dGPU",
"context": "Launch on dGPU", "context": "Launch on dGPU",
"reference": "Modals/Spotlight/SpotlightContextMenu.qml:312, Modules/AppDrawer/AppDrawerPopout.qml:806, Modules/Dock/DockContextMenu.qml:417", "reference": "Modals/Spotlight/SpotlightContextMenu.qml:312, Modules/AppDrawer/AppDrawerPopout.qml:806, Modules/Dock/DockContextMenu.qml:418",
"comment": "" "comment": ""
}, },
{ {
@@ -2726,7 +2726,7 @@
{ {
"term": "Pin to Dock", "term": "Pin to Dock",
"context": "Pin to Dock", "context": "Pin to Dock",
"reference": "Modals/Spotlight/SpotlightContextMenu.qml:110, Modals/Spotlight/SpotlightContextMenu.qml:113, Modules/AppDrawer/AppDrawerPopout.qml:609, Modules/Dock/DockContextMenu.qml:370", "reference": "Modals/Spotlight/SpotlightContextMenu.qml:110, Modals/Spotlight/SpotlightContextMenu.qml:113, Modules/AppDrawer/AppDrawerPopout.qml:609, Modules/Dock/DockContextMenu.qml:371",
"comment": "" "comment": ""
}, },
{ {
@@ -3806,7 +3806,7 @@
{ {
"term": "Unpin from Dock", "term": "Unpin from Dock",
"context": "Unpin from Dock", "context": "Unpin from Dock",
"reference": "Modals/Spotlight/SpotlightContextMenu.qml:113, Modules/AppDrawer/AppDrawerPopout.qml:609, Modules/Dock/DockContextMenu.qml:370", "reference": "Modals/Spotlight/SpotlightContextMenu.qml:113, Modules/AppDrawer/AppDrawerPopout.qml:609, Modules/Dock/DockContextMenu.qml:371",
"comment": "" "comment": ""
}, },
{ {

View File

@@ -312,7 +312,7 @@
"Center Section": "Orta Bölüm" "Center Section": "Orta Bölüm"
}, },
"Changes:": { "Changes:": {
"Changes:": "" "Changes:": "Değişiklikler:"
}, },
"Check for system updates": { "Check for system updates": {
"Check for system updates": "Sistem güncellemelerini kontrol et" "Check for system updates": "Sistem güncellemelerini kontrol et"
@@ -414,7 +414,7 @@
"Confirm": "Onayla" "Confirm": "Onayla"
}, },
"Confirm Display Changes": { "Confirm Display Changes": {
"Confirm Display Changes": "" "Confirm Display Changes": "Ekran Değişikliklerini Onaylayın"
}, },
"Confirm passkey for ": { "Confirm passkey for ": {
"Confirm passkey for ": "Şunun için şifreyi onayla: " "Confirm passkey for ": "Şunun için şifreyi onayla: "
@@ -591,7 +591,7 @@
"Disable Autoconnect": "Otomatik Bağlanmayı Devre Dışı Bırak" "Disable Autoconnect": "Otomatik Bağlanmayı Devre Dışı Bırak"
}, },
"Disabled": { "Disabled": {
"Disabled": "" "Disabled": "Devre Dışı"
}, },
"Disconnect": { "Disconnect": {
"Disconnect": "Bağlantıyı Kes" "Disconnect": "Bağlantıyı Kes"
@@ -621,7 +621,7 @@
"Display currently focused application title": "Şu anda odaklanmış uygulamanın başlığını göster" "Display currently focused application title": "Şu anda odaklanmış uygulamanın başlığını göster"
}, },
"Display settings for ": { "Display settings for ": {
"Display settings for ": "" "Display settings for ": "Ekran ayarları: "
}, },
"Display volume and brightness percentage values by default in OSD popups": { "Display volume and brightness percentage values by default in OSD popups": {
"Display volume and brightness percentage values by default in OSD popups": "OSD açılır pencerelerinde varsayılan olarak ses seviyesi ve parlaklık yüzdelik değerlerini göster" "Display volume and brightness percentage values by default in OSD popups": "OSD açılır pencerelerinde varsayılan olarak ses seviyesi ve parlaklık yüzdelik değerlerini göster"
@@ -699,7 +699,7 @@
"Enable loginctl lock integration": "loginctl kilit entegrasyonunu etkinleştir" "Enable loginctl lock integration": "loginctl kilit entegrasyonunu etkinleştir"
}, },
"Enabled": { "Enabled": {
"Enabled": "" "Enabled": "Etkin"
}, },
"End": { "End": {
"End": "Son" "End": "Son"
@@ -966,7 +966,7 @@
"Individual Batteries": "Tekil Piller" "Individual Batteries": "Tekil Piller"
}, },
"Inhibit idle timeout when audio or video is playing": { "Inhibit idle timeout when audio or video is playing": {
"Inhibit idle timeout when audio or video is playing": "" "Inhibit idle timeout when audio or video is playing": "Ses veya video oynatılırken boşta kalma süresini engelle"
}, },
"Input Devices": { "Input Devices": {
"Input Devices": "Giriş Aygıtları" "Input Devices": "Giriş Aygıtları"
@@ -993,7 +993,7 @@
"Jobs: ": "İşler:" "Jobs: ": "İşler:"
}, },
"Keep Changes": { "Keep Changes": {
"Keep Changes": "" "Keep Changes": "Değişiklikleri Tut"
}, },
"Keyboard Layout Name": { "Keyboard Layout Name": {
"Keyboard Layout Name": "Klavye Düzeni Adı" "Keyboard Layout Name": "Klavye Düzeni Adı"
@@ -1164,7 +1164,7 @@
"Mode:": "Mod:" "Mode:": "Mod:"
}, },
"Mode: ": { "Mode: ": {
"Mode: ": "" "Mode: ": "Mod: "
}, },
"Monitor": { "Monitor": {
"Monitor": "Monitör" "Monitor": "Monitör"
@@ -1449,7 +1449,7 @@
"Position": "Pozisyon" "Position": "Pozisyon"
}, },
"Position: ": { "Position: ": {
"Position: ": "" "Position: ": "Pozisyon: "
}, },
"Power & Security": { "Power & Security": {
"Power & Security": "Güç & Güvenlik" "Power & Security": "Güç & Güvenlik"
@@ -1470,7 +1470,7 @@
"Pressure": "Basınç" "Pressure": "Basınç"
}, },
"Prevent idle for media": { "Prevent idle for media": {
"Prevent idle for media": "" "Prevent idle for media": "Medya için boşta kalmayı önle"
}, },
"Prevent screen timeout": { "Prevent screen timeout": {
"Prevent screen timeout": "Ekran zaman aşımını önle" "Prevent screen timeout": "Ekran zaman aşımını önle"
@@ -1560,10 +1560,10 @@
"Resume": "Sürdür" "Resume": "Sürdür"
}, },
"Revert": { "Revert": {
"Revert": "" "Revert": "Geri Al"
}, },
"Reverting in:": { "Reverting in:": {
"Reverting in:": "" "Reverting in:": "Geri dönülüyor:"
}, },
"Right": { "Right": {
"Right": "Sağ" "Right": "Sağ"
@@ -2037,7 +2037,7 @@
"VPN status and quick connect": "VPN durumu ve hızlı bağlanma" "VPN status and quick connect": "VPN durumu ve hızlı bağlanma"
}, },
"VRR: ": { "VRR: ": {
"VRR: ": "" "VRR: ": "VRR: "
}, },
"Vibrant palette with playful saturation.": { "Vibrant palette with playful saturation.": {
"Vibrant palette with playful saturation.": "Oynak doygunluğa sahip canlı palet" "Vibrant palette with playful saturation.": "Oynak doygunluğa sahip canlı palet"