Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace remaining rgb Color references with semantic Color assets #1414

Merged
merged 13 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
replaced hard coded rgb values in ActionBanner with semantic Color as…
…sets
  • Loading branch information
lingoslinger committed Aug 16, 2024
commit 2b02d62bb9c8bb917e0a3989b642890e8c2ef136
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
}
}
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