forked from Shinonome/dots-hyprland
wbar: more interactions
This commit is contained in:
@@ -12,7 +12,7 @@ Button {
|
|||||||
topInset: 4
|
topInset: 4
|
||||||
bottomInset: 4
|
bottomInset: 4
|
||||||
|
|
||||||
property color borderColor: ColorUtils.transparentize(Looks.colors.bg1Border, (root.hovered && !root.down) ? Looks.fluentContentTransparency : 1)
|
property color borderColor: ColorUtils.transparentize(Looks.colors.bg1Border, ((root.hovered && !root.down) || root.checked) ? Looks.fluentContentTransparency : 1)
|
||||||
Behavior on borderColor {
|
Behavior on borderColor {
|
||||||
animation: Looks.transition.color.createObject(this)
|
animation: Looks.transition.color.createObject(this)
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,7 @@ Button {
|
|||||||
color: {
|
color: {
|
||||||
if (root.down) {
|
if (root.down) {
|
||||||
return Looks.colors.bg1Active
|
return Looks.colors.bg1Active
|
||||||
} else if (root.hovered) {
|
} else if ((root.hovered && !root.down) || root.checked) {
|
||||||
return Looks.colors.bg1Hover
|
return Looks.colors.bg1Hover
|
||||||
} else {
|
} else {
|
||||||
return ColorUtils.transparentize(Looks.colors.bg1)
|
return ColorUtils.transparentize(Looks.colors.bg1)
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import org.kde.kirigami as Kirigami
|
import org.kde.kirigami as Kirigami
|
||||||
|
import qs
|
||||||
import qs.services
|
import qs.services
|
||||||
import qs.modules.common
|
import qs.modules.common
|
||||||
import qs.modules.waffle.looks
|
import qs.modules.waffle.looks
|
||||||
@@ -9,4 +10,9 @@ AppButton {
|
|||||||
id: root
|
id: root
|
||||||
|
|
||||||
iconName: "task-view"
|
iconName: "task-view"
|
||||||
|
|
||||||
|
checked: GlobalStates.overviewOpen
|
||||||
|
onClicked: {
|
||||||
|
GlobalStates.overviewOpen = !GlobalStates.overviewOpen;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
import qs
|
||||||
import qs.services
|
import qs.services
|
||||||
import qs.modules.common
|
import qs.modules.common
|
||||||
import qs.modules.waffle.looks
|
import qs.modules.waffle.looks
|
||||||
@@ -10,6 +11,11 @@ BarButton {
|
|||||||
rightInset: 12 // For now this is the rightmost button. Desktop peek is useless. (for now)
|
rightInset: 12 // For now this is the rightmost button. Desktop peek is useless. (for now)
|
||||||
padding: 12
|
padding: 12
|
||||||
|
|
||||||
|
checked: GlobalStates.sidebarRightOpen
|
||||||
|
onClicked: {
|
||||||
|
GlobalStates.sidebarRightOpen = !GlobalStates.sidebarRightOpen;
|
||||||
|
}
|
||||||
|
|
||||||
contentItem: Item {
|
contentItem: Item {
|
||||||
anchors.centerIn: root.background
|
anchors.centerIn: root.background
|
||||||
implicitHeight: column.implicitHeight
|
implicitHeight: column.implicitHeight
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ Scope {
|
|||||||
screen: modelData
|
screen: modelData
|
||||||
exclusionMode: ExclusionMode.Ignore
|
exclusionMode: ExclusionMode.Ignore
|
||||||
exclusiveZone: implicitHeight
|
exclusiveZone: implicitHeight
|
||||||
WlrLayershell.namespace: "quickshell:wbar"
|
WlrLayershell.namespace: "quickshell:wBar"
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
left: true
|
left: true
|
||||||
|
|||||||
Reference in New Issue
Block a user