Skip to content

Commit

Permalink
Change android color format from RGBA to ARGB (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
lichin-lin authored Mar 2, 2021
1 parent 21243f4 commit a41f5f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/AndroidExport/AndroidColorExporter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import FigmaExportCore
final public class AndroidColorExporter {

private let outputDirectory: URL

public init(outputDirectory: URL) {
self.outputDirectory = outputDirectory
}
Expand Down Expand Up @@ -65,7 +65,7 @@ private extension Color {
var result = "#\(rr)\(gg)\(bb)"
if alpha != 1.0 {
let aa = doubleToHex(alpha)
result.append(aa)
result = "#\(aa)\(rr)\(gg)\(bb)"
}
return result
}
Expand Down

0 comments on commit a41f5f3

Please sign in to comment.