redox-os / orbtk

The Rust UI-Toolkit.
MIT License
3.77k stars 190 forks source link

New example code `mgs_handler` #450

Closed rzerres closed 3 years ago

rzerres commented 3 years ago

Abstract

This example illustrates the usage of massage handling between individual widgets (here: SenderView and ReceiverView).

Context

Context:

A description of the changes proposed in the pull request.

Contribution checklist:

rzerres commented 3 years ago

Strange: local : cargo test => all ok! github: cargo test => fails

utils/src/color.rs We do tests for partial_eq, which shoiuld work. assert_eq!(true, Color::rgb(1, 2, 3) == Color::rgba(1, 2, 3, 200)); Color::rgb => 0xFF010203, Color::rgba: => 0xC8010203

But github routine disagrees. help: replace it with: assert!();

but this doen't do what we want.

is this a bug in the github rules?

FloVanGH commented 3 years ago

Looks great so far. Thank you. I'll fix the ci lint later.