change some colors and styling, fix a issue with activeAsync in notifications Window

This commit is contained in:
2025-10-12 21:57:14 -03:00
parent 5cdc0d3c1e
commit e4087938a5
4 changed files with 17 additions and 17 deletions

View File

@@ -1,6 +1,5 @@
// CalendarComponent.qml (For one month)
import QtQuick
import QtQuick.Controls
import qs.Common
import qs.Common.Styled
@@ -93,7 +92,7 @@ Item {
let isCurrentMonth = root.targetYear === root.currentDate.getFullYear() && root.targetMonth === root.currentDate.getMonth();
let isCurrentDay = isCurrentMonth && modelData === root.currentDate.getDate();
return isCurrentDay ? Theme.color6Bright : Theme.textColor;
return isCurrentDay ? Theme.color5Bright : Theme.textColor;
}
}
}

View File

@@ -74,9 +74,10 @@ Item {
onClicked: mouse => {
if (mouse.button === Qt.RightButton) {
NotificationService.manualNotificationsMuted = !NotificationService.manualNotificationsMuted
NotificationService.manualNotificationsMuted = !NotificationService.manualNotificationsMuted;
return;
}
console.log(root.createWindow);
root.createWindow = !root.createWindow;
}
}
@@ -85,11 +86,10 @@ Item {
LazyLoader {
id: windowLoader
activeAsync: NotificationService.notificationsNumber ? createWindow : false
active: NotificationService.notificationsNumber ? root.createWindow : false
component: NotificationWindow {
onClear: root.createWindow = false
}
}
}

View File

@@ -32,7 +32,8 @@ PanelWindow {
contentItem {
focus: true
Keys.onPressed: event => {
if (event.key == Qt.Key_Escape) notificationRoot.clear();
if (event.key == Qt.Key_Escape)
notificationRoot.clear();
}
}
MouseArea {
@@ -68,7 +69,7 @@ PanelWindow {
anchors.fill: parent
onClicked: {
while (NotificationService.notificationsNumber != 0) {
NotificationService.notificationDismiss(NotificationService.trackedNotifications.get(0).notif)
NotificationService.notificationDismiss(NotificationService.trackedNotifications.get(0).notif);
}
}
}

View File

@@ -65,7 +65,7 @@ WrapperMouseArea {
when: workspacesRectangle.workspaceActive
PropertyChanges {
workspacesRectangle {
color: Theme.color6
color: Theme.color5
implicitWidth: Theme.barSize * 1.5
}
}