pub struct StyleRefinement { /* private fields */ }Expand description
An element’s styles, in order (later declarations win). Built by the
Styled methods; .active(|s| …) and the like hand a fresh one to
their closure. Values given as signals or closures are bound parts,
added after the static declarations (StyleRefinement::resolved).
Implementations§
Source§impl StyleRefinement
impl StyleRefinement
Sourcepub fn placeholder_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
pub fn placeholder_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
The color of an input’s placeholder (placeholderColor, Tailwind’s
placeholder:text-*), for the style of a component’s part that edits
text (super::InputPartStyle, such as number_input’s
input_style). Inherent rather than super::Styled’s: on an element it
is the input’s own prop (input().placeholder_color(..)).
Sourcepub fn caret_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
pub fn caret_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
The color of an input’s caret (caretColor, Tailwind’s caret-*),
for a part that edits text (super::InputPartStyle); on iOS it
also tints the selection highlight, as UIKit has one tint for both.
Sourcepub fn selection_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
pub fn selection_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
The color of the selection highlight (selectionColor, Tailwind’s
selection:bg-*) of a part’s input or texts
(super::InputPartStyle, super::TextPartStyle). Inherent
rather than super::Styled’s: an element has
Element::selection_color.
Trait Implementations§
Source§impl Clone for StyleRefinement
impl Clone for StyleRefinement
Source§impl Debug for StyleRefinement
impl Debug for StyleRefinement
Source§impl Default for StyleRefinement
impl Default for StyleRefinement
impl Eq for StyleRefinement
Source§impl From<StyleRefinement> for Style
impl From<StyleRefinement> for Style
Source§fn from(style: StyleRefinement) -> Self
fn from(style: StyleRefinement) -> Self
Source§impl From<StyleRefinement> for TextPartStyle
impl From<StyleRefinement> for TextPartStyle
Source§fn from(style: StyleRefinement) -> Self
fn from(style: StyleRefinement) -> Self
Source§impl From<StyleRefinement> for InputPartStyle
impl From<StyleRefinement> for InputPartStyle
Source§fn from(style: StyleRefinement) -> Self
fn from(style: StyleRefinement) -> Self
Source§impl Hash for StyleRefinement
The static declarations (a resolved style, StyleRefinement::resolved,
has no bound parts).
impl Hash for StyleRefinement
The static declarations (a resolved style, StyleRefinement::resolved,
has no bound parts).
Source§impl PartialEq for StyleRefinement
Equal static declarations and the same bound parts.
impl PartialEq for StyleRefinement
Equal static declarations and the same bound parts.
Source§impl Styled for StyleRefinement
impl Styled for StyleRefinement
Source§fn style(&mut self) -> &mut StyleRefinement
fn style(&mut self) -> &mut StyleRefinement
Source§fn p(self, length: impl IntoReactive<Length>) -> Self
fn p(self, length: impl IntoReactive<Length>) -> Self
Source§fn px(self, length: impl IntoReactive<Length>) -> Self
fn px(self, length: impl IntoReactive<Length>) -> Self
Source§fn py(self, length: impl IntoReactive<Length>) -> Self
fn py(self, length: impl IntoReactive<Length>) -> Self
Source§fn pt(self, length: impl IntoReactive<Length>) -> Self
fn pt(self, length: impl IntoReactive<Length>) -> Self
Source§fn pr(self, length: impl IntoReactive<Length>) -> Self
fn pr(self, length: impl IntoReactive<Length>) -> Self
Source§fn pb(self, length: impl IntoReactive<Length>) -> Self
fn pb(self, length: impl IntoReactive<Length>) -> Self
Source§fn pl(self, length: impl IntoReactive<Length>) -> Self
fn pl(self, length: impl IntoReactive<Length>) -> Self
Source§fn ps(self, length: impl IntoReactive<Length>) -> Self
fn ps(self, length: impl IntoReactive<Length>) -> Self
Source§fn pe(self, length: impl IntoReactive<Length>) -> Self
fn pe(self, length: impl IntoReactive<Length>) -> Self
Source§fn m(self, length: impl IntoReactive<Length>) -> Self
fn m(self, length: impl IntoReactive<Length>) -> Self
Source§fn mx(self, length: impl IntoReactive<Length>) -> Self
fn mx(self, length: impl IntoReactive<Length>) -> Self
Source§fn my(self, length: impl IntoReactive<Length>) -> Self
fn my(self, length: impl IntoReactive<Length>) -> Self
Source§fn mt(self, length: impl IntoReactive<Length>) -> Self
fn mt(self, length: impl IntoReactive<Length>) -> Self
Source§fn mr(self, length: impl IntoReactive<Length>) -> Self
fn mr(self, length: impl IntoReactive<Length>) -> Self
Source§fn mb(self, length: impl IntoReactive<Length>) -> Self
fn mb(self, length: impl IntoReactive<Length>) -> Self
Source§fn ml(self, length: impl IntoReactive<Length>) -> Self
fn ml(self, length: impl IntoReactive<Length>) -> Self
Source§fn ms(self, length: impl IntoReactive<Length>) -> Self
fn ms(self, length: impl IntoReactive<Length>) -> Self
Source§fn me(self, length: impl IntoReactive<Length>) -> Self
fn me(self, length: impl IntoReactive<Length>) -> Self
Source§fn gap(self, length: impl IntoReactive<Length>) -> Self
fn gap(self, length: impl IntoReactive<Length>) -> Self
Source§fn gap_x(self, length: impl IntoReactive<Length>) -> Self
fn gap_x(self, length: impl IntoReactive<Length>) -> Self
Source§fn gap_y(self, length: impl IntoReactive<Length>) -> Self
fn gap_y(self, length: impl IntoReactive<Length>) -> Self
Source§fn w(self, length: impl IntoReactive<Length>) -> Self
fn w(self, length: impl IntoReactive<Length>) -> Self
Source§fn h(self, length: impl IntoReactive<Length>) -> Self
fn h(self, length: impl IntoReactive<Length>) -> Self
Source§fn size(self, length: impl IntoReactive<Length>) -> Self
fn size(self, length: impl IntoReactive<Length>) -> Self
Source§fn min_w(self, length: impl IntoReactive<Length>) -> Self
fn min_w(self, length: impl IntoReactive<Length>) -> Self
Source§fn min_h(self, length: impl IntoReactive<Length>) -> Self
fn min_h(self, length: impl IntoReactive<Length>) -> Self
Source§fn max_w(self, length: impl IntoReactive<Length>) -> Self
fn max_w(self, length: impl IntoReactive<Length>) -> Self
Source§fn max_h(self, length: impl IntoReactive<Length>) -> Self
fn max_h(self, length: impl IntoReactive<Length>) -> Self
Source§fn top(self, length: impl IntoReactive<Length>) -> Self
fn top(self, length: impl IntoReactive<Length>) -> Self
Source§fn right(self, length: impl IntoReactive<Length>) -> Self
fn right(self, length: impl IntoReactive<Length>) -> Self
Source§fn bottom(self, length: impl IntoReactive<Length>) -> Self
fn bottom(self, length: impl IntoReactive<Length>) -> Self
Source§fn bottom_0p5(self) -> Self
fn bottom_0p5(self) -> Self
Source§fn bottom_1p5(self) -> Self
fn bottom_1p5(self) -> Self
Source§fn bottom_2p5(self) -> Self
fn bottom_2p5(self) -> Self
Source§fn bottom_3p5(self) -> Self
fn bottom_3p5(self) -> Self
Source§fn left(self, length: impl IntoReactive<Length>) -> Self
fn left(self, length: impl IntoReactive<Length>) -> Self
Source§fn inset(self, length: impl IntoReactive<Length>) -> Self
fn inset(self, length: impl IntoReactive<Length>) -> Self
Source§fn basis(self, length: impl IntoReactive<Length>) -> Self
fn basis(self, length: impl IntoReactive<Length>) -> Self
Source§fn p_safe_area(self) -> Self
fn p_safe_area(self) -> Self
padding: env(safe-area-inset-*)): the insets of its root
view (the surface’s safe area, a dialog’s, or a page’s below its
header).Source§fn px_safe_area(self) -> Self
fn px_safe_area(self) -> Self
Styled::p_safe_area).Source§fn py_safe_area(self) -> Self
fn py_safe_area(self) -> Self
Styled::p_safe_area).Source§fn pt_safe_area(self) -> Self
fn pt_safe_area(self) -> Self
padding-top: env(safe-area-inset-top), Styled::p_safe_area).Source§fn pt_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn pt_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
padding-top: calc(env(safe-area-inset-top) + <extra>)); extra is not negative.Source§fn pr_safe_area(self) -> Self
fn pr_safe_area(self) -> Self
padding-right: env(safe-area-inset-right), Styled::p_safe_area).Source§fn pr_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn pr_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
padding-right: calc(env(safe-area-inset-right) + <extra>)); extra is not negative.Source§fn pb_safe_area(self) -> Self
fn pb_safe_area(self) -> Self
padding-bottom: env(safe-area-inset-bottom), Styled::p_safe_area).Source§fn pb_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn pb_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
padding-bottom: calc(env(safe-area-inset-bottom) + <extra>)); extra is not negative.Source§fn pl_safe_area(self) -> Self
fn pl_safe_area(self) -> Self
padding-left: env(safe-area-inset-left), Styled::p_safe_area).Source§fn pl_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn pl_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
padding-left: calc(env(safe-area-inset-left) + <extra>)); extra is not negative.Source§fn pb_keyboard(self) -> Self
fn pb_keyboard(self) -> Self
padding-bottom: env(keyboard-inset-height)):
content kept above the keyboard, moving with it natively. For a
view that reaches the bottom of the surface.Source§fn pb_keyboard_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn pb_keyboard_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
padding-bottom: calc(env(keyboard-inset-height) + <extra>),
Styled::pb_keyboard); extra is not negative.Source§fn m_safe_area(self) -> Self
fn m_safe_area(self) -> Self
margin: env(safe-area-inset-*)): the insets of its root
view (the surface’s safe area, a dialog’s, or a page’s below its
header).Source§fn mx_safe_area(self) -> Self
fn mx_safe_area(self) -> Self
Styled::m_safe_area).Source§fn my_safe_area(self) -> Self
fn my_safe_area(self) -> Self
Styled::m_safe_area).Source§fn mt_safe_area(self) -> Self
fn mt_safe_area(self) -> Self
margin-top: env(safe-area-inset-top), Styled::m_safe_area).Source§fn mt_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn mt_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
margin-top: calc(env(safe-area-inset-top) + <extra>)).Source§fn mr_safe_area(self) -> Self
fn mr_safe_area(self) -> Self
margin-right: env(safe-area-inset-right), Styled::m_safe_area).Source§fn mr_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn mr_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
margin-right: calc(env(safe-area-inset-right) + <extra>)).Source§fn mb_safe_area(self) -> Self
fn mb_safe_area(self) -> Self
margin-bottom: env(safe-area-inset-bottom), Styled::m_safe_area).Source§fn mb_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn mb_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
margin-bottom: calc(env(safe-area-inset-bottom) + <extra>)).Source§fn ml_safe_area(self) -> Self
fn ml_safe_area(self) -> Self
margin-left: env(safe-area-inset-left), Styled::m_safe_area).Source§fn ml_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn ml_safe_area_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
margin-left: calc(env(safe-area-inset-left) + <extra>)).Source§fn mb_keyboard(self) -> Self
fn mb_keyboard(self) -> Self
margin-bottom: env(keyboard-inset-height)):
content kept above the keyboard, moving with it natively. For a
view that reaches the bottom of the surface.Source§fn mb_keyboard_plus(self, extra: impl Into<AbsoluteLength>) -> Self
fn mb_keyboard_plus(self, extra: impl Into<AbsoluteLength>) -> Self
extra (CSS’s
margin-bottom: calc(env(keyboard-inset-height) + <extra>),
Styled::mb_keyboard).Source§fn flex(self) -> Self
fn flex(self) -> Self
display: flex, Tailwind’s flex). A view that sets no display
lays its children out in a column.Source§fn grid_cols(self, count: impl IntoReactive<u16>) -> Self
fn grid_cols(self, count: impl IntoReactive<u16>) -> Self
count equal grid columns (Tailwind’s grid-cols-3).Source§fn grid_rows(self, count: impl IntoReactive<u16>) -> Self
fn grid_rows(self, count: impl IntoReactive<u16>) -> Self
count equal grid rows.Source§fn grid_template_columns(self, tracks: impl IntoReactive<SharedString>) -> Self
fn grid_template_columns(self, tracks: impl IntoReactive<SharedString>) -> Self
"200px 1fr", "repeat(auto-fill, minmax(80px, 1fr))", line names).Source§fn grid_template_rows(self, tracks: impl IntoReactive<SharedString>) -> Self
fn grid_template_rows(self, tracks: impl IntoReactive<SharedString>) -> Self
Source§fn grid_flow_col(self) -> Self
fn grid_flow_col(self) -> Self
Source§fn grid_flow_dense(self) -> Self
fn grid_flow_dense(self) -> Self
Source§fn col_span(self, count: impl IntoReactive<u16>) -> Self
fn col_span(self, count: impl IntoReactive<u16>) -> Self
count columns wide.Source§fn row_span(self, count: impl IntoReactive<u16>) -> Self
fn row_span(self, count: impl IntoReactive<u16>) -> Self
count rows high.Source§fn col_span_full(self) -> Self
fn col_span_full(self) -> Self
Source§fn row_span_full(self) -> Self
fn row_span_full(self) -> Self
Source§fn col_start(self, line: impl IntoReactive<i16>) -> Self
fn col_start(self, line: impl IntoReactive<i16>) -> Self
line (1 is the first; negative from the
end).Source§fn col_end(self, line: impl IntoReactive<i16>) -> Self
fn col_end(self, line: impl IntoReactive<i16>) -> Self
line.Source§fn row_start(self, line: impl IntoReactive<i16>) -> Self
fn row_start(self, line: impl IntoReactive<i16>) -> Self
line.Source§fn row_end(self, line: impl IntoReactive<i16>) -> Self
fn row_end(self, line: impl IntoReactive<i16>) -> Self
line.Source§fn invisible(self) -> Self
fn invisible(self) -> Self
visibility: hidden, Tailwind’s invisible, GPUI’s Styled::invisible): it
keeps its place and frame, and takes no presses or keyboard focus.
On a text nested in another (a span), its characters keep their
place in the lines and are left out of copies and screen readers.Source§fn flex_row_reverse(self) -> Self
fn flex_row_reverse(self) -> Self
Source§fn flex_col_reverse(self) -> Self
fn flex_col_reverse(self) -> Self
Source§fn flex_grow(self, factor: impl IntoReactive<f32>) -> Self
fn flex_grow(self, factor: impl IntoReactive<f32>) -> Self
factor times as much as a sibling growing by 1
(flex-grow; Tailwind’s grow-*).Source§fn flex_shrink(self, factor: impl IntoReactive<f32>) -> Self
fn flex_shrink(self, factor: impl IntoReactive<f32>) -> Self
factor times as much as
a sibling shrinking by 1 (flex-shrink).Source§fn flex_shrink_0(self) -> Self
fn flex_shrink_0(self) -> Self
Source§fn items_start(self) -> Self
fn items_start(self) -> Self
Source§fn items_center(self) -> Self
fn items_center(self) -> Self
Source§fn items_stretch(self) -> Self
fn items_stretch(self) -> Self
Source§fn items_baseline(self) -> Self
fn items_baseline(self) -> Self
Source§fn justify_start(self) -> Self
fn justify_start(self) -> Self
Source§fn justify_center(self) -> Self
fn justify_center(self) -> Self
Source§fn justify_end(self) -> Self
fn justify_end(self) -> Self
Source§fn justify_between(self) -> Self
fn justify_between(self) -> Self
Source§fn justify_around(self) -> Self
fn justify_around(self) -> Self
Source§fn justify_evenly(self) -> Self
fn justify_evenly(self) -> Self
Source§fn content_start(self) -> Self
fn content_start(self) -> Self
alignContent, the default; Tailwind’s content-start).Source§fn content_center(self) -> Self
fn content_center(self) -> Self
content-center).Source§fn content_end(self) -> Self
fn content_end(self) -> Self
content-end).Source§fn content_between(self) -> Self
fn content_between(self) -> Self
content-between).Source§fn content_around(self) -> Self
fn content_around(self) -> Self
content-around).Source§fn content_evenly(self) -> Self
fn content_evenly(self) -> Self
content-evenly).Source§fn content_stretch(self) -> Self
fn content_stretch(self) -> Self
content-stretch).Source§fn self_start(self) -> Self
fn self_start(self) -> Self
Source§fn self_center(self) -> Self
fn self_center(self) -> Self
Source§fn self_stretch(self) -> Self
fn self_stretch(self) -> Self
Source§fn aspect_ratio(self, ratio: impl IntoReactive<f32>) -> Self
fn aspect_ratio(self, ratio: impl IntoReactive<f32>) -> Self
Source§fn aspect_square(self) -> Self
fn aspect_square(self) -> Self
Source§fn sticky(self) -> Self
fn sticky(self) -> Self
top (in a
horizontal scroll view left) from the start of the viewport of the
scroll view around it, as far as the end of its parent’s content box
(CSS position: sticky; .top(..) / .bind_sticky_top(..) say
where).Source§fn z_index(self, z: impl IntoReactive<i32>) -> Self
fn z_index(self, z: impl IntoReactive<i32>) -> Self
Source§fn bg(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn bg(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn opacity(self, opacity: impl IntoReactive<f32>) -> Self
fn opacity(self, opacity: impl IntoReactive<f32>) -> Self
Source§fn rounded(self, radius: impl IntoReactive<Length>) -> Self
fn rounded(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_none(self) -> Self
fn rounded_none(self) -> Self
Source§fn rounded_xs(self) -> Self
fn rounded_xs(self) -> Self
Source§fn rounded_sm(self) -> Self
fn rounded_sm(self) -> Self
Source§fn rounded_md(self) -> Self
fn rounded_md(self) -> Self
Source§fn rounded_lg(self) -> Self
fn rounded_lg(self) -> Self
Source§fn rounded_xl(self) -> Self
fn rounded_xl(self) -> Self
Source§fn rounded_2xl(self) -> Self
fn rounded_2xl(self) -> Self
Source§fn rounded_3xl(self) -> Self
fn rounded_3xl(self) -> Self
Source§fn rounded_full(self) -> Self
fn rounded_full(self) -> Self
Source§fn rounded_t(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_t(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_b(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_b(self, radius: impl IntoReactive<Length>) -> Self
Source§fn border(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_t_1(self) -> Self
fn border_t_1(self) -> Self
Source§fn border_b_1(self) -> Self
fn border_b_1(self) -> Self
Source§fn border_l_1(self) -> Self
fn border_l_1(self) -> Self
Source§fn border_r_1(self) -> Self
fn border_r_1(self) -> Self
Source§fn border_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_t(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border_t(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_r(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border_r(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_b(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border_b(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_l(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border_l(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_x(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border_x(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_y(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border_y(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_s(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border_s(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_e(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn border_e(self, width: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn border_t_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_t_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_r_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_r_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_b_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_b_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_l_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_l_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_x_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_x_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_y_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_y_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_s_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_s_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_e_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn border_e_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn border_solid(self) -> Self
fn border_solid(self) -> Self
Source§fn border_dashed(self) -> Self
fn border_dashed(self) -> Self
Source§fn border_dotted(self) -> Self
fn border_dotted(self) -> Self
Source§fn border_none(self) -> Self
fn border_none(self) -> Self
Styled::border_solid and the other styles show it again.Source§fn border_curve(self, curve: BorderCurve) -> Self
fn border_curve(self, curve: BorderCurve) -> Self
Source§fn rounded_tl(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_tl(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_tr(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_tr(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_br(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_br(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_bl(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_bl(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_l(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_l(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_r(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_r(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_ss(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_ss(self, radius: impl IntoReactive<Length>) -> Self
rounded-ss).Source§fn rounded_se(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_se(self, radius: impl IntoReactive<Length>) -> Self
rounded-se).Source§fn rounded_ee(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_ee(self, radius: impl IntoReactive<Length>) -> Self
rounded-ee).Source§fn rounded_es(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_es(self, radius: impl IntoReactive<Length>) -> Self
rounded-es).Source§fn rounded_s(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_s(self, radius: impl IntoReactive<Length>) -> Self
Source§fn rounded_e(self, radius: impl IntoReactive<Length>) -> Self
fn rounded_e(self, radius: impl IntoReactive<Length>) -> Self
Source§fn outline(self, width: impl Into<AbsoluteLength>) -> Self
fn outline(self, width: impl Into<AbsoluteLength>) -> Self
width wide, outside the border; it takes no space.
Solid unless a style method says otherwise, before or after it.Source§fn outline_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn outline_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn outline_offset(self, offset: impl IntoReactive<AbsoluteLength>) -> Self
fn outline_offset(self, offset: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn outline_dashed(self) -> Self
fn outline_dashed(self) -> Self
Styled::outline sets a
width, as CSS’s medium).Source§fn outline_dotted(self) -> Self
fn outline_dotted(self) -> Self
Styled::outline sets a
width).Source§fn outline_none(self) -> Self
fn outline_none(self) -> Self
Source§fn shadow_none(self) -> Self
fn shadow_none(self) -> Self
Source§fn shadow_2xs(self) -> Self
fn shadow_2xs(self) -> Self
shadow-2xs.Source§fn shadow_2xl(self) -> Self
fn shadow_2xl(self) -> Self
shadow-2xl.Source§fn shadow(self, layers: impl IntoIterator<Item = BoxShadow>) -> Self
fn shadow(self, layers: impl IntoIterator<Item = BoxShadow>) -> Self
box-shadow: offsets, blur, spread,
color, inset), instead of a preset’s.Source§fn shadow_color(self, color: impl Into<AdaptiveColor>) -> Self
fn shadow_color(self, color: impl Into<AdaptiveColor>) -> Self
shadow-sky-500; one with an alpha sets it,
shadow-sky-500/50).Source§fn inset_shadow_2xs(self) -> Self
fn inset_shadow_2xs(self) -> Self
inset-shadow-2xs.Source§fn inset_shadow_xs(self) -> Self
fn inset_shadow_xs(self) -> Self
inset-shadow-xs.Source§fn inset_shadow_sm(self) -> Self
fn inset_shadow_sm(self) -> Self
inset-shadow-sm.Source§fn inset_shadow_none(self) -> Self
fn inset_shadow_none(self) -> Self
Source§fn inset_shadow_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn inset_shadow_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Styled::shadow_color for the
presets).Source§fn ring(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn ring(self, width: impl IntoReactive<AbsoluteLength>) -> Self
width wide around the border (a solid shadow; it takes no
space), in the text color unless Styled::ring_color.Source§fn ring_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn ring_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn ring_offset(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn ring_offset(self, width: impl IntoReactive<AbsoluteLength>) -> Self
width between the border and the ring.Source§fn ring_offset_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn ring_offset_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn ring_inset(self) -> Self
fn ring_inset(self) -> Self
Source§fn inset_ring(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn inset_ring(self, width: impl IntoReactive<AbsoluteLength>) -> Self
width wide, inside the border.Source§fn inset_ring_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn inset_ring_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn bg_linear(self, angle: impl IntoReactive<Radians>) -> Self
fn bg_linear(self, angle: impl IntoReactive<Radians>) -> Self
angle (0 up,
deg(90.0) right), from Styled::gradient_from through
Styled::gradient_via to Styled::gradient_to.Source§fn bg_linear_to_t(self) -> Self
fn bg_linear_to_t(self) -> Self
Source§fn bg_linear_to_r(self) -> Self
fn bg_linear_to_r(self) -> Self
Source§fn bg_linear_to_b(self) -> Self
fn bg_linear_to_b(self) -> Self
Source§fn bg_linear_to_l(self) -> Self
fn bg_linear_to_l(self) -> Self
Source§fn bg_linear_to_tr(self) -> Self
fn bg_linear_to_tr(self) -> Self
Source§fn bg_linear_to_br(self) -> Self
fn bg_linear_to_br(self) -> Self
Source§fn bg_linear_to_bl(self) -> Self
fn bg_linear_to_bl(self) -> Self
Source§fn bg_linear_to_tl(self) -> Self
fn bg_linear_to_tl(self) -> Self
Source§fn bg_conic(self, angle: impl IntoReactive<Radians>) -> Self
fn bg_conic(self, angle: impl IntoReactive<Radians>) -> Self
angle (0 up).Source§fn bg_gradient_none(self) -> Self
fn bg_gradient_none(self) -> Self
Source§fn gradient_from(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn gradient_from(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn gradient_via(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn gradient_via(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn gradient_to(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn gradient_to(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn gradient_from_position(self, at: impl IntoReactive<Percentage>) -> Self
fn gradient_from_position(self, at: impl IntoReactive<Percentage>) -> Self
Source§fn gradient_via_position(self, at: impl IntoReactive<Percentage>) -> Self
fn gradient_via_position(self, at: impl IntoReactive<Percentage>) -> Self
Source§fn gradient_to_position(self, at: impl IntoReactive<Percentage>) -> Self
fn gradient_to_position(self, at: impl IntoReactive<Percentage>) -> Self
Source§fn mask_linear(
self,
angle: impl IntoReactive<Radians>,
stops: impl IntoReactive<Vec<ColorStop>>,
) -> Self
fn mask_linear( self, angle: impl IntoReactive<Radians>, stops: impl IntoReactive<Vec<ColorStop>>, ) -> Self
deg(90.0) right). Stops accept colors or
(color, position) pairs, with typed fractions or lengths. Both arguments
accept signals and closures (Vec<ColorStop> for reactive stops); static
values create no binding.
.mask_linear(deg(90.0), [transparent_black(), black(), transparent_black()]).
An empty stop vector clears the mask reactively. Includes backdrop filters.
Not drawn on Windows and GPUI.Source§fn mask_radial(self, stops: impl IntoReactive<Vec<ColorStop>>) -> Self
fn mask_radial(self, stops: impl IntoReactive<Vec<ColorStop>>) -> Self
Styled::mask_linear. Use a
Vec<ColorStop> for signal/closure results, or an array of colors/pairs
for static stops. An empty vector clears the mask reactively.Source§fn clip_path(self, clip: impl IntoReactive<ClipInset>) -> Self
fn clip_path(self, clip: impl IntoReactive<ClipInset>) -> Self
clip
(CSS’s clip-path: inset(..)): a rectangle inset from its box with
rounded corners, outside which presses reach neither it nor what is
in it. Its changes animate with Styled::transition_clip_path
(or Styled::transition_all), so a panel opens out of a corner:
.clip_path(ClipInset::new().bottom(percentage(1.0)).left(percentage(1.0)).rounded(px(12.0)))
while closed, .clip_path(ClipInset::new().rounded(px(12.0))) open.Source§fn clip_path_none(self) -> Self
fn clip_path_none(self) -> Self
Source§fn blur(self, radius: impl Into<Points>) -> Self
fn blur(self, radius: impl Into<Points>) -> Self
radius (Tailwind’s blur-sm is 8
points).Source§fn brightness(self, amount: f32) -> Self
fn brightness(self, amount: f32) -> Self
Source§fn hue_rotate(self, angle: impl Into<Radians>) -> Self
fn hue_rotate(self, angle: impl Into<Radians>) -> Self
angle.Source§fn filter_none(self) -> Self
fn filter_none(self) -> Self
Source§fn backdrop_blur(self, radius: impl Into<Points>) -> Self
fn backdrop_blur(self, radius: impl Into<Points>) -> Self
radius (frosted glass; give it a
translucent background).Source§fn backdrop_brightness(self, amount: f32) -> Self
fn backdrop_brightness(self, amount: f32) -> Self
Source§fn backdrop_contrast(self, amount: f32) -> Self
fn backdrop_contrast(self, amount: f32) -> Self
Source§fn backdrop_grayscale(self, amount: f32) -> Self
fn backdrop_grayscale(self, amount: f32) -> Self
Source§fn backdrop_hue_rotate(self, angle: impl Into<Radians>) -> Self
fn backdrop_hue_rotate(self, angle: impl Into<Radians>) -> Self
Source§fn backdrop_invert(self, amount: f32) -> Self
fn backdrop_invert(self, amount: f32) -> Self
Source§fn backdrop_opacity(self, amount: f32) -> Self
fn backdrop_opacity(self, amount: f32) -> Self
Source§fn backdrop_saturate(self, amount: f32) -> Self
fn backdrop_saturate(self, amount: f32) -> Self
Source§fn backdrop_sepia(self, amount: f32) -> Self
fn backdrop_sepia(self, amount: f32) -> Self
Source§fn backdrop_filter_none(self) -> Self
fn backdrop_filter_none(self) -> Self
Source§fn mix_blend_mode(self, mode: BlendMode) -> Self
fn mix_blend_mode(self, mode: BlendMode) -> Self
Source§fn pointer_events(
self,
pointer_events: impl IntoReactive<PointerEvents>,
) -> Self
fn pointer_events( self, pointer_events: impl IntoReactive<PointerEvents>, ) -> Self
pointerEvents):
PointerEvents::None none, for the views in it too unless one says
Auto; BoxNone none on itself; BoxOnly none on the views in it.Source§fn select_text(self) -> Self
fn select_text(self) -> Self
userSelect: "text",
Tailwind’s select-text).Source§fn select_none(self) -> Self
fn select_none(self) -> Self
userSelect: "none", Tailwind’s
select-none).Source§fn glass_effect(self, glass: GlassEffect) -> Self
fn glass_effect(self, glass: GlassEffect) -> Self
glassEffect; iOS 26 and
macOS 26), its backdropFilter elsewhere.Source§fn glass_tint_color(
self,
color: impl IntoReactive<Option<AdaptiveColor>>,
) -> Self
fn glass_tint_color( self, color: impl IntoReactive<Option<AdaptiveColor>>, ) -> Self
glassTintColor). A color tints the
native glass; None restores its default. Bind an optional adaptive
color to set and clear the tint; static colors can be passed directly.
Has no effect without glassEffect.Source§fn cursor(self, cursor: Cursor) -> Self
fn cursor(self, cursor: Cursor) -> Self
cursor; desktops, and iPad
and Android with a mouse).Source§fn cursor_pointer(self) -> Self
fn cursor_pointer(self) -> Self
cursor-pointer).Source§fn transition(self) -> Self
fn transition(self) -> Self
transition: 150ms, ease-in-out by default).Source§fn transition_all(self) -> Self
fn transition_all(self) -> Self
Source§fn transition_colors(self) -> Self
fn transition_colors(self) -> Self
Source§fn transition_opacity(self) -> Self
fn transition_opacity(self) -> Self
Source§fn transition_shadow(self) -> Self
fn transition_shadow(self) -> Self
Source§fn transition_transform(self) -> Self
fn transition_transform(self) -> Self
Source§fn transition_clip_path(self) -> Self
fn transition_clip_path(self) -> Self
transition-property: clip-path).Source§fn transition_mask(self) -> Self
fn transition_mask(self) -> Self
transition-property: mask-image): gradients of the same shape and stop count move stop
by stop; any other change applies at once.Source§fn transition_none(self) -> Self
fn transition_none(self) -> Self
Source§fn duration(self, ms: impl IntoReactive<f32>) -> Self
fn duration(self, ms: impl IntoReactive<f32>) -> Self
ms milliseconds.Source§fn delay(self, ms: impl IntoReactive<f32>) -> Self
fn delay(self, ms: impl IntoReactive<f32>) -> Self
ms milliseconds.Source§fn ease_linear(self) -> Self
fn ease_linear(self) -> Self
Source§fn ease_in_out(self) -> Self
fn ease_in_out(self) -> Self
Source§fn ease_bezier(self, x1: f32, y1: f32, x2: f32, y2: f32) -> Self
fn ease_bezier(self, x1: f32, y1: f32, x2: f32, y2: f32) -> Self
x1, y1, x2, y2 (a y
outside 0..1 overshoots).Source§fn ease_spring(self, spring: Spring) -> Self
fn ease_spring(self, spring: Spring) -> Self
ease-spring-[620,36]): they time themselves,
lasting until the spring settles (Spring::settle_ms), so
Self::duration is not used. A spring that cannot settle (a
stiffness, damping or mass that is not positive) sets nothing.Source§fn animate_spin(self) -> Self
fn animate_spin(self) -> Self
animate-spin: a loader).Source§fn animate_ping(self) -> Self
fn animate_ping(self) -> Self
animate-ping: a badge’s pulse).Source§fn animate_pulse(self) -> Self
fn animate_pulse(self) -> Self
animate-pulse: a skeleton).Source§fn animate_bounce(self) -> Self
fn animate_bounce(self) -> Self
animate-bounce).Source§fn animation(self, animation: KeyframeAnimation) -> Self
fn animation(self, animation: KeyframeAnimation) -> Self
animationName
with animationDuration, animationDelay,
animationTimingFunction, animationIterationCount,
animationFrameRate):
.animation(KeyframeAnimation::new(Keyframes::Spin).duration(800.0)).Source§fn animate_none(self) -> Self
fn animate_none(self) -> Self
Source§fn scale(self, scale: impl IntoReactive<f32>) -> Self
fn scale(self, scale: impl IntoReactive<f32>) -> Self
Source§fn scale_x(self, scale: impl IntoReactive<f32>) -> Self
fn scale_x(self, scale: impl IntoReactive<f32>) -> Self
Source§fn scale_y(self, scale: impl IntoReactive<f32>) -> Self
fn scale_y(self, scale: impl IntoReactive<f32>) -> Self
Source§fn translate_x(self, offset: impl IntoReactive<DefiniteLength>) -> Self
fn translate_x(self, offset: impl IntoReactive<DefiniteLength>) -> Self
offset (after layout): points, or a
fraction of its own width (relative(-0.5)).Source§fn translate_y(self, offset: impl IntoReactive<DefiniteLength>) -> Self
fn translate_y(self, offset: impl IntoReactive<DefiniteLength>) -> Self
offset (after layout): points, or a fraction
of its own height.Source§fn rotate(self, angle: impl IntoReactive<Radians>) -> Self
fn rotate(self, angle: impl IntoReactive<Radians>) -> Self
angle, clockwise.Source§fn rotate_x(self, angle: impl IntoReactive<Radians>) -> Self
fn rotate_x(self, angle: impl IntoReactive<Radians>) -> Self
angle around the horizontal axis (3D; in a view with
Styled::perspective it tilts towards the viewer).Source§fn rotate_y(self, angle: impl IntoReactive<Radians>) -> Self
fn rotate_y(self, angle: impl IntoReactive<Radians>) -> Self
angle around the vertical axis (3D).Source§fn skew_x(self, angle: impl IntoReactive<Radians>) -> Self
fn skew_x(self, angle: impl IntoReactive<Radians>) -> Self
angle (iOS; Android has no skew).Source§fn skew_y(self, angle: impl IntoReactive<Radians>) -> Self
fn skew_y(self, angle: impl IntoReactive<Radians>) -> Self
angle (iOS).Source§fn perspective(self, distance: impl IntoReactive<AbsoluteLength>) -> Self
fn perspective(self, distance: impl IntoReactive<AbsoluteLength>) -> Self
distance away (smaller: stronger), from its center (CSS’s
perspective, perspective-*).Source§fn transform_step(
self,
kind: TransformKind,
amount: impl IntoReactive<f32>,
) -> Self
fn transform_step( self, kind: TransformKind, amount: impl IntoReactive<f32>, ) -> Self
kind of its transform, by amount. The steps compose in
CSS’s order, whatever the order of the calls: translate, rotate,
scale, then the 3D rotations and the skews.
TransformKind::Perspective is Styled::perspective, its
children’s depth.Source§fn transform_none(self) -> Self
fn transform_none(self) -> Self
transform: none; the
translation, rotation and scale are properties of their own, which
Styled::translate_none, Styled::rotate_none and
Styled::scale_none remove).Source§fn translate_none(self) -> Self
fn translate_none(self) -> Self
Source§fn scale_none(self) -> Self
fn scale_none(self) -> Self
Source§fn rotate_none(self) -> Self
fn rotate_none(self) -> Self
Source§fn transform_origin(self, origin: TransformOrigin) -> Self
fn transform_origin(self, origin: TransformOrigin) -> Self
Source§fn origin_top_left(self) -> Self
fn origin_top_left(self) -> Self
Source§fn origin_top(self) -> Self
fn origin_top(self) -> Self
Source§fn origin_top_right(self) -> Self
fn origin_top_right(self) -> Self
Source§fn origin_left(self) -> Self
fn origin_left(self) -> Self
Source§fn origin_center(self) -> Self
fn origin_center(self) -> Self
Source§fn origin_right(self) -> Self
fn origin_right(self) -> Self
Source§fn origin_bottom_left(self) -> Self
fn origin_bottom_left(self) -> Self
Source§fn origin_bottom(self) -> Self
fn origin_bottom(self) -> Self
Source§fn origin_bottom_right(self) -> Self
fn origin_bottom_right(self) -> Self
Source§fn object_fit(self, fit: impl IntoReactive<ResizeMode>) -> Self
fn object_fit(self, fit: impl IntoReactive<ResizeMode>) -> Self
objectFit): Cover (an
image’s default), Contain (a video’s), Stretch (CSS’s fill),
Center (none) or ScaleDown.Source§fn object_position(self, position: ObjectPosition) -> Self
fn object_position(self, position: ObjectPosition) -> Self
object-position; the center by default): a covering image
is cropped around it.Source§fn object_top_left(self) -> Self
fn object_top_left(self) -> Self
object-top-left).Source§fn object_top(self) -> Self
fn object_top(self) -> Self
object-top): a tall image
covering its box is cropped at the bottom.Source§fn object_top_right(self) -> Self
fn object_top_right(self) -> Self
object-top-right).Source§fn object_left(self) -> Self
fn object_left(self) -> Self
object-left).Source§fn object_center(self) -> Self
fn object_center(self) -> Self
object-center, the
default).Source§fn object_right(self) -> Self
fn object_right(self) -> Self
object-right).Source§fn object_bottom_left(self) -> Self
fn object_bottom_left(self) -> Self
object-bottom-left).Source§fn object_bottom(self) -> Self
fn object_bottom(self) -> Self
object-bottom).Source§fn object_bottom_right(self) -> Self
fn object_bottom_right(self) -> Self
object-bottom-right).Source§fn backface_visible(self) -> Self
fn backface_visible(self) -> Self
Source§fn text_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn text_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn tint_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn tint_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
tint-*): of template images, and of a
page header’s buttons in super::Screen::header_style_with.Source§fn accent_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn accent_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
accentColor, CSS’s
accent-color, Tailwind’s accent-*), which a native component gets
as its accentColor prop, such as the track of a system switch when
on. Set on the control itself; it is not inherited.Source§fn fill_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn fill_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fill,
Tailwind’s fill-<color>; the elements inside inherit it, as in
CSS): the areas of nsh_base::plot.Source§fn fill_current(self) -> Self
fn fill_current(self) -> Self
fill-current, currentColor).Source§fn stroke_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn stroke_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
stroke, Tailwind’s stroke-<color>; inherited, as in CSS): the
lines and grids of nsh_base::plot.Source§fn stroke_none(self) -> Self
fn stroke_none(self) -> Self
stroke-none).Source§fn stroke_current(self) -> Self
fn stroke_current(self) -> Self
stroke-current, currentColor).Source§fn stroke_width(self, width: impl IntoReactive<AbsoluteLength>) -> Self
fn stroke_width(self, width: impl IntoReactive<AbsoluteLength>) -> Self
strokeWidth, Tailwind’s
stroke-<number>; 1 by default, inherited).Source§fn text_size(self, size: impl IntoReactive<Length>) -> Self
fn text_size(self, size: impl IntoReactive<Length>) -> Self
Source§fn line_height(self, height: impl IntoReactive<LineHeight>) -> Self
fn line_height(self, height: impl IntoReactive<LineHeight>) -> Self
px(20.0)), or a multiple of the font
size (LineHeight::Multiple(1.5)).Source§fn font_weight(self, weight: FontWeight) -> Self
fn font_weight(self, weight: FontWeight) -> Self
Source§fn font_family(self, family: impl IntoReactive<SharedString>) -> Self
fn font_family(self, family: impl IntoReactive<SharedString>) -> Self
None style: the system font is the default).Source§fn underline(self) -> Self
fn underline(self) -> Self
Styled::line_through, both lines).Source§fn line_through(self) -> Self
fn line_through(self) -> Self
Styled::underline, both lines).Source§fn no_underline(self) -> Self
fn no_underline(self) -> Self
Source§fn text_decoration_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
fn text_decoration_color(self, color: impl IntoReactive<AdaptiveColor>) -> Self
Source§fn text_decoration_solid(self) -> Self
fn text_decoration_solid(self) -> Self
Source§fn text_decoration_double(self) -> Self
fn text_decoration_double(self) -> Self
Source§fn text_decoration_dotted(self) -> Self
fn text_decoration_dotted(self) -> Self
Source§fn text_decoration_dashed(self) -> Self
fn text_decoration_dashed(self) -> Self
Source§fn text_decoration_wavy(self) -> Self
fn text_decoration_wavy(self) -> Self
Source§fn text_decoration_thickness(self, thickness: impl IntoReactive<Points>) -> Self
fn text_decoration_thickness(self, thickness: impl IntoReactive<Points>) -> Self
Source§fn underline_offset(self, offset: impl IntoReactive<Points>) -> Self
fn underline_offset(self, offset: impl IntoReactive<Points>) -> Self
Source§fn capitalize(self) -> Self
fn capitalize(self) -> Self
Source§fn normal_case(self) -> Self
fn normal_case(self) -> Self
Source§fn tabular_nums(self) -> Self
fn tabular_nums(self) -> Self
Source§fn proportional_nums(self) -> Self
fn proportional_nums(self) -> Self
Source§fn oldstyle_nums(self) -> Self
fn oldstyle_nums(self) -> Self
Source§fn lining_nums(self) -> Self
fn lining_nums(self) -> Self
Source§fn small_caps(self) -> Self
fn small_caps(self) -> Self
Source§fn normal_nums(self) -> Self
fn normal_nums(self) -> Self
small_caps stays).Source§fn direction(self, direction: impl IntoReactive<LayoutDirection>) -> Self
fn direction(self, direction: impl IntoReactive<LayoutDirection>) -> Self
Source§fn number_of_lines(self, lines: impl IntoReactive<u32>) -> Self
fn number_of_lines(self, lines: impl IntoReactive<u32>) -> Self
Source§fn text_overflow(self, mode: impl IntoReactive<EllipsizeMode>) -> Self
fn text_overflow(self, mode: impl IntoReactive<EllipsizeMode>) -> Self
textOverflow): its end with an
ellipsis (Tail, the default), its start or middle, or clipped.Source§fn whitespace_nowrap(self) -> Self
fn whitespace_nowrap(self) -> Self
whitespace-nowrap). A
view’s reaches the texts in it, as CSS’s white-space does.Source§fn whitespace_normal(self) -> Self
fn whitespace_normal(self) -> Self
whitespace-normal): undoes a
view’s whitespace_nowrap or text_pretty around them.Source§fn text_pretty(self) -> Self
fn text_pretty(self) -> Self
text-pretty): a last line shorter than a
quarter of the box takes words from the lines above, without adding
a line. A view’s reaches the texts in it.Source§fn writing_direction(self, direction: WritingDirection) -> Self
fn writing_direction(self, direction: WritingDirection) -> Self
Source§fn text_justify(self) -> Self
fn text_justify(self) -> Self
Source§fn text_shadow_2xs(self) -> Self
fn text_shadow_2xs(self) -> Self
text-shadow-2xs.Source§fn text_shadow_xs(self) -> Self
fn text_shadow_xs(self) -> Self
text-shadow-xs.Source§fn text_shadow_sm(self) -> Self
fn text_shadow_sm(self) -> Self
text-shadow-sm.Source§fn text_shadow_md(self) -> Self
fn text_shadow_md(self) -> Self
text-shadow-md.Source§fn text_shadow_lg(self) -> Self
fn text_shadow_lg(self) -> Self
text-shadow-lg.Source§fn text_shadow_none(self) -> Self
fn text_shadow_none(self) -> Self
Source§fn text_shadow_color(self, color: impl Into<AdaptiveColor>) -> Self
fn text_shadow_color(self, color: impl Into<AdaptiveColor>) -> Self
Styled::text_shadow’s
layers (an opaque color keeps their alpha).Source§fn text_shadow(self, layers: impl IntoIterator<Item = TextShadow>) -> Self
fn text_shadow(self, layers: impl IntoIterator<Item = TextShadow>) -> Self
text-shadow: offsets, blur and
color), instead of a preset’s; drawn as the widest one.Source§fn text_center(self) -> Self
fn text_center(self) -> Self
Source§fn text_right(self) -> Self
fn text_right(self) -> Self
Source§fn text_indent(self, indent: impl IntoReactive<AbsoluteLength>) -> Self
fn text_indent(self, indent: impl IntoReactive<AbsoluteLength>) -> Self
indent from the
leading edge (CSS’s text-indent); a negative value is 0, the first
line not hanging into the margin.Source§fn align_baseline(self) -> Self
fn align_baseline(self) -> Self
align-baseline).Source§fn align_text_top(self) -> Self
fn align_text_top(self) -> Self
align-text-top).Source§fn align_text_bottom(self) -> Self
fn align_text_bottom(self) -> Self
align-text-bottom).Source§fn align_middle(self) -> Self
fn align_middle(self) -> Self
align-middle).Source§fn letter_spacing(self, spacing: impl IntoReactive<AbsoluteLength>) -> Self
fn letter_spacing(self, spacing: impl IntoReactive<AbsoluteLength>) -> Self
Source§fn style_when(
self,
when: impl IntoReactive<bool>,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn style_when( self, when: impl IntoReactive<bool>, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
f’s styles while when holds: a value decides once, a signal or a
closure switches them as it changes (Tailwind’s classes made
conditional; native states such as .active need none).Source§fn style_with(
self,
f: impl Fn(StyleRefinement) -> StyleRefinement + 'static,
) -> Self
fn style_with( self, f: impl Fn(StyleRefinement) -> StyleRefinement + 'static, ) -> Self
f makes, made again when what it reads changes (any
style that depends on the app’s state; a value that changes alone
is better given to its method: .w(move || px(width.get()))).Source§fn dark(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
fn dark(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
dark:), for what is not a
color: theme colors switch by themselves.Source§fn selected(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
fn selected(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
selected:): the element’s
accessibility state says so (a Button’s selected, a tab’s).Source§fn checked(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
fn checked(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
checked:): the element’s
accessibility state says so, not mixed (a checkbox’s, a switch’s, a
radio’s), or the control it is a part of is
(Interactive::project_checked: a switch’s thumb).Source§fn indeterminate(
self,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn indeterminate( self, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
indeterminate:): the
element’s accessibility state says checked is mixed (a checkbox
that is neither), or the control it is a part of is
(Interactive::project_indeterminate: a checkbox’s indicator).Source§fn expanded(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
fn expanded(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
aria-expanded:): the element’s
accessibility state says so (a Popover’s or Menu’s trigger
while its popup is open, a collapsible’s header).Source§fn aria_pressed(
self,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn aria_pressed( self, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
aria-pressed:):
the element’s accessibility state says it is pressed, not mixed
(gpui-base’s Toggle styled pressed). Not .active(..), a
press in progress.Source§fn group(self) -> Self
fn group(self) -> Self
group_* styles of the elements inside follow
its press, hover and focus (Tailwind’s group).Source§fn group_named(self, name: &'static str) -> Self
fn group_named(self, name: &'static str) -> Self
name (group/name), for group_*_named
styles inside it that skip nearer groups.Source§fn group_active(
self,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn group_active( self, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
Styled::group around it is pressed
(group-active:).Source§fn group_hover(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
fn group_hover(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
Source§fn group_focus_within(
self,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn group_focus_within( self, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
group-focus-within:).Source§fn group_focus_visible(
self,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn group_focus_visible( self, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
group-focus-visible:).Source§fn group_active_named(
self,
name: &'static str,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn group_active_named( self, name: &'static str, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
name around it is pressed
(group-active/name:).Source§fn group_hover_named(
self,
name: &'static str,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn group_hover_named( self, name: &'static str, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
name around it is hovered.Source§fn group_focus_within_named(
self,
name: &'static str,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn group_focus_within_named( self, name: &'static str, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
name around it has focus.Source§fn group_focus_visible_named(
self,
name: &'static str,
f: impl FnOnce(StyleRefinement) -> StyleRefinement,
) -> Self
fn group_focus_visible_named( self, name: &'static str, f: impl FnOnce(StyleRefinement) -> StyleRefinement, ) -> Self
name around it has the keyboard focus and
shows it (group-focus-visible/name:).