From 9713503d9e17665f179fbf91b88315a33f64a8c9 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 26 Feb 2025 19:41:00 -0800 Subject: [PATCH] add_column: use weak color for descriptions This matches the figma Signed-off-by: William Casarin --- crates/notedeck_columns/src/ui/add_column.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/notedeck_columns/src/ui/add_column.rs b/crates/notedeck_columns/src/ui/add_column.rs index 8b76e5b4..a22d9a3c 100644 --- a/crates/notedeck_columns/src/ui/add_column.rs +++ b/crates/notedeck_columns/src/ui/add_column.rs @@ -368,7 +368,7 @@ impl<'a> AddColumnView<'a> { f.layout( data.description.to_string(), desc_max_font, - Color32::WHITE, + ui.style().visuals.noninteractive().fg_stroke.color, max_wrap_width, ) }); @@ -407,8 +407,8 @@ impl<'a> AddColumnView<'a> { ); let wrap_width = max_width - (cur_icon_width + (icon_padding * 2.0)); - let text_color = ui.ctx().style().visuals.text_color(); - let fallback_color = ui.ctx().style().visuals.weak_text_color(); + let text_color = ui.style().visuals.text_color(); + let fallback_color = ui.style().visuals.noninteractive().fg_stroke.color; let title_galley = painter.layout( data.title.to_string(), @@ -419,7 +419,7 @@ impl<'a> AddColumnView<'a> { let desc_galley = painter.layout( data.description.to_string(), desc_cur_font, - text_color, + fallback_color, wrap_width, ); @@ -438,7 +438,7 @@ impl<'a> AddColumnView<'a> { let icon_rect = Rect::from_center_size(pos2(cur_icon_x_pos, icon_cur_y), cur_icon_size); icon_img.paint_at(ui, icon_rect); - painter.galley(title_corner_pos, title_galley, fallback_color); + painter.galley(title_corner_pos, title_galley, text_color); painter.galley(desc_corner_pos, desc_galley, fallback_color); helper.take_animation_response()