Replaces the Material 3 screens with the Noo design system: warm neutrals, one violet accent, pill controls, Schibsted Grotesk/ Instrument Sans, Lucide icons, no gradients/shadows. - New lib/widgets/noo/ component kit (core, lists, files, media, nav, overlays) plus lib/theme/design_tokens.dart for the color/type/space/ radius/motion tokens. - Rebuilt the app shell (top/bottom bars, drawer, desktop sidebar and toolbar), every tab (Files/Offline, Photos, Favorites, Recent, Activity, Trash, Shares), Settings, the lock and login screens, the media viewer, search, the details/share sheets, and the share-upload and move/copy destination pickers. - Added a design canvas (linked from DESIGN_SYSTEM.md) covering the screens the spec didn't already describe, with matching Android and iOS chrome; wrote up the approved recipes into DESIGN_SYSTEM.md §4. - Removed now-dead legacy widgets (media_grid_tile, swipeable_item, sync_status_badge, selectable_thumbnail) and updated architecture.md/styling.md/standards.md to describe the new structure and component/testing conventions. - Added widget tests for the noo/ component kit. This is a UI-only rework: no provider/model/service behavior changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
58 lines
1.5 KiB
Dart
58 lines
1.5 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:lucide_icons_flutter/lucide_icons.dart';
|
|
import '../../../theme/design_tokens.dart';
|
|
|
|
/// Per-file status markers for a file row's meta line or a table row's
|
|
/// status column (`DESIGN_SYSTEM.md` 2, "Status icons").
|
|
enum NooSyncStatus {
|
|
synced,
|
|
syncing,
|
|
error,
|
|
shared;
|
|
|
|
IconData get icon {
|
|
switch (this) {
|
|
case NooSyncStatus.synced:
|
|
return LucideIcons.circleCheck;
|
|
case NooSyncStatus.syncing:
|
|
return LucideIcons.refreshCw;
|
|
case NooSyncStatus.error:
|
|
return LucideIcons.circleAlert;
|
|
case NooSyncStatus.shared:
|
|
return LucideIcons.users;
|
|
}
|
|
}
|
|
|
|
Color color(NooColors colors) {
|
|
switch (this) {
|
|
case NooSyncStatus.synced:
|
|
return colors.success;
|
|
case NooSyncStatus.syncing:
|
|
return colors.accentText;
|
|
case NooSyncStatus.error:
|
|
return colors.danger;
|
|
case NooSyncStatus.shared:
|
|
return colors.fg3;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// A single 14px status icon. For [NooSyncStatus.error] the row's meta
|
|
/// text should say what to do ("Couldn't sync · Tap to retry") - this only
|
|
/// draws the icon.
|
|
class NooStatusIcon extends StatelessWidget {
|
|
final NooSyncStatus status;
|
|
final double size;
|
|
|
|
const NooStatusIcon(this.status, {super.key, this.size = 14});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Icon(
|
|
status.icon,
|
|
size: size,
|
|
color: status.color(context.nooColors),
|
|
);
|
|
}
|
|
}
|