fix(android): resolve local asset image resource loading using asyncimage and bundle url

This commit is contained in:
Daniel Arantes Loverde
2026-05-27 15:01:49 -03:00
parent c14bd7a928
commit 215d208f4f
24 changed files with 103 additions and 36 deletions

View File

@@ -7,7 +7,8 @@ import AppKit
// MARK: - Colors
enum AppColors {
struct AppColors {
private init() {}
// Brandbook 2026 (Pedi Foods)
// Primary now follows the "FOODS" dark green tone from the logo.
static let primary = Color(.sRGB, red: 52/255.0, green: 93/255.0, blue: 84/255.0, opacity: 1.0)
@@ -26,7 +27,8 @@ enum AppColors {
static let textMuted = Color(.sRGB, red: 102/255.0, green: 112/255.0, blue: 133/255.0, opacity: 1.0)
}
enum AppDarkColors {
struct AppDarkColors {
private init() {}
static let background = Color(.sRGB, red: 31/255.0, green: 45/255.0, blue: 64/255.0, opacity: 1.0)
static let surface = Color.white.opacity(0.08)
static let textPrimary = Color.white
@@ -38,7 +40,8 @@ enum AppDarkColors {
// MARK: - Typography
enum AppTypography {
struct AppTypography {
private init() {}
// Brandbook typography: Nexa (fallback: system font)
static let fontFamily = "Nexa-Regular"
@@ -75,7 +78,8 @@ enum AppTypography {
// MARK: - Layout
enum AppLayout {
struct AppLayout {
private init() {}
static let radiusMD: CGFloat = 12
static let radiusLG: CGFloat = 16
static let radiusXL: CGFloat = 24
@@ -92,7 +96,8 @@ struct ShadowSpec {
let y: CGFloat
}
enum AppShadow {
struct AppShadow {
private init() {}
static let soft = ShadowSpec(color: Color.black.opacity(0.08), radius: 20, y: 6)
static let glow = ShadowSpec(color: AppColors.tertiary.opacity(0.2), radius: 24, y: 8)
}