Skip to content

Commit aaae22b

Browse files
authored
Merge pull request #562 from kas-gui/push-wovzoryovoln
0.16.1
2 parents 899e5e9 + 0496976 commit aaae22b

File tree

7 files changed

+30
-12
lines changed

7 files changed

+30
-12
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
/target
2-
**/*.rs.bk
32
Cargo.lock

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
22
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
33
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
44

5+
## [0.16.1] — 2025-09-20
6+
7+
### Window management
8+
9+
- Add fn `EventCx::add_dataless_window`, similar to fn `add_window` but without requiring a `Data` type parameter (#560)
10+
- Add fn `Window::set_modal_with_parent` to support modal windows at the API level (mostly unimplemented) (#560)
11+
12+
### Message handling
13+
14+
- Support sending all messages of a specifc type to a pre-set widget (#557)
15+
- Support sending messages to a widget from another window (#557)
16+
17+
### Specific widgets
18+
19+
- Let fns `EditBox::set_str` and `set_string` update the content size and scroll bar (#559)
20+
- Add fn `EditBox::guard_mut` (#559)
21+
- Add fn `dialog::MessageBox::display` to construct as a modal window (#560)
22+
- Add dialogs `AlertUnsaved` and `AlertError` along with result types (#561)
23+
524
## [0.16.0] — 2025-09-13
625

726
A major new feature is support for screen readers and similar accessibility tools via AccessKit. The result is reasonably functional, though does not yet support input (`EditField`) contents. Implementation in #521, #527; tracking issue is #509.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ rust-version = "1.88.0"
77

88
[package]
99
name = "kas"
10-
version = "0.16.0"
10+
version = "0.16.1"
1111
authors.workspace = true
1212
edition.workspace = true
1313
license.workspace = true
@@ -134,9 +134,9 @@ x11 = ["kas-core/x11"]
134134
unsafe_node = ["kas-core/unsafe_node"]
135135

136136
[dependencies]
137-
kas-core = { version = "0.16.0", path = "crates/kas-core" }
137+
kas-core = { version = "0.16.1", path = "crates/kas-core" }
138138
kas-dylib = { version = "0.16.0", path = "crates/kas-dylib", optional = true }
139-
kas-widgets = { version = "0.16.0", path = "crates/kas-widgets" }
139+
kas-widgets = { version = "0.16.1", path = "crates/kas-widgets" }
140140
kas-view = { version = "0.16.0", path = "crates/kas-view", optional = true }
141141
kas-resvg = { version = "0.16.0", path = "crates/kas-resvg", optional = true }
142142

crates/kas-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kas-core"
3-
version = "0.16.0"
3+
version = "0.16.1"
44
authors.workspace = true
55
edition.workspace = true
66
license.workspace = true

crates/kas-core/src/runner/event_loop.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,10 @@ where
221221
log::debug!("Pending: adding window {}", window.widget.title());
222222
if !self.suspended {
223223
let mut modal_parent = None;
224-
if let Some(id) = window.widget.properties().modal_parent {
225-
if let Some(window) = self.windows.get(&id) {
226-
modal_parent = window.winit_window();
227-
}
224+
if let Some(id) = window.widget.properties().modal_parent
225+
&& let Some(window) = self.windows.get(&id)
226+
{
227+
modal_parent = window.winit_window();
228228
}
229229
match window.resume(&mut self.shared, &self.data, el, modal_parent) {
230230
Ok(winit_id) => {

crates/kas-widgets/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kas-widgets"
3-
version = "0.16.0"
3+
version = "0.16.1"
44
authors.workspace = true
55
edition.workspace = true
66
license.workspace = true
@@ -27,7 +27,7 @@ kas-macros = { version = "0.16.0", path = "../kas-macros" }
2727
linear-map = "1.2.0"
2828

2929
# We must rename this package since macros expect kas to be in scope:
30-
kas = { version = "0.16.0", package = "kas-core", path = "../kas-core" }
30+
kas = { version = "0.16.1", package = "kas-core", path = "../kas-core" }
3131

3232
[lints.clippy]
3333
collapsible_else_if = "allow"

examples/text-editor/text-editor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ mod Editor {
176176
{
177177
let contents = self.editor.clone_string();
178178
cx.send_async(self.id(), async move {
179-
Saved(file.write(contents.as_str().as_bytes()).await)
179+
Saved(file.write(contents.as_bytes()).await)
180180
});
181181
} else {
182182
let mut picker = rfd::AsyncFileDialog::new()

0 commit comments

Comments
 (0)