Skip to content

Commit

Permalink
Imrpove accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
giannissc committed Nov 21, 2023
1 parent cf70a06 commit 9e1496c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/widget/progress_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ impl Widget for ProgressBar {

fn accessibility(&mut self, cx: &mut AccessCx) {
let mut builder = accesskit::NodeBuilder::new(accesskit::Role::ProgressIndicator);
builder.set_default_action_verb(accesskit::DefaultActionVerb::Click);
builder.set_numeric_value(self.value * 100.);
builder.set_max_numeric_value(100.);
builder.set_min_numeric_value(0.);
cx.push_node(builder);
}

Expand Down

0 comments on commit 9e1496c

Please sign in to comment.