From e0092b4fcb02ed15a4b633549b10bd7630d8b895 Mon Sep 17 00:00:00 2001 From: ivo Date: Wed, 14 May 2025 21:45:23 +0200 Subject: [PATCH] chore: change new-tag icon --- lib/src/pages/manager.dart | 12 +++--------- lib/src/widgets/manager/new_vm_tag.dart | 11 +---------- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/lib/src/pages/manager.dart b/lib/src/pages/manager.dart index be74432..e9dc1e7 100644 --- a/lib/src/pages/manager.dart +++ b/lib/src/pages/manager.dart @@ -54,7 +54,7 @@ class _ManagerState extends State with PreferencesMixin { 'xterm', ]; Timer? refreshTimer; - List newVmNames = []; + List _newVmNames = []; @override void initState() { @@ -84,7 +84,7 @@ class _ManagerState extends State with PreferencesMixin { } Future _setNewVmName() async { - newVmNames = + _newVmNames = await getPreference>(prefNewlyInstalledVms) ?? []; // Delete prefNewlyInstalledVms to only display once savePreference(prefNewlyInstalledVms, []); @@ -259,13 +259,7 @@ class _ManagerState extends State with PreferencesMixin { List _buildRow(String currentVm, Color buttonColor) { final bool active = _activeVms.containsKey(currentVm); final bool sshy = _sshVms.contains(currentVm); - - print('currentVm: $currentVm'); - print('newVmNames: $newVmNames'); - - final bool newVM = newVmNames.contains(currentVm); - - print('newVM $newVM'); + final bool newVM = _newVmNames.contains(currentVm); VmInfo vmInfo = VmInfo(); String connectInfo = ''; diff --git a/lib/src/widgets/manager/new_vm_tag.dart b/lib/src/widgets/manager/new_vm_tag.dart index 4d8573d..fc90c43 100644 --- a/lib/src/widgets/manager/new_vm_tag.dart +++ b/lib/src/widgets/manager/new_vm_tag.dart @@ -10,18 +10,9 @@ class NewVmTag extends StatelessWidget { child: Row( children: [ Icon( - Icons.new_releases, + Icons.fiber_new, color: Theme.of(context).colorScheme.primary, ), - Padding( - padding: const EdgeInsets.only(left: 4.0), - child: Text( - 'new', - style: TextStyle( - color: Theme.of(context).colorScheme.primary, - ), - ), - ), ], ), );