osd attached to triggering module position, per-screen filtering
This commit is contained in:
parent
85a1260a35
commit
66dc628752
4 changed files with 19 additions and 6 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import "." as M
|
||||
|
||||
|
|
@ -11,7 +12,7 @@ M.BarSection {
|
|||
|
||||
property int percent: 0
|
||||
onPercentChanged: if (percent > 0)
|
||||
M.OsdState.show(percent / 100, "\uF185")
|
||||
M.OsdState.show(percent / 100, "\uF185", root.mapToGlobal(root.width / 2, 0).x - (QsWindow.window?.screen?.x ?? 0), QsWindow.window?.screen ?? null)
|
||||
|
||||
Process {
|
||||
id: adjProc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue