|
|
@@ -3,7 +3,7 @@
|
|
3
|
3
|
// App for Indeed
|
|
4
|
4
|
//
|
|
5
|
5
|
// Shared résumé colours for gallery thumbnails and filled CV preview/export.
|
|
6
|
|
-// Tracks app light / dark mode so the selected template looks the same everywhere.
|
|
|
6
|
+// Résumés always use a print-style light palette regardless of app light/dark mode.
|
|
7
|
7
|
//
|
|
8
|
8
|
|
|
9
|
9
|
import AppKit
|
|
|
@@ -22,29 +22,15 @@ enum CVResumeAppearance {
|
|
22
|
22
|
let accentBlue: NSColor
|
|
23
|
23
|
}
|
|
24
|
24
|
|
|
25
|
|
- static var isDark: Bool { AppAppearanceManager.shared.isDark }
|
|
26
|
|
-
|
|
27
|
|
- static func colors(isDark dark: Bool? = nil) -> Colors {
|
|
28
|
|
- let dark = dark ?? isDark
|
|
29
|
|
- if dark {
|
|
30
|
|
- return Colors(
|
|
31
|
|
- paper: NSColor(srgbRed: 28 / 255, green: 30 / 255, blue: 36 / 255, alpha: 1),
|
|
32
|
|
- ink: NSColor(srgbRed: 0.94, green: 0.95, blue: 0.97, alpha: 1),
|
|
33
|
|
- muted: NSColor(srgbRed: 0.62, green: 0.66, blue: 0.72, alpha: 1),
|
|
34
|
|
- rule: NSColor(srgbRed: 0.38, green: 0.40, blue: 0.46, alpha: 1),
|
|
35
|
|
- cardBackground: NSColor(srgbRed: 32 / 255, green: 34 / 255, blue: 40 / 255, alpha: 1),
|
|
36
|
|
- sidebarTint: NSColor(srgbRed: 40 / 255, green: 42 / 255, blue: 48 / 255, alpha: 1),
|
|
37
|
|
- accentRed: NSColor(srgbRed: 235 / 255, green: 88 / 255, blue: 72 / 255, alpha: 1),
|
|
38
|
|
- accentBlue: AppDashboardTheme.brandBlue
|
|
39
|
|
- )
|
|
40
|
|
- }
|
|
41
|
|
- return Colors(
|
|
|
25
|
+ /// Print-style palette — always light, even when the app chrome is in dark mode.
|
|
|
26
|
+ static func colors() -> Colors {
|
|
|
27
|
+ Colors(
|
|
42
|
28
|
paper: NSColor.white,
|
|
43
|
29
|
ink: NSColor(srgbRed: 38 / 255, green: 50 / 255, blue: 71 / 255, alpha: 1),
|
|
44
|
30
|
muted: NSColor(srgbRed: 110 / 255, green: 118 / 255, blue: 132 / 255, alpha: 1),
|
|
45
|
31
|
rule: NSColor(srgbRed: 228 / 255, green: 232 / 255, blue: 240 / 255, alpha: 1),
|
|
46
|
32
|
cardBackground: NSColor.white,
|
|
47
|
|
- sidebarTint: AppDashboardTheme.cvMakerPreviewSidebarTint,
|
|
|
33
|
+ sidebarTint: NSColor(srgbRed: 244 / 255, green: 246 / 255, blue: 250 / 255, alpha: 1),
|
|
48
|
34
|
accentRed: NSColor(srgbRed: 207 / 255, green: 67 / 255, blue: 50 / 255, alpha: 1),
|
|
49
|
35
|
accentBlue: AppDashboardTheme.brandBlue
|
|
50
|
36
|
)
|
|
|
@@ -52,7 +38,6 @@ enum CVResumeAppearance {
|
|
52
|
38
|
|
|
53
|
39
|
/// Slight paper tint by layout variant (gallery + filled CV use the same rule).
|
|
54
|
40
|
static func paperBackground(variant: Int, base: NSColor) -> NSColor {
|
|
55
|
|
- guard !isDark else { return base }
|
|
56
|
41
|
switch variant % 5 {
|
|
57
|
42
|
case 0: return base
|
|
58
|
43
|
case 1: return NSColor(srgbRed: 0.995, green: 0.992, blue: 0.985, alpha: 1)
|