fix window title visibility and elision, document weather.interval
This commit is contained in:
parent
e1565bdd59
commit
25bc3954cb
3 changed files with 9 additions and 3 deletions
|
|
@ -7,7 +7,7 @@ import "." as M
|
|||
M.BarSection {
|
||||
id: root
|
||||
spacing: M.Theme.moduleSpacing
|
||||
visible: M.Modules.windowTitle.enable && M.NiriIpc.available && M.NiriIpc.focusedTitle !== ""
|
||||
visible: M.Modules.windowTitle.enable && M.NiriIpc.focusedTitle !== ""
|
||||
|
||||
tooltip: M.NiriIpc.focusedAppId ? M.NiriIpc.focusedAppId + "\n" + M.NiriIpc.focusedTitle : M.NiriIpc.focusedTitle
|
||||
|
||||
|
|
@ -19,6 +19,7 @@ M.BarSection {
|
|||
}
|
||||
|
||||
IconImage {
|
||||
id: _icon
|
||||
visible: root._iconSource !== ""
|
||||
source: root._iconSource
|
||||
implicitSize: M.Theme.fontSize + 2
|
||||
|
|
@ -35,5 +36,6 @@ M.BarSection {
|
|||
color: root.accentColor
|
||||
elide: Text.ElideRight
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
width: root.width - (_icon.visible ? _icon.width + root.spacing : 0)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue