Files
gotify-tray-customized/gotify_tray/database/default_settings.py
kdusek 2108568f50
Some checks failed
build / build-pip (push) Failing after 1m13s
build / build-win64 (push) Has been cancelled
build / build-macos (push) Has been cancelled
Add persistent notifications for priority 10 messages
- Implement custom PersistentNotification widget with flashing background
- Add settings for persistent priority 10 notifications and sound control
- Modify notification logic to show persistent pop-ups for priority 10
- Allow closing all persistent notifications via tray icon click
- Add AGENTS.md with type checking guidelines
- Configure pyright to suppress PyQt6 false positives
- Update UI in settings dialog for new options
- Add notification sound file
2025-11-26 15:10:50 +01:00

39 lines
1.2 KiB
Python

import os
from pathlib import Path
from ..__version__ import __title__
DEFAULT_SETTINGS = {
"message/check_missed/notify": True,
"locale": False,
"logging/level": "Disabled",
"export/path": os.path.join(
Path.home(), f"{__title__.replace(' ', '-').lower()}-settings.bytes"
),
"shortcuts/quit": "Ctrl+Q",
"tray/notifications/priority": 5,
"tray/notifications/duration_ms": 5000,
"tray/notifications/icon/show": True,
"tray/notifications/click": True,
"tray/notifications/priority10_persistent": True,
"tray/notifications/sound_only_priority10": True,
"tray/icon/unread": False,
"watchdog/enabled": True,
"watchdog/interval/s": 60,
"MessageWidget/height/min": 100,
"MessageWidget/image/size": 33,
"MessageWidget/content_image/W_percentage": 1.0,
"MessageWidget/content_image/H_percentage": 0.5,
"MessageWidget/priority_color": True,
"MessageWidget/image_urls": True,
"MainWindow/label/size": 25,
"MainWindow/button/size": 33,
"MainWindow/application/icon/size": 40,
"ApplicationModel/sort": False,
"ImagePopup/enabled": False,
"ImagePopup/extensions": [".jpg", ".jpeg", ".png", ".svg"],
"ImagePopup/w": 400,
"ImagePopup/h": 400,
}