move qs config to work on mango and do general improvements
This commit is contained in:
commit
0f8929c55a
30 changed files with 994 additions and 0 deletions
31
modules/bar/ActiveWindow.qml~
Normal file
31
modules/bar/ActiveWindow.qml~
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
pragma ComponentBehavior: Bound
|
||||
import Quickshell.Widgets
|
||||
import Quickshell.Hyprland
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import qs
|
||||
import qs.widgets
|
||||
import qs.settings
|
||||
import QtQuick.Effects
|
||||
|
||||
BarComponent {
|
||||
id: root
|
||||
implicitHeight: moduleHeight
|
||||
implicitWidth: titleLayout.width + 32
|
||||
color: Colors.moduleBg
|
||||
radius: Config.rounding
|
||||
RowLayout {
|
||||
id: titleLayout
|
||||
anchors.centerIn: root
|
||||
WrapperRectangle {
|
||||
Layout.maximumWidth: 400
|
||||
color: 'transparent'
|
||||
clip: true
|
||||
StyledText {
|
||||
property bool onWs: Hyprland.activeToplevel?.workspace == Hyprland.focusedWorkspace
|
||||
text: onWs ? Hyprland.activeToplevel?.title ?? "Desktop" : "Desktop"
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue