mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 16:59:43 +01:00
Use muted body text for Learn step numbers
This commit is contained in:
1 parent
2a1b573a78
commit
bc2162f91c
1 file changed
+2
-3
@@ -27,7 +27,7 @@ use craft::ui::contract::{
|
||||
Bind, CollectionEvent, Gap, LabelKind, MemoProps, Props as _, SelectMode, Show as _, ShowCollection as _, ShowContainer as _, SideLabel, Sizing,
|
||||
clicked,
|
||||
};
|
||||
use craft::ui::display::Text;
|
||||
use craft::ui::display::{Shade, Text};
|
||||
use craft::ui::form::Field;
|
||||
use craft::ui::layout_components::Row;
|
||||
use craft::ui::list::{List, ListRow};
|
||||
@@ -221,8 +221,7 @@ fn steps(app: &mut VectorcraftApp, ui: &mut Ui, tutorial: &'static catalog::Tuto
|
||||
if let Some(next) = next {
|
||||
marked = Some((i, next));
|
||||
}
|
||||
// PLAN: the number should read in the muted ink; the caption role stands in until `Text` names it.
|
||||
Text::new(format!("{}.", i + 1)).role(TypeRole::Caption).show(ui);
|
||||
Text::new(format!("{}.", i + 1)).shade(Shade::Muted).show(ui);
|
||||
if step_text(ui, step) {
|
||||
locate = step.tool;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user