Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Config/Changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,25 @@
"ko": "Quick Look 미리보기가 동작하지 않던 문제 수정"
},
"issues": ["106"]
},
{
"type": "lang",
"title": {
"en": "Updates to Chinese & Polish translations",
"zh-Hans": "更新中文和波兰语翻译",
"fr": "Mises à jour des traductions chinoise et polonaise",
"de": "Aktualisierungen der chinesischen und polnischen Übersetzungen",
"it": "Aggiornamenti alle traduzioni in cinese e polacco",
"ja": "中国語およびポーランド語翻訳を更新",
"fa": "به‌روزرسانی ترجمه‌های چینی و لهستانی",
"pl": "Aktualizacje tłumaczeń chińskich i polskich",
"pt-BR": "Atualizações nas traduções para chinês e polonês",
"ru": "Обновления китайского и польского переводов",
"uk": "Оновлення китайського та польського перекладів",
"es-MX": "Actualizaciones de las traducciones al chino y polaco",
"ko": "중국어 및 폴란드어 번역 업데이트"
},
"issues": []
}
]
},
Expand Down
24 changes: 15 additions & 9 deletions MacPacker/Features/Welcome/PillView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,15 @@ public struct PillView: View {

public enum PillStyle {
// Changelog
case feature, fix, core, release
case feature, fix, core, release, lang

public var background: Color {
switch self {
case .feature: .pillFeatureBackground
case .fix: .pillFixBackground
case .core: .pillCoreBackground
case .release: .pillReleaseBackground
case .lang: .pillLanguageBackground
}
}

Expand All @@ -67,6 +68,7 @@ public enum PillStyle {
case .fix: .pillFixForeground
case .core: .pillCoreForeground
case .release: .pillReleaseForeground
case .lang: .pillLanguageForeground
}
}

Expand All @@ -76,6 +78,7 @@ public enum PillStyle {
case .fix: "Fix"
case .core: "Core"
case .release: "Release"
case .lang: "Language"
}
}
}
Expand All @@ -84,17 +87,20 @@ public enum PillStyle {

public extension Color {
// Changelog
static let pillFeatureBackground = Color.adaptive(light: 0xEAF3DE, dark: 0x27500A)
static let pillFeatureForeground = Color.adaptive(light: 0x27500A, dark: 0xC0DD97)
static let pillFeatureBackground = Color.adaptive(light: 0xC8E2A8, dark: 0x2E6010)
static let pillFeatureForeground = Color.adaptive(light: 0x1A3D06, dark: 0xD4EBA8)

static let pillFixBackground = Color.adaptive(light: 0xE6F1FB, dark: 0x0C447C)
static let pillFixForeground = Color.adaptive(light: 0x0C447C, dark: 0xB5D4F4)
static let pillFixBackground = Color.adaptive(light: 0xBAD5F5, dark: 0x144F8E)
static let pillFixForeground = Color.adaptive(light: 0x073060, dark: 0xC8E0F8)

static let pillCoreBackground = Color.adaptive(light: 0xEEEDFE, dark: 0x3C3489)
static let pillCoreForeground = Color.adaptive(light: 0x3C3489, dark: 0xCECBF6)
static let pillCoreBackground = Color.adaptive(light: 0xCECBF6, dark: 0x453B9E)
static let pillCoreForeground = Color.adaptive(light: 0x26215C, dark: 0xDDD9FA)

static let pillReleaseBackground = Color.adaptive(light: 0xFAECE7, dark: 0x712B13)
static let pillReleaseForeground = Color.adaptive(light: 0x712B13, dark: 0xF5C4B3)
static let pillReleaseBackground = Color.adaptive(light: 0xF5C4B3, dark: 0x893318)
static let pillReleaseForeground = Color.adaptive(light: 0x4A1B0C, dark: 0xFADBD0)

static let pillLanguageBackground = Color.adaptive(light: 0xFAC775, dark: 0x7A4F08)
static let pillLanguageForeground = Color.adaptive(light: 0x412402, dark: 0xFDDDA0)
}

// MARK: - Adaptive Helper
Expand Down
2 changes: 2 additions & 0 deletions MacPacker/Features/Welcome/WelcomeChangelogView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ enum ChangelogType: String {
case fix
case core
case release
case lang
}

struct Changelog: Decodable {
Expand Down Expand Up @@ -199,6 +200,7 @@ struct ChangelogPillView: View {
case .fix: PillView(.fix)
case .release: PillView(.release)
case .core: PillView(.core)
case .lang: PillView(.lang)
}

VStack(alignment: .leading, spacing: 2) {
Expand Down
Loading
Loading