Some slight updates to handling hovering buttons and added alpha of network
This commit is contained in:
@@ -41,6 +41,7 @@ PanelWindow {
|
|||||||
spacing: 8
|
spacing: 8
|
||||||
|
|
||||||
MenuButton {}
|
MenuButton {}
|
||||||
|
// TODO: Add functionallity (Maybe just rofi or own way)
|
||||||
|
|
||||||
Workspaces {
|
Workspaces {
|
||||||
thisMonitor: barThisMonitor
|
thisMonitor: barThisMonitor
|
||||||
@@ -70,6 +71,7 @@ PanelWindow {
|
|||||||
spacing: 8
|
spacing: 8
|
||||||
|
|
||||||
// TODO: Add bluetooth, network, audio, power, maybe HW monitor
|
// TODO: Add bluetooth, network, audio, power, maybe HW monitor
|
||||||
|
// Network {}
|
||||||
PowerButton {}
|
PowerButton {}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
import QtQuick
|
||||||
|
import Quickshell
|
||||||
|
import Quickshell.Hyprland
|
||||||
|
// import Quickshell.Networking
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
id: networkButton
|
||||||
|
width: 30
|
||||||
|
height: 28
|
||||||
|
hoverEnabled: true
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.fill: parent
|
||||||
|
color: networkButton.containsMouse ? "#2a2a2a" : "transparent"
|
||||||
|
radius: 6
|
||||||
|
|
||||||
|
Text {
|
||||||
|
anchors.centerIn: parent
|
||||||
|
text: " "
|
||||||
|
font.pixelSize: 26
|
||||||
|
font.family: "Nerd Font"
|
||||||
|
color: "#ffffff"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -4,7 +4,7 @@ import Quickshell.Hyprland
|
|||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: archButton
|
id: powerButton
|
||||||
width: 30
|
width: 30
|
||||||
height: 28
|
height: 28
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
@@ -12,7 +12,7 @@ MouseArea {
|
|||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: archButton.containsMouse ? "#2a2a2a" : "transparent"
|
color: powerButton.containsMouse ? "#2a2a2a" : "transparent"
|
||||||
radius: 6
|
radius: 6
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
|||||||
@@ -22,10 +22,20 @@ Row { // Workspace Row
|
|||||||
border.width: 2
|
border.width: 2
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
id: workspaceButton
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: Hyprland.dispatch("workspace " + modelData.id)
|
onClicked: Hyprland.dispatch("workspace " + modelData.id)
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.fill: parent
|
||||||
|
color: workspaceButton.containsMouse ?
|
||||||
|
modelData.active ? "#7fbaff"
|
||||||
|
: "#808080"
|
||||||
|
: "transparent"
|
||||||
|
radius: 6
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
|||||||
Reference in New Issue
Block a user