Update: Toast notification for updates, CMakeLists fix

This commit is contained in:
Umbrix Admin
2026-01-20 12:56:19 +03:00
parent 2fe66e65c1
commit 0b46de4fa8
414 changed files with 1176 additions and 6 deletions

View File

@@ -98,7 +98,8 @@ class AppUpdateNotifier extends _$AppUpdateNotifier with AppLogger {
}
void _showUpdateNotification(RemoteVersionEntity version) {
// TODO: Реализовать уведомление через system tray
loggy.info("new version available: ${version.version}");
loggy.warning("🚀 ДОСТУПНО ОБНОВЛЕНИЕ: ${version.version}");
loggy.warning("📦 Перейдите в Настройки → О программе для установки");
// TODO: Добавить уведомление в system tray
}
}

View File

@@ -154,6 +154,41 @@ class QuickSettingsModal extends HookConsumerWidget {
onSelectionChanged: (newSet) => ref.read(ConfigOptions.serviceMode.notifier).update(newSet.first),
),
),
// Описание выбранного режима
Padding(
padding: const EdgeInsets.fromLTRB(16, 12, 16, 0),
child: Container(
padding: const EdgeInsets.all(12),
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.surfaceVariant.withOpacity(0.3),
borderRadius: BorderRadius.circular(8),
border: Border.all(
color: Theme.of(context).colorScheme.outline.withOpacity(0.2),
),
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Icon(
FluentIcons.info_20_regular,
size: 18,
color: Theme.of(context).colorScheme.primary,
),
const SizedBox(width: 8),
Expanded(
child: Text(
ref.watch(ConfigOptions.serviceMode).presentDetailed(t),
style: TextStyle(
fontSize: 13,
color: Theme.of(context).colorScheme.onSurfaceVariant,
height: 1.4,
),
),
),
],
),
),
),
const Gap(8),
if (warpPrefaceCompleted)
SwitchListTile(