Skip to content

Commit

Permalink
background_color -> bg_color
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
  • Loading branch information
yoshuawuyts committed Oct 14, 2018
1 parent 9907a99 commit b344497
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn main() -> Result<(), failure::Error> {
let url = "https://play.google.com/store/apps/details?id=cheeaun.hackerweb";
let manifest = Manifest::builder(name)
.short_name("my app")
.background_color("#000")
.bg_color("#000")
.related(&Related::new("play", url))
.build()?;
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion examples/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn main() -> Result<(), failure::Error> {
let url = "https://play.google.com/store/apps/details?id=cheeaun.hackerweb";
let manifest = Manifest::builder(name)
.short_name("my app")
.background_color("#000")
.bg_color("#000")
.related(&Related::new("play", url))
.icon(&Icon::new("/icon.png", "48x48"))
.pretty()?;
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,13 @@ impl<'s, 'i, 'r> Manifest<'s, 'i, 'r> {
/// # fn main() -> Result<(), failure::Error> {
/// let name = "My Cool Application";
/// let manifest = Manifest::builder(name)
/// .background_color("#000")
/// .bg_color("#000")
/// .build()?;
/// # Ok(())}
/// ```
#[must_use]
#[inline]
pub fn background_color(mut self, val: &'s str) -> Self {
pub fn bg_color(mut self, val: &'s str) -> Self {
self.background_color = Some(val);
self
}
Expand Down

0 comments on commit b344497

Please sign in to comment.