Skip to content

Commit 4eeeb75

Browse files
committed
Update accesskit 0.11 -> 0.12
1 parent cb0c900 commit 4eeeb75

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ euclid = "0.22.7"
2424
wgpu = "0.20.0"
2525
futures = "0.3"
2626
vger = { git = "https://github.com/audulus/vger-rs", rev = "eb4e1f66c638df255171187e09af3a1a09b020fe" }
27-
accesskit = "0.11.0"
27+
accesskit = "0.12.0"
2828
lazy_static = "1.4.0"
2929
winit = { version = "0.30", optional = true }
3030
log = "0.4"

src/viewid.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl ViewId {
1313
/// Returns the corresponding AccessKit ID. We're assuming
1414
/// the underlying u64 isn't zero.
1515
pub fn access_id(&self) -> accesskit::NodeId {
16-
accesskit::NodeId(std::num::NonZeroU128::new(self.id as u128).unwrap())
16+
accesskit::NodeId(self.id)
1717
}
1818

1919
pub fn is_default(self) -> bool {

src/views/text.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl View for Text {
4848
nodes: &mut Vec<(accesskit::NodeId, accesskit::Node)>,
4949
) -> Option<accesskit::NodeId> {
5050
let aid = cx.view_id(path).access_id();
51-
let mut builder = accesskit::NodeBuilder::new(accesskit::Role::LabelText);
51+
let mut builder = accesskit::NodeBuilder::new(accesskit::Role::StaticText);
5252
builder.set_name(self.text.clone());
5353
nodes.push((aid, builder.build(&mut cx.access_node_classes)));
5454
Some(aid)
@@ -109,7 +109,7 @@ where
109109
nodes: &mut Vec<(accesskit::NodeId, accesskit::Node)>,
110110
) -> Option<accesskit::NodeId> {
111111
let aid = cx.view_id(path).access_id();
112-
let mut builder = accesskit::NodeBuilder::new(accesskit::Role::LabelText);
112+
let mut builder = accesskit::NodeBuilder::new(accesskit::Role::StaticText);
113113
builder.set_name(format!("{}", self));
114114
nodes.push((aid, builder.build(&mut cx.access_node_classes)));
115115
Some(aid)

0 commit comments

Comments
 (0)