fix text overflow from Title
This commit is contained in:
parent
e08b910471
commit
4ad47093e6
@ -6,12 +6,14 @@ import Quickshell.Hyprland
|
||||
Item {
|
||||
id: root
|
||||
readonly property var activeWindow: Hyprland.activeToplevel
|
||||
implicitWidth: text.implicitWidth
|
||||
implicitWidth: Math.min(text.implicitWidth, 500)
|
||||
implicitHeight: Settings.config.barHeight
|
||||
CustomText {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
id: text
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
text: root.activeWindow ? Hyprland.activeToplevel.title : "Desktop"
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,4 +18,8 @@ Item {
|
||||
command: ["sh", "-c", cmd]
|
||||
onStarted: console.log("started wallust runner" + command)
|
||||
}
|
||||
Process {
|
||||
id: kittyKiller
|
||||
command: ["sh", "-c", "pkill", "-SIGUSR1", "kitty"]
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,6 +8,7 @@ import "../../"
|
||||
import QtQuick.Layouts
|
||||
import Quickshell.Widgets
|
||||
import "../../settings/"
|
||||
import "../../reusables/"
|
||||
|
||||
Variants {
|
||||
model: Quickshell.screens
|
||||
@ -93,23 +94,17 @@ Variants {
|
||||
Layout.alignment: Qt.AlignTop
|
||||
spacing: 2
|
||||
|
||||
Text {
|
||||
CustomText {
|
||||
text: notifyItem.modelData.summary
|
||||
color: Colors.foreground
|
||||
font.family: Settings.config.font
|
||||
font.pixelSize: Settings.config.fontSize
|
||||
font.bold: true
|
||||
elide: Text.ElideRight
|
||||
Layout.fillWidth: true
|
||||
onTextChanged: dismissTimer.restart()
|
||||
}
|
||||
|
||||
Text {
|
||||
CustomText {
|
||||
text: notifyItem.modelData.body
|
||||
color: Colors.foreground
|
||||
|
||||
font.family: Settings.config.font
|
||||
font.pixelSize: Settings.config.fontSize - 2
|
||||
maximumLineCount: 3
|
||||
wrapMode: Text.WordWrap
|
||||
elide: Text.ElideRight
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user