T48e Docs · Theme passes review
This commit is contained in:
3 files changed
+4
-3
No files matched your search
@@ -168,7 +168,7 @@ Per-component lines live in `tasks/`. Tags there:
|
||||
- [x] T48b Docs · Introduction: what Ely is, the order to read, what is stable, a first example, license
|
||||
- [x] T48c Docs · Installation: Rust, the git dependencies, gpui_platform's fonts, runtime shaders, the gallery as a check, what `init` refuses
|
||||
- [x] T48d Docs · Getting started: an app from `init` to a window under a root `FocusScope`, with a Button
|
||||
- [ ] T48e Docs · Theme: modes, tokens through `cx.theme()`, high contrast, color-blind safe charts, an owner's palette
|
||||
- [x] T48e Docs · Theme: modes, tokens through `cx.theme()`, high contrast, color-blind safe charts, an owner's palette
|
||||
- [ ] T48f Docs · Focus and keyboard: Tab and Shift-Tab, the root scope, tab stops, the focus ring, overlays that take and give back focus
|
||||
- [ ] T48g Docs · Motion: durations, reduced motion, springs, motion from a change
|
||||
- [ ] T48h Docs · Icons, fonts and assets: `Assets`, `IconName`, adding icons, the embedded fonts, file icons
|
||||
|
||||
@@ -13,7 +13,7 @@ Bring `ActiveTheme` into scope and call `cx.theme()` on `App`, or on a `Context`
|
||||
| `radius(Radius)` | `Sm` 4px, `Md` 6px, `Lg` 8px, `Xl` 12px, times `radius_scale`. |
|
||||
| `elevation(Elevation)` | Shadows for `Raised`, `Floating` and `Modal`; darker in dark mode. |
|
||||
| `control_height(ControlSize)` | `Sm` 24px, `Md` 28px, `Lg` 32px; 4px less under `Density::Compact`, 4px more under `Comfortable`. |
|
||||
| `is_dark()`, `high_contrast()`, `color_blind_safe()` | The current switches. |
|
||||
| `mode()`, `is_dark()`, `high_contrast()`, `color_blind_safe()` | The current mode and switches. |
|
||||
|
||||
Sizes come back as `Rems`, so they follow the window's rem size.
|
||||
|
||||
@@ -26,7 +26,7 @@ Sizes come back as `Rems`, so they follow the window's rem size.
|
||||
| `Theme::set_high_contrast(on, cx)` | Muted text and borders move further from the page, and glass turns opaque, in Ely's palettes. |
|
||||
| `Theme::set_color_blind_safe(on, cx)` | Chart hues that stay apart under protanopia, deuteranopia and tritanopia. |
|
||||
| `Theme::set_palette(mode, palette, cx)` | An owner's palette for one mode; `None` brings Ely's back. |
|
||||
| `Theme::update(cx, edit)` | Edits the other fields: `density`, `font_scale`, `radius_scale`, `font_family`, `mono_family`, `reduced_motion`. |
|
||||
| `Theme::update(cx, edit)` | Edits the other fields: `density`, `font_scale`, `radius_scale`, `font_family`, `mono_family`, `reduced_motion`, `platform`. |
|
||||
|
||||
The color calls log at the `info` level, so a theme change shows in the app's log.
|
||||
|
||||
|
||||
@@ -334,3 +334,4 @@
|
||||
| T48c | 1 | FAIL | said Ely compiles the shaders when the app starts; a code span kept a trailing space |
|
||||
| T48c | 2 | PASS | |
|
||||
| T48d | 1 | PASS | note taken: the lead and the table both count four parts |
|
||||
| T48e | 1 | PASS | notes taken: `mode()` in the read table, `platform` among update's fields |
|
||||
Reference in new issue
Block a user