Skip to content

Commit 2b7d8ea

Browse files
committed
Test different Theme variants in styling example
1 parent ced4276 commit 2b7d8ea

27 files changed

Lines changed: 69 additions & 35 deletions

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ jobs:
2323
sudo apt-get install -y libxkbcommon-dev libgtk-3-dev
2424
- name: Run tests
2525
run: |
26-
cargo test --verbose --workspace
27-
cargo test --verbose --workspace --all-features
26+
cargo test --verbose --workspace -- --ignored
27+
cargo test --verbose --workspace --all-features -- --ignored

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/src/input_method.rs

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -151,39 +151,6 @@ impl<T> InputMethod<T> {
151151
/// However, one couldn't possibly have a key for every single
152152
/// unicode character that the user might want to type. The solution operating systems employ is
153153
/// to allow the user to type these using _a sequence of keypresses_ instead.
154-
///
155-
/// A prominent example of this is accents—many keyboard layouts allow you to first click the
156-
/// "accent key", and then the character you want to apply the accent to. In this case, some
157-
/// platforms will generate the following event sequence:
158-
///
159-
/// ```ignore
160-
/// // Press "`" key
161-
/// Ime::Preedit("`", Some((0, 0)))
162-
/// // Press "E" key
163-
/// Ime::Preedit("", None) // Synthetic event generated to clear preedit.
164-
/// Ime::Commit("é")
165-
/// ```
166-
///
167-
/// Additionally, certain input devices are configured to display a candidate box that allow the
168-
/// user to select the desired character interactively. (To properly position this box, you must use
169-
/// [`Shell::request_input_method`](crate::Shell::request_input_method).)
170-
///
171-
/// An example of a keyboard layout which uses candidate boxes is pinyin. On a latin keyboard the
172-
/// following event sequence could be obtained:
173-
///
174-
/// ```ignore
175-
/// // Press "A" key
176-
/// Ime::Preedit("a", Some((1, 1)))
177-
/// // Press "B" key
178-
/// Ime::Preedit("a b", Some((3, 3)))
179-
/// // Press left arrow key
180-
/// Ime::Preedit("a b", Some((1, 1)))
181-
/// // Press space key
182-
/// Ime::Preedit("啊b", Some((3, 3)))
183-
/// // Press space key
184-
/// Ime::Preedit("", None) // Synthetic event generated to clear preedit.
185-
/// Ime::Commit("啊不")
186-
/// ```
187154
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
188155
pub enum Event {
189156
/// Notifies when the IME was opened.

examples/styling/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ publish = false
77

88
[dependencies]
99
iced.workspace = true
10+
11+
[dev-dependencies]
12+
iced_test.workspace = true
13+
rayon = "1"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9e67e429f88fd5a64744d9cd4d42e123950bea4a45fea78581bc3d64b12e11f0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
811a22238f3a40e3e3998f514c0a95f24f2b45449250682d86c8ec392fec5e28
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6bf957efe807f87f38cfc672f9a05325aadee6256aacca87bbc3281b98160c8a
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
d3f4110fae78a3be3b7a4813e9a432b48b81fff1e982c0244e4ea394074bef55
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
578e7420de69d82906d284c59d81fcea0edf81098481fc4dd7b4c1fb577b7f1c
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
422e841113efaa86e9e37593d0d14f8dd36ad483a81c30a08588f48805e4f9f3

0 commit comments

Comments
 (0)