port new components to greeter
This commit is contained in:
@@ -49,11 +49,11 @@ CustomMouseArea {
|
||||
StateLayer {
|
||||
id: prevMonthStateLayer
|
||||
|
||||
function onClicked(): void {
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
onClicked: {
|
||||
root.state.currentDate = new Date(root.currYear, root.currMonth - 1, 1);
|
||||
}
|
||||
|
||||
radius: Appearance.rounding.full
|
||||
}
|
||||
|
||||
MaterialIcon {
|
||||
@@ -73,10 +73,6 @@ CustomMouseArea {
|
||||
implicitWidth: monthYearDisplay.implicitWidth + Appearance.padding.small * 2
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
root.state.currentDate = new Date();
|
||||
}
|
||||
|
||||
anchors.fill: monthYearDisplay
|
||||
anchors.leftMargin: -Appearance.padding.normal
|
||||
anchors.margins: -Appearance.padding.small
|
||||
@@ -86,6 +82,10 @@ CustomMouseArea {
|
||||
return root.currMonth === now.getMonth() && root.currYear === now.getFullYear();
|
||||
}
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
onClicked: {
|
||||
root.state.currentDate = new Date();
|
||||
}
|
||||
}
|
||||
|
||||
CustomText {
|
||||
@@ -107,11 +107,11 @@ CustomMouseArea {
|
||||
StateLayer {
|
||||
id: nextMonthStateLayer
|
||||
|
||||
function onClicked(): void {
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
onClicked: {
|
||||
root.state.currentDate = new Date(root.currYear, root.currMonth + 1, 1);
|
||||
}
|
||||
|
||||
radius: Appearance.rounding.full
|
||||
}
|
||||
|
||||
MaterialIcon {
|
||||
|
||||
@@ -295,12 +295,12 @@ Item {
|
||||
StateLayer {
|
||||
id: controlState
|
||||
|
||||
function onClicked(): void {
|
||||
control.onClicked();
|
||||
}
|
||||
|
||||
color: control.canUse ? DynamicColors.palette[`m3on${control.set_color}`] : DynamicColors.palette[`m3on${control.set_color}Container`]
|
||||
disabled: !control.canUse
|
||||
|
||||
onClicked: {
|
||||
control.onClicked();
|
||||
}
|
||||
// radius: Appearance.rounding.full
|
||||
}
|
||||
|
||||
|
||||
@@ -15,11 +15,11 @@ Item {
|
||||
implicitHeight: Config.launcher.sizes.itemHeight
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
radius: Appearance.rounding.smallest
|
||||
|
||||
onClicked: {
|
||||
root.modelData?.onClicked(root.list);
|
||||
}
|
||||
|
||||
radius: Appearance.rounding.smallest
|
||||
}
|
||||
|
||||
Item {
|
||||
|
||||
@@ -18,12 +18,12 @@ Item {
|
||||
implicitHeight: Config.launcher.sizes.itemHeight
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
radius: Appearance.rounding.smallest
|
||||
|
||||
onClicked: {
|
||||
Apps.launch(root.modelData);
|
||||
root.visibilities.launcher = false;
|
||||
}
|
||||
|
||||
radius: Appearance.rounding.smallest
|
||||
}
|
||||
|
||||
Item {
|
||||
|
||||
@@ -23,11 +23,11 @@ Item {
|
||||
implicitHeight: Config.launcher.sizes.itemHeight
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
radius: Appearance.rounding.smallest
|
||||
|
||||
onClicked: {
|
||||
root.onClicked();
|
||||
}
|
||||
|
||||
radius: Appearance.rounding.smallest
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
@@ -76,12 +76,12 @@ Item {
|
||||
StateLayer {
|
||||
id: stateLayer
|
||||
|
||||
function onClicked(): void {
|
||||
color: DynamicColors.palette.m3onTertiary
|
||||
|
||||
onClicked: {
|
||||
Quickshell.execDetached(["app2unit", "--", ...Config.general.apps.terminal, "fish", "-C", `exec qalc -i '${root.math}'`]);
|
||||
root.list.visibilities.launcher = false;
|
||||
}
|
||||
|
||||
color: DynamicColors.palette.m3onTertiary
|
||||
}
|
||||
|
||||
CustomText {
|
||||
|
||||
@@ -14,11 +14,11 @@ Item {
|
||||
implicitHeight: Config.launcher.sizes.itemHeight
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
radius: Appearance.rounding.smallest
|
||||
|
||||
onClicked: {
|
||||
root.modelData?.onClicked(root.list);
|
||||
}
|
||||
|
||||
radius: Appearance.rounding.smallest
|
||||
}
|
||||
|
||||
Item {
|
||||
|
||||
@@ -33,12 +33,12 @@ Item {
|
||||
}
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
radius: Appearance.rounding.normal
|
||||
|
||||
onClicked: {
|
||||
Wallpapers.setWallpaper(root.modelData.path);
|
||||
root.visibilities.launcher = false;
|
||||
}
|
||||
|
||||
radius: Appearance.rounding.normal
|
||||
}
|
||||
|
||||
Elevation {
|
||||
|
||||
@@ -108,12 +108,12 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
parent.forceActiveFocus();
|
||||
}
|
||||
|
||||
cursorShape: Qt.IBeamCursor
|
||||
hoverEnabled: false
|
||||
|
||||
onClicked: {
|
||||
parent.forceActiveFocus();
|
||||
}
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
@@ -167,11 +167,11 @@ ColumnLayout {
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
color: root.lock.pam.buffer ? DynamicColors.palette.m3onPrimary : DynamicColors.palette.m3onSurface
|
||||
|
||||
onClicked: {
|
||||
root.lock.pam.passwd.start();
|
||||
}
|
||||
|
||||
color: root.lock.pam.buffer ? DynamicColors.palette.m3onPrimary : DynamicColors.palette.m3onSurface
|
||||
}
|
||||
|
||||
MaterialIcon {
|
||||
|
||||
@@ -178,11 +178,11 @@ Item {
|
||||
StateLayer {
|
||||
id: controlState
|
||||
|
||||
function onClicked(): void {
|
||||
color: control.active ? DynamicColors.palette[`m3on${control.set_color}`] : DynamicColors.palette[`m3on${control.set_color}Container`]
|
||||
|
||||
onClicked: {
|
||||
control.onClicked();
|
||||
}
|
||||
|
||||
color: control.active ? DynamicColors.palette[`m3on${control.set_color}`] : DynamicColors.palette[`m3on${control.set_color}Container`]
|
||||
}
|
||||
|
||||
MaterialIcon {
|
||||
|
||||
@@ -161,11 +161,11 @@ CustomRect {
|
||||
}
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
color: root.urgency === "critical" ? DynamicColors.palette.m3onError : DynamicColors.palette.m3onSurface
|
||||
|
||||
onClicked: {
|
||||
root.expanded = !root.expanded;
|
||||
}
|
||||
|
||||
color: root.urgency === "critical" ? DynamicColors.palette.m3onError : DynamicColors.palette.m3onSurface
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
|
||||
@@ -32,8 +32,6 @@ CustomRect {
|
||||
}
|
||||
|
||||
StateLayer {
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
|
||||
onClicked: {
|
||||
root.visibilities.sidebar = !root.visibilities.sidebar;
|
||||
}
|
||||
|
||||
@@ -307,12 +307,12 @@ CustomRect {
|
||||
implicitWidth: expandIcon.height
|
||||
|
||||
StateLayer {
|
||||
function onClicked() {
|
||||
root.expanded = !root.expanded;
|
||||
}
|
||||
|
||||
color: root.modelData.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3onSecondaryContainer : DynamicColors.palette.m3onSurface
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
onClicked: {
|
||||
root.expanded = !root.expanded;
|
||||
}
|
||||
}
|
||||
|
||||
MaterialIcon {
|
||||
@@ -434,12 +434,12 @@ CustomRect {
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
action.modelData.invoke();
|
||||
}
|
||||
|
||||
color: root.modelData.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3onSecondary : DynamicColors.palette.m3onSurface
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
onClicked: {
|
||||
action.modelData.invoke();
|
||||
}
|
||||
}
|
||||
|
||||
CustomText {
|
||||
|
||||
@@ -78,7 +78,7 @@ Item {
|
||||
StateLayer {
|
||||
id: actionStateLayer
|
||||
|
||||
function onClicked(): void {
|
||||
onClicked: {
|
||||
if (action.modelData.isClose) {
|
||||
root.notif.close();
|
||||
} else if (action.modelData.isCopy) {
|
||||
|
||||
@@ -171,11 +171,11 @@ CustomRect {
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
color: root.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3onError : DynamicColors.palette.m3onSurface
|
||||
|
||||
onClicked: {
|
||||
root.toggleExpand(!root.expanded);
|
||||
}
|
||||
|
||||
color: root.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3onError : DynamicColors.palette.m3onSurface
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
|
||||
@@ -44,11 +44,11 @@ CustomRect {
|
||||
}
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
visible: root.enabled
|
||||
|
||||
onClicked: {
|
||||
SettingsDropdowns.toggle(menu, root);
|
||||
}
|
||||
|
||||
visible: root.enabled
|
||||
}
|
||||
|
||||
PathViewMenu {
|
||||
|
||||
@@ -131,16 +131,16 @@ GridView {
|
||||
}
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
Wallpapers.setWallpaper(modelData.path);
|
||||
}
|
||||
|
||||
anchors.bottomMargin: itemMargin
|
||||
anchors.fill: parent
|
||||
anchors.leftMargin: itemMargin
|
||||
anchors.rightMargin: itemMargin
|
||||
anchors.topMargin: itemMargin
|
||||
radius: itemRadius
|
||||
|
||||
onClicked: {
|
||||
Wallpapers.setWallpaper(modelData.path);
|
||||
}
|
||||
}
|
||||
}
|
||||
Behavior on opacity {
|
||||
|
||||
@@ -103,7 +103,10 @@ StackView {
|
||||
implicitHeight: 30
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
disabled: !item.modelData.enabled
|
||||
radius: item.radius
|
||||
|
||||
onClicked: {
|
||||
const entry = item.modelData;
|
||||
if (entry.hasChildren) {
|
||||
root.rootWidth = root.biggestWidth;
|
||||
@@ -117,9 +120,6 @@ StackView {
|
||||
root.popouts.hasCurrent = false;
|
||||
}
|
||||
}
|
||||
|
||||
disabled: !item.modelData.enabled
|
||||
radius: item.radius
|
||||
}
|
||||
|
||||
Loader {
|
||||
@@ -217,13 +217,13 @@ StackView {
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
color: DynamicColors.palette.m3onSecondaryContainer
|
||||
radius: parent.radius
|
||||
|
||||
onClicked: {
|
||||
root.pop();
|
||||
root.biggestWidth = root.rootWidth;
|
||||
}
|
||||
|
||||
color: DynamicColors.palette.m3onSecondaryContainer
|
||||
radius: parent.radius
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -153,12 +153,12 @@ Item {
|
||||
implicitWidth: icon.implicitHeight + 5 * 2
|
||||
|
||||
StateLayer {
|
||||
function onClicked(): void {
|
||||
PowerProfiles.profile = parent.profile;
|
||||
}
|
||||
|
||||
color: profiles.current === parent.icon ? DynamicColors.palette.m3onPrimary : DynamicColors.palette.m3onSurface
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
onClicked: {
|
||||
PowerProfiles.profile = parent.profile;
|
||||
}
|
||||
}
|
||||
|
||||
MaterialIcon {
|
||||
|
||||
Reference in New Issue
Block a user