Commit graph

32 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
fd1101bd5f
Unify Program definition in iced_program subcrate 2025-03-12 02:10:42 +01:00
Héctor Ramón Jiménez
91af1c5ed6
Update all examples to Rust 2024 2025-02-21 01:37:14 +01:00
Héctor Ramón Jiménez
8694eeb5c5
Use SI metrics for memory in system_information example 2025-02-15 14:06:10 +01:00
Héctor Ramón Jiménez
1e5c1ad2cb
Avoid using Message to drive logic in system_information example 2024-12-03 01:28:03 +01:00
Osma S. Rautila
334f5baa10
fix: add run_with(Example::new)
The example was not running the `update` method and was stuck on the loading screen (at least on macos). This fixes is on my system.
2024-12-03 01:28:03 +01:00
Héctor Ramón Jiménez
341c9a3c12
Introduce daemon API and unify shell runtimes 2024-06-19 01:53:40 +02:00
Héctor Ramón Jiménez
a25b1af456
Replace Command with a new Task API with chain support 2024-06-14 01:47:39 +02:00
Héctor Ramón Jiménez
d8ba6b0673
Merge branch 'master' into feat/text-macro 2024-05-23 13:29:45 +02:00
Héctor Ramón Jiménez
05f69f495e
Ask for explicit Length in center_* methods 2024-05-13 17:56:02 +02:00
Héctor Ramón Jiménez
15057a05c1
Introduce center widget helper
... and also make `center_x` and `center_y` set
`width` and `height` to `Length::Fill`, respectively.

This targets the most common use case when centering
things and removes a bunch of boilerplate as a result.
2024-05-03 09:11:46 +02:00
Richard Custodio
8ed62541af
fix: run cargo fmt 2024-03-18 18:24:57 -03:00
Richard Custodio
bf9bbf4a3e
refactor: replace text(format!( with text macro 2024-03-18 17:08:56 -03:00
Héctor Ramón Jiménez
54f44754eb
Move Program to application module 2024-03-17 14:19:12 +01:00
Héctor Ramón Jiménez
93ae790da1
Implement Program::load to specify startup Command 2024-03-16 15:54:37 +01:00
Héctor Ramón Jiménez
c22269bff3
Introduce Program API 2024-03-16 05:33:47 +01:00
brianch
701bf22af6
The memory information is returned in bytes and not kb.
Fix the documentation of the Information struct, and the example
system_information that uses it.

Co-authored-by: =?UTF-8?q?Ahmet=20Kaan=20G=C3=9CM=C3=9C=C5=9E?= <96421894+Tahinli@users.noreply.github.com>
2024-02-02 16:02:17 +01:00
Yuri Astrakhan
3d6b9637c3 Chore: Inline format args for ease of reading
A minor cleanup to inline all simple cases of format arguments. Makes the format strings just a bit easier to read.
2023-09-19 01:32:56 -04:00
Héctor Ramón Jiménez
f468e25d0c
Use workspace dependencies and package inheritance
We are also taking this as a chance to synchronize
the versions of all the crates! Because of this, we
will skip the `0.11` version.
2023-09-04 13:08:17 +02:00
13r0ck
42b1bfe66d Fix: Clippy lint 'uninlined_format_args' 2023-01-27 14:02:48 -07:00
Clark Moody
bb92369017 Include short version in example app 2022-09-23 15:56:37 -05:00
Héctor Ramón Jiménez
ff2519b1d4
Replace stateful widgets with new iced_pure API 2022-07-27 06:49:20 +02:00
Héctor Ramón Jiménez
2065a40f64
Fix clippy lints for all crates and features
... and check those in CI as well!
2022-07-09 18:43:05 +02:00
Héctor Ramón Jiménez
664251f3f5
Draft first-class Theme support
RFC: https://github.com/iced-rs/rfcs/pull/6
2022-05-14 01:56:32 +02:00
Héctor Ramón Jiménez
1aeb8b8340
Show Loading screen when refreshing in system_information example 2022-05-04 15:21:16 +02:00
Héctor Ramón Jiménez
93bfe2c75e
Expose system module through feature flag 2022-04-30 13:37:57 +02:00
Richard
5eefa5d4ea Simplify the QueryInformation Action 2022-04-27 17:16:32 -03:00
Richard
8643fbef90 Rename system::information to fetch_information 2022-04-27 15:42:55 -03:00
Richard
c9ea1f11de Add memory usage to Information struct 2022-04-26 18:59:08 -03:00
Richard
5bfe887e3d Improve example readability 2022-04-26 18:58:55 -03:00
Richard
56065fe959 Add graphics information to example 2022-04-26 18:58:54 -03:00
Richard
d9853165e7 Add unformated memory total to example 2022-04-26 18:57:37 -03:00
Richard
53538b65b1 Add system_information example 2022-04-26 18:57:00 -03:00