mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
put shell in subdir, and add nix package
This commit is contained in:
parent
c45c04e9ac
commit
f41ea4b1cb
100 changed files with 57 additions and 126 deletions
42
shell/bar/mpris/Button.qml
Normal file
42
shell/bar/mpris/Button.qml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
import QtQuick
|
||||
import "../../mpris" as Mpris
|
||||
import "../../widgets" as Widgets
|
||||
import "../.."
|
||||
|
||||
Widgets.MaterialButton {
|
||||
id: root
|
||||
radius: 6
|
||||
implicitWidth: mediaInfo.contentWidth + 8
|
||||
implicitHeight: parent.height
|
||||
// onClicked: {
|
||||
// popup.visible = !popup.visible;
|
||||
// }
|
||||
|
||||
required property var bar
|
||||
property var player: Mpris.Controller.trackedPlayer
|
||||
|
||||
Text {
|
||||
id: mediaInfo
|
||||
text: root.player?.trackTitle ?? ""
|
||||
color: root.containsMouse ? ShellSettings.colors["inverse_primary"] : ShellSettings.colors["inverse_surface"]
|
||||
elide: Text.ElideRight
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
font.pointSize: 11
|
||||
anchors.centerIn: parent
|
||||
|
||||
Behavior on color {
|
||||
ColorAnimation {
|
||||
duration: 200
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// WidgetWindow {
|
||||
// id: popup
|
||||
// visible: false
|
||||
// parentWindow: root.bar
|
||||
//
|
||||
// // anchor.window: root.bar
|
||||
// }
|
||||
9
shell/bar/mpris/WidgetWindow.qml
Normal file
9
shell/bar/mpris/WidgetWindow.qml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import Quickshell
|
||||
|
||||
PopupWindow {
|
||||
id: root
|
||||
color: "red"
|
||||
implicitWidth: 500
|
||||
implicitHeight: 500
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue