Notification: prefer notification image over app image
This commit is contained in:
parent
f8ed4f48cf
commit
3ceba43802
4 changed files with 8 additions and 4 deletions
|
|
@ -200,11 +200,13 @@ Variants {
|
||||||
Layout.alignment: Qt.AlignTop
|
Layout.alignment: Qt.AlignTop
|
||||||
// Start avatar aligned with body (below the summary)
|
// Start avatar aligned with body (below the summary)
|
||||||
anchors.topMargin: textContent.childrenRect.y
|
anchors.topMargin: textContent.childrenRect.y
|
||||||
imagePath: Icons.iconFromName(model.appIcon, "application-x-executable")
|
// Prefer notification-provided image (e.g., user avatar) then fall back to app icon
|
||||||
|
imagePath: (model.image && model.image !== "") ? model.image : Icons.iconFromName(
|
||||||
|
model.appIcon, "application-x-executable")
|
||||||
fallbackIcon: "apps"
|
fallbackIcon: "apps"
|
||||||
borderColor: Color.transparent
|
borderColor: Color.transparent
|
||||||
borderWidth: 0
|
borderWidth: 0
|
||||||
visible: imagePath && imagePath !== ""
|
visible: (imagePath && imagePath !== "")
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
|
||||||
|
|
@ -378,6 +378,7 @@ NBox {
|
||||||
if (targetWidget) {
|
if (targetWidget) {
|
||||||
const targetCenterX = targetWidget.x + targetWidget.width / 2
|
const targetCenterX = targetWidget.x + targetWidget.width / 2
|
||||||
if (mouseX > targetCenterX) {
|
if (mouseX > targetCenterX) {
|
||||||
|
|
||||||
// Mouse is to the right of target center, insert after
|
// Mouse is to the right of target center, insert after
|
||||||
//Logger.log("BarSectionEditor", "Inserting after widget at index:", targetIndex)
|
//Logger.log("BarSectionEditor", "Inserting after widget at index:", targetIndex)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ Singleton {
|
||||||
}
|
}
|
||||||
|
|
||||||
fontsLoaded = true
|
fontsLoaded = true
|
||||||
Logger.log("FontService", "Loaded", availableFonts.count, "fonts:" , monospaceFonts.count, "monospace,",
|
Logger.log("FontService", "Loaded", availableFonts.count, "fonts:", monospaceFonts.count, "monospace,",
|
||||||
displayFonts.count, "display")
|
displayFonts.count, "display")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,8 @@ Loader {
|
||||||
property alias isClosing: hideTimer.running
|
property alias isClosing: hideTimer.running
|
||||||
readonly property real barHeight: Math.round(Style.barHeight * scaling)
|
readonly property real barHeight: Math.round(Style.barHeight * scaling)
|
||||||
readonly property bool barAtBottom: Settings.data.bar.position === "bottom"
|
readonly property bool barAtBottom: Settings.data.bar.position === "bottom"
|
||||||
readonly property bool barIsVisible: (screen !== null) && (Settings.data.bar.monitors.includes(screen.name) || (Settings.data.bar.monitors.length === 0))
|
readonly property bool barIsVisible: (screen !== null) && (Settings.data.bar.monitors.includes(screen.name)
|
||||||
|
|| (Settings.data.bar.monitors.length === 0))
|
||||||
|
|
||||||
signal opened
|
signal opened
|
||||||
signal closed
|
signal closed
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue