f4bb5104e2
- Introduced AppColors class to centralize color definitions for better maintainability and consistency. - Updated various screens (Settings, Vault Access, Note Card, etc.) to use AppColors for styling instead of hardcoded colors. - Enhanced UI elements with improved color contrast and accessibility. - Replaced gradient backgrounds with defined color schemes for a cohesive look. - Refactored button styles and text colors to align with the new theme structure.
34 lines
691 B
Dart
34 lines
691 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:notas/theme/app_colors.dart';
|
|
|
|
class CategoryStyle {
|
|
CategoryStyle._();
|
|
|
|
static const List<Color> colors = AppColors.categoryColors;
|
|
|
|
static const List<IconData> icons = <IconData>[
|
|
Icons.label_outline_rounded,
|
|
Icons.work,
|
|
Icons.star,
|
|
Icons.home,
|
|
Icons.school,
|
|
Icons.book,
|
|
Icons.music_note,
|
|
Icons.lightbulb,
|
|
];
|
|
|
|
static IconData iconForCodePoint(int? codePoint) {
|
|
if (codePoint == null) {
|
|
return Icons.folder_outlined;
|
|
}
|
|
|
|
for (final IconData icon in icons) {
|
|
if (icon.codePoint == codePoint) {
|
|
return icon;
|
|
}
|
|
}
|
|
|
|
return Icons.folder_outlined;
|
|
}
|
|
}
|