Update: Toast notification for updates, CMakeLists fix
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user