initial commit
This commit is contained in:
commit
d0900383e3
7 changed files with 137 additions and 0 deletions
22
modules/bar/ActiveWindow.qml
Normal file
22
modules/bar/ActiveWindow.qml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import Quickshell.Widgets
|
||||
import Quickshell.Hyprland
|
||||
import QtQuick
|
||||
import qs
|
||||
import qs.widgets
|
||||
|
||||
ClippingWrapperRectangle {
|
||||
id: root
|
||||
clip: true
|
||||
color: Colors.base01
|
||||
required property int barHeight
|
||||
readonly property double vertMargin: barHeight / 4 - 4
|
||||
topMargin: vertMargin
|
||||
bottomMargin: vertMargin
|
||||
leftMargin: 8
|
||||
rightMargin: 8
|
||||
child: StyledText {
|
||||
text: Hyprland.activeToplevel?.title ?? "Desktop"
|
||||
width: Math.min(implicitWidth, 50)
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue