Merge pull request #543 from lonerOrz/feature/calendar-event-toggle

feat: Add toggle to enable or disable calendar event display
This commit is contained in:
Lemmy
2025-10-21 09:53:53 -04:00
committed by GitHub
11 changed files with 46 additions and 3 deletions
+2 -1
View File
@@ -561,7 +561,7 @@ NPanel {
// Event indicator dots
Row {
visible: parent.parent.parent.parent.parent.hasEventsOnDate(model.year, model.month, model.day)
visible: Settings.data.location.showCalendarEvents && parent.parent.parent.parent.parent.hasEventsOnDate(model.year, model.month, model.day)
spacing: 2
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
@@ -587,6 +587,7 @@ NPanel {
MouseArea {
anchors.fill: parent
hoverEnabled: true
enabled: Settings.data.location.showCalendarEvents
onEntered: {
const events = parent.parent.parent.parent.parent.getEventsForDate(model.year, model.month, model.day)
+7
View File
@@ -117,6 +117,13 @@ ColumnLayout {
checked: Settings.data.location.showWeekNumberInCalendar
onToggled: checked => Settings.data.location.showWeekNumberInCalendar = checked
}
NToggle {
label: I18n.tr("settings.location.date-time.show-events.label")
description: I18n.tr("settings.location.date-time.show-events.description")
checked: Settings.data.location.showCalendarEvents
onToggled: checked => Settings.data.location.showCalendarEvents = checked
}
}
NDivider {