Skip to content

Commit

Permalink
Merge pull request #1414 from lingoslinger/1375-replace-rgb
Browse files Browse the repository at this point in the history
Replace remaining rgb Color references with semantic Color assets
  • Loading branch information
joshuatbrown committed Aug 20, 2024
2 parents 283ce85 + a575737 commit bb70f0d
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xFF",
"green" : "0xFF",
"red" : "0xFF"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "0.200",
"blue" : "0xFF",
"green" : "0xFF",
"red" : "0xFF"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x38",
"green" : "0x63",
"red" : "0xEF"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x54",
"green" : "0x4C",
"red" : "0xF2"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
4 changes: 2 additions & 2 deletions Nos/Views/ActionBanner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ struct ActionBanner: View {
ZStack {
LinearGradient(
colors: [
Color(red: 1, green: 1, blue: 1, opacity: 0.2),
Color(red: 1, green: 1, blue: 1, opacity: 1.0),
Color.actionBannerBackgroundGradientTop,
Color.actionBannerBackgroundGradientBottom,
],
startPoint: .top,
endPoint: .bottom
Expand Down
4 changes: 2 additions & 2 deletions Nos/Views/BigActionButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ struct BigActionButtonStyle: ButtonStyle {
ZStack {
LinearGradient(
stops: [
Gradient.Stop(color: Color(red: 0.94, green: 0.39, blue: 0.22), location: 0.00),
Gradient.Stop(color: Color(red: 0.95, green: 0.3, blue: 0.33), location: 1.00),
Gradient.Stop(color: Color.bigActionButtonLinearGradientStop1, location: 0.00),
Gradient.Stop(color: Color.bigActionButtonLinearGradientStop2, location: 1.00),
],
startPoint: UnitPoint(x: 0.5, y: 0),
endPoint: UnitPoint(x: 0.5, y: 0.99)
Expand Down

0 comments on commit bb70f0d

Please sign in to comment.