mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-07 07:49:28 -05:00
37 lines
985 B
QML
37 lines
985 B
QML
import "root:/modules/common"
|
|
import "root:/modules/common/widgets"
|
|
import "root:/modules/common/functions/color_utils.js" as ColorUtils
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
RippleButton {
|
|
id: button
|
|
property string day
|
|
property int isToday
|
|
property bool bold
|
|
|
|
Layout.fillWidth: false
|
|
Layout.fillHeight: false
|
|
implicitWidth: 38;
|
|
implicitHeight: 38;
|
|
|
|
toggled: (isToday == 1)
|
|
buttonRadius: Appearance.rounding.small
|
|
|
|
contentItem: StyledText {
|
|
anchors.fill: parent
|
|
text: day
|
|
horizontalAlignment: Text.AlignHCenter
|
|
font.weight: bold ? Font.DemiBold : Font.Normal
|
|
color: (isToday == 1) ? Appearance.m3colors.m3onPrimary :
|
|
(isToday == 0) ? Appearance.colors.colOnLayer1 :
|
|
Appearance.colors.colOutlineVariant
|
|
|
|
Behavior on color {
|
|
animation: Appearance.animation.elementMoveFast.colorAnimation.createObject(this)
|
|
}
|
|
}
|
|
}
|
|
|