chore: change new-tag icon
This commit is contained in:
parent
6566cfd10a
commit
e0092b4fcb
|
|
@ -54,7 +54,7 @@ class _ManagerState extends State<Manager> with PreferencesMixin {
|
|||
'xterm',
|
||||
];
|
||||
Timer? refreshTimer;
|
||||
List<String> newVmNames = <String>[];
|
||||
List<String> _newVmNames = <String>[];
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
|
|
@ -84,7 +84,7 @@ class _ManagerState extends State<Manager> with PreferencesMixin {
|
|||
}
|
||||
|
||||
Future<void> _setNewVmName() async {
|
||||
newVmNames =
|
||||
_newVmNames =
|
||||
await getPreference<List<String>>(prefNewlyInstalledVms) ?? <String>[];
|
||||
// Delete prefNewlyInstalledVms to only display once
|
||||
savePreference(prefNewlyInstalledVms, <String>[]);
|
||||
|
|
@ -259,13 +259,7 @@ class _ManagerState extends State<Manager> with PreferencesMixin {
|
|||
List<Widget> _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 = '';
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue