@@ -96,16 +96,20 @@ enum ColumnID: String, CaseIterable, Codable, Identifiable {
9696 }
9797 }
9898
99- /// Per-column content text color (used in file rows)
99+ /// Per-column content text color from active theme
100100 var columnColor : Color {
101+ columnColor ( from: ColorThemeStore . shared. activeTheme)
102+ }
103+ /// Per-column content text color from a given theme
104+ func columnColor( from theme: ColorTheme ) -> Color {
101105 switch self {
102- case . name: return Color ( #colorLiteral ( red : 0.05 , green : 0.10 , blue : 0.30 , alpha : 1.0 ) ) // dark navy
103- case . size: return Color ( #colorLiteral ( red : 0.50 , green : 0.05 , blue : 0.18 , alpha : 1.0 ) ) // dark raspberry
104- case . kind: return Color ( #colorLiteral ( red : 0.28 , green : 0.14 , blue : 0.05 , alpha : 1.0 ) ) // dark brown
106+ case . name: return theme . columnNameColor
107+ case . size: return theme . columnSizeColor
108+ case . kind: return theme . columnKindColor
105109 case . dateModified, . dateCreated,
106- . dateLastOpened, . dateAdded: return Color ( #colorLiteral ( red : 0.05 , green : 0.28 , blue : 0.10 , alpha : 1.0 ) ) // dark green
107- case . childCount: return Color ( #colorLiteral ( red : 0.05 , green : 0.10 , blue : 0.30 , alpha : 1.0 ) ) // dark navy
108- default : return Color ( #colorLiteral ( red : 0.20 , green : 0.20 , blue : 0.20 , alpha : 1.0 ) ) // dark grey
110+ . dateLastOpened, . dateAdded: return theme . columnDateColor
111+ case . childCount: return theme . columnNameColor
112+ default : return theme . panelText
109113 }
110114 }
111115
0 commit comments