Skip to content

Commit

Permalink
Use specific rust version
Browse files Browse the repository at this point in the history
  • Loading branch information
l4l committed Dec 3, 2020
1 parent 2f1cee0 commit 5772c3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.48.0
6 changes: 3 additions & 3 deletions src/config/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ impl<'a> From<&'a Config> for InputTextParams {
.input_text
.as_ref()
.and_then(|c| c.bg_color)
.or_else(|| config.bg_color)
.or(config.bg_color)
.map(u32_to_solid_source)
.unwrap_or_else(|| SolidSource::from_unpremultiplied_argb(0xc0, 0x75, 0x71, 0x5e)),
font_color: config
.input_text
.as_ref()
.and_then(|c| c.font_color)
.or_else(|| config.font_color)
.or(config.font_color)
.map(u32_to_solid_source)
.unwrap_or_else(default_font_color),
}
Expand All @@ -49,7 +49,7 @@ impl<'a> From<&'a Config> for ListParams {
.list_items
.as_ref()
.and_then(|c| c.font_color)
.or_else(|| config.font_color)
.or(config.font_color)
.map(u32_to_solid_source)
.unwrap_or_else(default_font_color),
selected_font_color: config
Expand Down

0 comments on commit 5772c3d

Please sign in to comment.