Add accessible labels to processing progress bar, results icon, drop zone
- Progress bar gets "Processing progress" accessible label - Results success icon gets "Success" accessible label - Image drop zone gets descriptive accessible label for screen readers
This commit is contained in:
@@ -30,6 +30,9 @@ pub fn build_processing_page() -> adw::NavigationPage {
|
||||
.show_text(true)
|
||||
.text("0%")
|
||||
.build();
|
||||
progress_bar.update_property(&[
|
||||
gtk::accessible::Property::Label("Processing progress"),
|
||||
]);
|
||||
|
||||
let eta_label = gtk::Label::builder()
|
||||
.label("Estimating time remaining...")
|
||||
@@ -119,6 +122,9 @@ pub fn build_results_page() -> adw::NavigationPage {
|
||||
.halign(gtk::Align::Center)
|
||||
.css_classes(["success"])
|
||||
.build();
|
||||
status_icon.update_property(&[
|
||||
gtk::accessible::Property::Label("Success"),
|
||||
]);
|
||||
|
||||
let title = gtk::Label::builder()
|
||||
.label("Processing Complete")
|
||||
|
||||
@@ -306,6 +306,9 @@ fn build_empty_state() -> gtk::Box {
|
||||
.margin_end(48)
|
||||
.build();
|
||||
drop_zone.add_css_class("card");
|
||||
drop_zone.update_property(&[
|
||||
gtk::accessible::Property::Label("Image drop zone. Drop images here or use the Browse Files button."),
|
||||
]);
|
||||
|
||||
let inner = gtk::Box::builder()
|
||||
.orientation(gtk::Orientation::Vertical)
|
||||
|
||||
Reference in New Issue
Block a user