Files
illogical-impulse/dots/.config/quickshell/ii/modules/waffle/bar/BarButton.qml
T
2025-11-12 00:09:22 +01:00

28 lines
666 B
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import qs.modules.common
import qs.modules.common.functions
import qs.modules.waffle.looks
Button {
id: root
Layout.fillHeight: true
topInset: 4
bottomInset: 4
background: AcrylicRectangle {
shiny: ((root.hovered && !root.down) || root.checked)
color: {
if (root.down) {
return Looks.colors.bg1Active
} else if ((root.hovered && !root.down) || root.checked) {
return Looks.colors.bg1Hover
} else {
return ColorUtils.transparentize(Looks.colors.bg1)
}
}
}
}