From fa7a8f54bb1dd818b003a5532252e636ffa0be1d Mon Sep 17 00:00:00 2001 From: lashman Date: Fri, 6 Mar 2026 13:41:30 +0200 Subject: [PATCH] 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 --- pixstrip-gtk/src/processing.rs | 6 ++++++ pixstrip-gtk/src/steps/step_images.rs | 3 +++ 2 files changed, 9 insertions(+) diff --git a/pixstrip-gtk/src/processing.rs b/pixstrip-gtk/src/processing.rs index 7dad018..492c42c 100644 --- a/pixstrip-gtk/src/processing.rs +++ b/pixstrip-gtk/src/processing.rs @@ -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") diff --git a/pixstrip-gtk/src/steps/step_images.rs b/pixstrip-gtk/src/steps/step_images.rs index 19d5b4e..cbde08d 100644 --- a/pixstrip-gtk/src/steps/step_images.rs +++ b/pixstrip-gtk/src/steps/step_images.rs @@ -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)