feat(client): redesign native UI, themes, settings and avatars
Separate conversation drafts and voice view state, add native settings and restricted CSS themes, implement validated avatar cropping, and refresh dependencies with documented desktop compatibility backports.
This commit is contained in:
parent
44d284a568
commit
8e5ab56611
276 changed files with 53546 additions and 3399 deletions
28
patches/atspi-common/src/action.rs
vendored
Normal file
28
patches/atspi-common/src/action.rs
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
use serde::{Deserialize, Serialize};
|
||||
use zbus::wire::Type;
|
||||
|
||||
/// An action which may be triggered through the accessibility API.
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, Type)]
|
||||
pub struct Action {
|
||||
/// The name of the action
|
||||
pub name: String,
|
||||
/// Description of the action
|
||||
pub description: String,
|
||||
// TODO: should be an enum/stricter type; this is why it's in its own file.
|
||||
/// The keybinding(s) used to trigger it (without the AT).
|
||||
pub keybinding: String,
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::Action;
|
||||
use zbus_lockstep::method_return_signature;
|
||||
use zbus::wire::Type;
|
||||
#[test]
|
||||
fn validate_action_signature() {
|
||||
// signature is of type `a(sss)`, where `(sss)` is the type we're validating.
|
||||
let action_signature =
|
||||
method_return_signature!(member: "GetActions", interface: "org.a11y.atspi.Action");
|
||||
assert_eq!(Vec::<Action>::SIGNATURE, &action_signature);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue