Fix more tests
This commit is contained in:
parent
fa6acc385f
commit
ce0ff819f9
3 changed files with 13 additions and 13 deletions
|
@ -37,5 +37,4 @@ In addition to the systems above, GPUI provides a range of smaller services that
|
|||
|
||||
- The `[gpui::test]` macro provides a convenient way to write tests for your GPUI applications. Tests also have their own kind of context, a `TestAppContext` which provides ways of simulating common platform input. See `app::test_context` and `test` modules for more details.
|
||||
|
||||
Currently, the best way to learn about these APIs is to read the Zed source code or to ask us about it at a fireside hack or in the [Zed Discord](https://discord.gg/U4qhCEhMXP). We're working on improving the documentation, creating more examples, and will be publishing more guides to GPUI on our [blog](https://zed.dev/blog).
|
||||
|
||||
Currently, the best way to learn about these APIs is to read the Zed source code, ask us about it at a fireside hack, or drop a question in the [Zed Discord](https://discord.gg/U4qhCEhMXP). We're working on improving the documentation, creating more examples, and will be publishing more guides to GPUI on our [blog](https://zed.dev/blog).
|
||||
|
|
|
@ -56,8 +56,9 @@
|
|||
//! own kind of context, a [`TestAppContext`] which provides ways of simulating common platform input. See [`app::test_context`]
|
||||
//! and [`test`] modules for more details.
|
||||
//!
|
||||
//! Currently, the best way to learn about these APIs is to read the Zed source code or to ask us about it at a fireside hack or in the [Zed Discord](https://discord.gg/U4qhCEhMXP).
|
||||
//! We're working on improving the documentation, creating more examples, and will be publishing more guides to GPUI on our [blog](https://zed.dev/blog).
|
||||
//! Currently, the best way to learn about these APIs is to read the Zed source code, ask us about it at a fireside hack, or drop
|
||||
//! a question in the [Zed Discord](https://discord.gg/U4qhCEhMXP). We're working on improving the documentation, creating more examples,
|
||||
//! and will be publishing more guides to GPUI on our [blog](https://zed.dev/blog).
|
||||
|
||||
#![deny(missing_docs)]
|
||||
#![allow(clippy::type_complexity)]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use gpui::{px, rgb, Div, Hsla, IntoElement, Render, RenderOnce};
|
||||
use gpui::{px, rgb, Div, IntoElement, Render, RenderOnce};
|
||||
use story::Story;
|
||||
use ui::prelude::*;
|
||||
|
||||
|
@ -51,22 +51,22 @@ trait Styles: Styled + Sized {
|
|||
self.absolute()
|
||||
.w(px(150.))
|
||||
.h(px(50.))
|
||||
.text_color(rgb::<Hsla>(0x000000))
|
||||
.text_color(rgb(0x000000))
|
||||
}
|
||||
|
||||
fn blue(self) -> Self {
|
||||
self.bg(rgb::<Hsla>(0xe5e8fc))
|
||||
self.bg(rgb(0xe5e8fc))
|
||||
.border_5()
|
||||
.border_color(rgb::<Hsla>(0x112382))
|
||||
.border_color(rgb(0x112382))
|
||||
.line_height(px(55.))
|
||||
// HACK: Simulate `text-align: center`.
|
||||
.pl(px(24.))
|
||||
}
|
||||
|
||||
fn red(self) -> Self {
|
||||
self.bg(rgb::<Hsla>(0xfce5e7))
|
||||
self.bg(rgb(0xfce5e7))
|
||||
.border_5()
|
||||
.border_color(rgb::<Hsla>(0xe3a1a7))
|
||||
.border_color(rgb(0xe3a1a7))
|
||||
// HACK: Simulate `text-align: center`.
|
||||
.pl(px(8.))
|
||||
}
|
||||
|
@ -92,10 +92,10 @@ impl RenderOnce for ZIndexExample {
|
|||
.left(px(15.))
|
||||
.w(px(180.))
|
||||
.h(px(230.))
|
||||
.bg(rgb::<Hsla>(0xfcfbe5))
|
||||
.text_color(rgb::<Hsla>(0x000000))
|
||||
.bg(rgb(0xfcfbe5))
|
||||
.text_color(rgb(0x000000))
|
||||
.border_5()
|
||||
.border_color(rgb::<Hsla>(0xe3e0a1))
|
||||
.border_color(rgb(0xe3e0a1))
|
||||
.line_height(px(215.))
|
||||
// HACK: Simulate `text-align: center`.
|
||||
.pl(px(24.))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue