Repository navigation
v0.2.16
A card for an app's main view that floats on the window's chrome, a picture picker, drag domains that span views, and one paint order under text that a selection shows through.
New
window::content(floating, cx)is the element an app's main view is drawn in: floating, a rounded, bordered card on theTheme::sidebar_bgchrome its parent paints, with halfTheme::CONTENT_INSETof margin and the parent padded by the other half, so cards side by side meet the inset apart, filled withTheme::content_bg—Theme::content_backgroundcoveringBrand::content_opacityof the chrome (fromTheme::CONTENT_OPACITY,Material::Thick's) underTheme::vibrancy, opaque otherwise, and castingtheme::content_shadowsonly when opaque; flat, a plainTheme::window_bgfill.window::content_fillis the one colour it shows, chrome included.Controls::picture_pickeris a row of tiles, each a picture the caller draws over its label, the chosen one ringed in the accent — macOS's appearance picker.theme::overcomposites one translucent colour over another.Theme::content_backgroundis the floating card's fill at full coverage, set by aThemeFamilyfile ascontent_backgroundand derived from a family's seed.drag::Domainandtabs::ReorderimplementDefault.theme::ink_over(text, page, surface, plate)is the colour a glyph is drawn in over what is painted under it: its own where it reads at the better of the contrasts itkepton the page and on the surface its washes make, else the surface's colour (inverse video), else black or white.input::overdraw::Layersis what is painted under a text — washes and a selection, each in a shape its painter gives it. A painter drawsLayers::painted, the selection under the washes, and the overdraw takes its plates from the same order.input::caret::coveris the colour a solid caret draws the glyph it covers in.highlight_wash(color, theme)is the wash a highlight of any colour paints under text, andfind_washes(color)the find washes cut from any colour;default_highlightanddefault_findare built on them.ui::color::SystemColoris each of Apple's system colours, with its swatch and a stored name (name,from_name).default_swatchesis every one, andHighlightColor::systemis the one a highlight colour paints in.
Changed
input::overdraw::overdrawsandinput::caret::covertake aLayers.theme::frosted_windowistheme::behind_window_blending, after AppKit's.behindWindowblending.drag::Domain::new,drag::Domain::with_ghostandtabs::Reorder::newtake noPainter: a domain may span views, and each region's view is redrawn for the frames the domain owes.
Fixed
- A selection and a solid caret of one colour give a glyph one ink, in text fields, markdown text, code blocks and the terminal: a glyph that does not read on them takes the colour of what it sits on.
- A glyph under a selection and a wash takes its ink over the two together, held to the contrast it had on its wash: text an app coloured for a highlight stays legible under a selection or a solid caret.