Skip to content

Widget Defaults Reference

This file is generated from widget source initializers (Default impls and new constructors). It is intended as an agent-facing quick reference for avoiding noisy builder chains.

Agent rule: omit setters whose value equals the default shown here. Do not emit .width(Length::Auto), .border(true), .focusable(true), or similar calls unless the surrounding code needs to make that default explicit for readability.

Regenerate with python3 scripts/generate-widget-defaults.py --write. Check freshness with python3 scripts/generate-widget-defaults.py --check.

Accordion

Source: src/widgets/accordion/mod.rs:45 (Accordion).

FieldDefault initializer
itemsVec::new()
on_toggleNone
exclusivefalse
gap0
paddingPadding::default()
borderfalse
border_styleBorderStyle::Plain
styleStyle::default()
header_styleStyle::default()
header_hover_styleStyleSlot::Inherit
header_focus_styleStyleSlot::Inherit
header_paddingPadding::default()
content_paddingPadding::default()
content_borderfalse
content_border_styleBorderStyle::Plain
content_styleStyle::default()
disabled_styleStyle::default()
expanded_icon"▼ ".into()
collapsed_icon"▶ ".into()
focusablefalse
tab_stoptrue
on_focusNone
on_blurNone
widthLength::Flex(1)
heightLength::Auto

Button

Source: src/widgets/button/mod.rs:100 (Button).

FieldDefault initializer
labelconstructor/local value (not a default)
iconNone
icon_styleStyle::default()
icon_gap1
shortcutNone
shortcut_styleStyle::default()
shortcut_gap1
styleStyle::default()
hover_styleStyleSlot::Inherit
focus_styleStyleSlot::Inherit
alignAlign::Center
widthLength::Auto
heightLength::Auto
variantButtonVariant::Bracket
border_styleBorderStyle::Plain
hover_border_styleNone
focus_border_styleNone
paddingPadding { left: 1, right: 1, top: 0, bottom: 0, }
disabledfalse
disabled_styleStyle::default()
on_clickNone
on_keyNone
focusabletrue
tab_stoptrue
on_focusNone
on_blurNone

Checkbox

Source: src/widgets/checkbox/mod.rs:187 (Checkbox).

FieldDefault initializer
stateif checked { CheckboxState::Checked } else { CheckboxState::Unchecked }
labelNone
variantCheckboxVariant::Bracket
gap1
styleStyle::default()
hover_styleStyleSlot::Inherit
focus_styleStyleSlot::Inherit
checked_styleStyle::default()
unchecked_styleStyle::default()
indeterminate_styleStyle::default()
label_styleStyle::default()
paddingPadding::default()
disabledfalse
disabled_styleStyle::default()
widthLength::Auto
heightLength::Auto
on_toggleNone
on_clickNone
on_keyNone
focusabletrue
tab_stoptrue
on_focusNone
on_blurNone

Input

Source: src/widgets/input/mod.rs:85 (Input).

FieldDefault initializer
valueconstructor/local value (not a default)
cursorconstructor/local value (not a default)
anchorNone
placeholderNone
prefixNone
suffixNone
truncate_headfalse
styleStyle::default()
hover_styleStyleSlot::Inherit
focus_styleStyleSlot::Inherit
focus_content_styleStyle::default()
hover_border_styleNone
placeholder_styleStyle::default()
focus_placeholder_styleStyle::default()
prefix_styleStyle::default()
focus_prefix_styleStyle::default()
suffix_styleStyle::default()
focus_suffix_styleStyle::default()
caret_shapeNone
caret_colorNone
selection_styleStyleSlot::Inherit
bordertrue
border_styleBorderStyle::Plain
paddingPadding { left: 1, right: 1, top: 0, bottom: 0, }
maskNone
disabledfalse
disabled_styleStyle::default()
read_onlyfalse
errorNone
error_styleStyle::default()
reserve_error_rowfalse
widthLength::Flex(1)
heightLength::Auto
on_changeNone
on_editNone
on_clickNone
on_keyNone
key_interceptorNone
focusabletrue
tab_stoptrue
on_focusNone
on_blurNone

TextArea

Source: src/widgets/text_area/mod.rs:451 (TextArea).

FieldDefault initializer
valueconstructor/local value (not a default)
cursor0
anchorNone
placeholderNone
styleStyle::default()
hover_styleStyleSlot::Inherit
focus_styleStyleSlot::Inherit
focus_content_styleStyle::default()
hover_border_styleNone
caret_shapeNone
caret_colorNone
selection_styleStyleSlot::Inherit
unfocused_selection_styleStyleSlot::Inherit
show_selection_when_unfocusedtrue
placeholder_styleStyle::default()
focus_placeholder_styleStyle::default()
line_numbersfalse
line_number_modeTextAreaLineNumberMode::default()
line_number_styleStyle::default()
min_line_number_width0
wraptrue
color_strategyNone
languageNone
themeNone
bordertrue
border_styleBorderStyle::Plain
paddingPadding::default()
widthLength::Flex(1)
heightLength::Flex(1)
scroll_offsetNone
scroll_to_lineNone
scroll_behaviorScrollBehavior::Instant
scroll_wheeltrue
scroll_wheel_multiplierNone
on_changeNone
on_editNone
on_editor_state_changeNone
on_scrollNone
on_scroll_toNone
on_clickNone
on_keyNone
key_interceptorNone
clear_bindingsNone
vim_motionsfalse
vim_keymapNone
vim_configTextAreaVimConfig::default()
on_vim_mode_changeNone
on_image_pasteNone
on_text_pasteNone
imagesVec::new()
on_images_changeNone
image_modeTextAreaImageMode::default()
image_placeholder"[Image]".into()
image_placeholder_styleStyle::default()
image_placeholder_focus_styleStyle::default()
image_placeholder_hover_styleStyle::default()
disabledfalse
disabled_styleStyle::default()
read_onlyfalse
focusabletrue
tab_stoptrue
on_focusNone
on_blurNone
newline_bindingNone
tab_width0
insert_tabfalse
tab_display_width8
scrollbartrue
scrollbar_configScrollbarConfig::default()
h_scrollbarfalse
h_scrollbar_variantScrollbarVariant::default()
h_scrollbar_thumbNone
pin_scrollbar_focus_stylefalse
gutter_linesNone
gutter_col_width0
gutter_gap0
gutterNone
peer_source_linesNone
split_wrap_syncNone
split_wrap_sideNone
diff_context_separator_clickNone
split_wrap_padding_gutter_styleNone
split_wrap_padding_styleNone
copy_excluded_bytesNone
clipboard_transformNone
selection_excluded_linesNone
multi_click_selecttrue
triple_click_modecrate::widgets::TripleClickSelectionMode::Line
sentinelsVec::new()
on_sentinels_changeNone
on_sentinel_eventNone
on_sentinel_clickNone
decorationsVec::new()
virtual_textsVec::new()

List

Source: src/widgets/list/mod.rs:1302 (List).

FieldDefault initializer
itemsArc::new([])
selectedSome(0)
scroll_keysScrollKeymap::default()
scroll_wheeltrue
styleStyle::default()
hover_styleStyleSlot::Inherit
item_hover_styleStyleSlot::Inherit
active_styleStyleSlot::Inherit
selection_styleStyleSlot::Inherit
unfocused_selection_styleStyleSlot::Inherit
active_symbolNone
active_symbol_positionListSymbolPosition::Left
active_symbol_styleNone
selection_symbolNone
selection_symbol_rightNone
selection_symbol_styleNone
unfocused_selection_symbol_styleNone
unselected_symbolNone
symbol_columntrue
gutter_gap0
gutter_for_non_selectablefalse
selection_full_widthfalse
item_horizontal_paddingPadding::default()
header_horizontal_paddingPadding::default()
borderfalse
border_styleBorderStyle::Plain
titleNone
title_styleStyle::default()
paddingPadding::default()
scrollbarfalse
scrollbar_configScrollbarConfig::default()
widthLength::Flex(1)
heightLength::Flex(1)
on_selectNone
on_item_clickNone
on_activateNone
on_clickNone
activate_on_clicktrue
on_scroll_toNone
on_keyNone
disabledfalse
disabled_styleStyle::default()
focusabletrue
tab_stoptrue
on_focusNone
on_blurNone
show_scroll_indicatorsfalse
scroll_indicator_styleStyle::default()
empty_textNone
empty_text_styleStyle::default()
force_scroll_to_selectedfalse

ListConfig

Source: src/widgets/list/mod.rs:78 (ListConfig).

FieldDefault initializer
bordertrue
border_styleBorderStyle::Plain
paddingPadding::default()
styleStyle::default()
selection_styleStyleSlot::Inherit
unfocused_selection_styleStyleSlot::Inherit
item_hover_styleNone
selection_full_widthfalse
selection_symbolNone
selection_symbol_rightNone
selection_symbol_styleNone
unfocused_selection_symbol_styleNone
symbol_columntrue
gutter_gap0
gutter_for_non_selectablefalse
item_horizontal_paddingPadding::default()
header_horizontal_paddingPadding::default()
empty_text_styleStyle::default()
scrollbarfalse
scrollbar_configScrollbarConfig::default()

ScrollView

Source: src/widgets/scroll_view/mod.rs:92 (ScrollView).

FieldDefault initializer
propsStackProps::default()
offsetNone
horizontal_reveal_rangeNone
scroll_requestNone
scroll_targetNone
scroll_behaviorScrollBehavior::default()
scroll_keysScrollKeymap::default()
scroll_wheeltrue
scroll_wheel_multiplierNone
h_scroll_wheel_multiplierNone
scroll_wheel_behaviorScrollWheelBehavior::default()
ambient_page_scrollfalse
focusablefalse
on_scrollNone
on_scroll_toNone
on_viewport_changeNone
scrollbarfalse
scrollbar_configScrollbarConfig::default()
show_scroll_indicatorsfalse
scroll_indicator_styleStyle::default()
clip_modeScrollClip::default()
estimated_child_height3
scroll_state_keyNone
axisScrollAxis::default()
h_scrollbarfalse
h_scrollbar_configScrollbarConfig::default()
childrenVec::new()

VStack/HStack shared StackProps

Source: src/widgets/containers/mod.rs:209 (StackProps).

Note: Applies to the shared props backing stack container defaults.

FieldDefault initializer
gap0
paddingPadding::default()
styleStyle::default()
alignAlign::Start
justifyJustify::Start
widthLength::Flex(1)
heightLength::Flex(1)
focus_sizingFocusSizing::None
focus_scopeFocusScope::None
borderfalse
border_styleBorderStyle::Plain
even_flexfalse

Frame/FrameNode

Source: src/widgets/frame/node.rs:279 (FrameNode).

Note: Frame is the public builder; these defaults come from its FrameNode backing type.

FieldDefault initializer
headerBox::new(crate::widgets::frame::BorderLabels::default())
footerBox::new(crate::widgets::frame::BorderLabels::default())
tab_titlesVec::new()
active_tab0
active_tab_styleStyle::default()
inactive_tab_styleStyle::default()
tab_variantTabVariant::default()
tab_edgeTabEdge::default()
on_tab_changeNone
paddingPadding::default()
decorationsVec::new()
bordertrue
border_styleBorderStyle::Plain
border_edgesBorderEdges::All
border_merge_modeBorderMergeMode::Exact
join_framefalse
styleStyle::default()
widthLength::Flex(1)
heightLength::Flex(1)
unfocused_heightNone
focus_min_heightNone
compactfalse
collapsibletrue
has_headerfalse
focusablefalse
focus_scopeFocusScope::None
child_alignAlign::Start
style_overridesNone

ProgressBar

Source: src/widgets/progress/mod.rs:239 (ProgressBar).

FieldDefault initializer
progressconstructor/local value (not a default)
progress_styleProgressStyle::Block
show_percentagefalse
percentage_positionProgressTextPosition::Right
labelNone
label_positionProgressTextPosition::Right
filled_styleStyle::default()
filled_gradientNone
empty_styleStyle::default()
label_styleStyle::default()
styleStyle::default()
paddingPadding::default()
widthLength::Flex(1)
heightLength::Auto
draggablefalse
stepNone
invertedfalse
on_changeNone
on_clickNone
focusablefalse
focus_styleStyleSlot::Inherit
hover_styleStyleSlot::Inherit
targetNone
target_styleStyle::default()
target_symbol'◆'
zonesVec::new()
block_empty_bg_dim0.85

Spinner

Source: src/widgets/spinner/mod.rs:184 (Spinner).

FieldDefault initializer
spinner_styleSpinnerStyle::Dots
speedSpinnerSpeed::Normal
frameNone
labelNone
gap1
styleStyle::default()
label_styleStyle::default()
widthLength::Auto
heightLength::Auto

Select

Source: src/widgets/select/mod.rs:56 (Select).

FieldDefault initializer
optionsVec::new()
selectedNone
placeholder"Select...".into()
expandedfalse
on_toggleNone
on_selectNone
on_changeNone
widthLength::Auto
disabledfalse
button_variantButtonVariant::Outlined
button_styleStyle::default()
button_hover_styleStyleSlot::Inherit
button_focus_styleStyleSlot::Inherit
button_disabled_styleStyle::default()
button_border_styleBorderStyle::Plain
button_hover_border_styleNone
button_focus_border_styleNone
button_open_suffixNone
button_closed_suffixNone
button_suffix_styleStyle::default()
list_titleNone
list_title_styleStyle::default()
list_configListConfig { border: true, border_style: BorderStyle::Plain, padding: Padding::default(), style: Style::default(), selection_style: StyleSlot::Inherit, unfocused_selection_style: StyleSlot::Inherit, selection_full_width: false, selection_symbol: Some("> ".into()), selection_symbol_right: None, selection_symbol_style: None, unfocused_selection_symbol_style: None, symbol_column: true, gutter_gap: 0, gutter_for_non_selectable: false, item_horizontal_padding: Padding::default(), header_horizontal_padding: Padding::default(), empty_text_style: Style::default(), item_hover_style: None, scrollbar: false, scrollbar_config: ScrollbarConfig::default(), }
list_widthNone
list_heightLength::Px(6)
match_button_widthfalse
list_empty_textNone
list_disabled_styleStyle::default()
focusabletrue
tab_stoptrue
on_focusNone
on_blurNone
on_keyNone

ComboBox

Source: src/widgets/combo_box.rs:71 (ComboBox).

FieldDefault initializer
itemsVec::new()
queryArc::from("")
placeholderSome("Type to filter...".into())
openfalse
active_indexNone
selectedNone
allow_custom_valuefalse
widthLength::Flex(1)
list_widthNone
list_heightLength::Px(8)
match_input_widthfalse
disabledfalse
placementPopoverPlacement::BelowStart
offsetPopoverOffset::ZERO
clamptrue
auto_fliptrue
input_styleStyle::default()
input_hover_styleStyleSlot::Inherit
input_focus_styleStyleSlot::Inherit
input_focus_content_styleStyle::default()
input_disabled_styleStyle::default()
input_hover_border_styleNone
input_placeholder_styleStyle::default()
input_focus_placeholder_styleStyle::default()
input_suffix_open" ▲".into()
input_suffix_closed" ▼".into()
input_suffix_styleStyle::default()
input_focus_suffix_styleStyle::default()
list_configListConfig { border: true, border_style: BorderStyle::Plain, padding: Padding::default(), style: Style::default(), selection_style: StyleSlot::Inherit, unfocused_selection_style: StyleSlot::Inherit, selection_full_width: false, selection_symbol: None, selection_symbol_right: None, selection_symbol_style: None, unfocused_selection_symbol_style: None, symbol_column: true, gutter_gap: 0, gutter_for_non_selectable: false, item_horizontal_padding: Padding::default(), header_horizontal_padding: Padding::default(), empty_text_style: Style::default(), item_hover_style: None, scrollbar: false, scrollbar_config: ScrollbarConfig::default(), }
empty_textSome("No matches".into())
on_query_changeNone
on_open_changeNone
on_active_index_changeNone
on_commitNone
focusabletrue
tab_stoptrue
on_focusNone
on_blurNone
on_keyNone

MultiSelect

Source: src/widgets/multi_select.rs:143 (MultiSelect).

FieldDefault initializer
itemsArc::from([])
active_index0
selected_indicesVec::new()
max_selectedNone
titleNone
title_styleStyle::default()
widthLength::Flex(1)
heightLength::Flex(1)
list_configListConfig { border: true, border_style: BorderStyle::Plain, padding: Padding::default(), style: Style::default(), selection_style: StyleSlot::Inherit, unfocused_selection_style: StyleSlot::Inherit, selection_full_width: false, selection_symbol: Some("[ ] ".into()), selection_symbol_right: None, selection_symbol_style: None, unfocused_selection_symbol_style: None, symbol_column: true, gutter_gap: 0, gutter_for_non_selectable: false, item_horizontal_padding: Padding::default(), header_horizontal_padding: Padding::default(), empty_text_style: Style::default(), item_hover_style: None, scrollbar: false, scrollbar_config: ScrollbarConfig::default(), }
active_symbolSome("[x] ".into())
active_symbol_styleNone
active_styleStyleSlot::Inherit
unselected_symbolSome("[ ] ".into())
description_styleStyle::default()
description_placementMultiSelectDescriptionPlacement::Inline
description_overflowMultiSelectDescriptionOverflow::Truncate
description_selectiontrue
disabledfalse
disabled_styleStyle::default()
empty_textNone
focusabletrue
tab_stoptrue
on_focusNone
on_blurNone
on_keyNone
on_active_index_changeNone
on_toggleNone
on_changeNone
on_commitNone

Source: src/widgets/modal.rs:37 (Modal).

FieldDefault initializer
titleNone
childSpacer::new().into()
on_closeNone
scopeOverlayScope::RootPortal
widthLength::Px(60)
heightLength::Auto
max_heightNone
reserve_heightNone
backdrop_styleStyle::default()
frame_styleStyle::default()
focus_styleStyleSlot::Inherit
auto_focustrue
bordertrue
border_styleBorderStyle::Plain
padding1.into()
title_styleStyle::default()
title_alignmentAlign::Start

Popover

Source: src/widgets/popover/mod.rs:95 (Popover).

FieldDefault initializer
triggerBox::new(crate::widgets::Spacer::new().into())
contentBox::new(crate::widgets::Spacer::new().into())
on_closeNone
openfalse
scopeOverlayScope::RootPortal
placementPopoverPlacement::default()
offsetPopoverOffset::ZERO
clamptrue
auto_fliptrue
min_trigger_widthtrue
fit_trigger_widthfalse
max_widthNone
anchorNone
capture_focustrue
auto_focustrue

HexArea

Source: src/widgets/hex_area/mod.rs:114 (HexArea).

FieldDefault initializer
bytesArc::from([])
cursor0
anchorNone
read_onlytrue
bytes_per_row16
show_asciitrue
show_offsetstrue
uppercase_hextrue
scroll_offsetNone
styleStyle::default()
hover_styleStyleSlot::Inherit
focus_styleStyleSlot::Inherit
focus_content_styleStyle::default()
selection_styleStyleSlot::Inherit
cursor_styleStyle::default()
pending_edit_styleStyle::default()
bordertrue
border_styleBorderStyle::Plain
paddingPadding::default()
widthLength::Flex(1)
heightLength::Flex(1)
disabledfalse
disabled_styleStyle::default()
focusabletrue
tab_stoptrue
on_focusNone
on_blurNone
on_cursor_changeNone
on_changeNone
on_editNone
on_scrollNone
on_keyNone

Source: src/widgets/hyperlink.rs:50 (Hyperlink).

FieldDefault initializer
labelconstructor/local value (not a default)
hrefNone
styleStyle::new().underline()
hover_styleStyleSlot::Extend(Style::new().underline())
focus_styleStyleSlot::Extend(Style::new().underline().bold())
disabled_styleStyle::default()
visited_styleNone
widthLength::Auto
heightLength::Auto
alignAlign::Start
paddingPadding::default()
focusablefalse
tab_stoptrue
on_focusNone
on_blurNone
disabledfalse
visitedfalse
on_activateNone
on_keyNone

PanView

Source: src/widgets/pan_view/mod.rs:238 (PanView).

FieldDefault initializer
widthLength::Flex(1)
heightLength::Flex(1)
offsetNone
on_panNone
clamptrue
center_contentfalse
free_pan_marginNone
drag_to_pantrue
wheel_to_pantrue
keymapPanKeymap::default()
key_step(4, 2)
focusablefalse
tab_stoptrue
on_focusNone
on_blurNone
pan_state_keyNone
childNone

Slider

Source: src/widgets/slider/mod.rs:93 (Slider).

FieldDefault initializer
valueconstructor/local value (not a default)
min0.0
max100.0
step1.0
on_changeNone
on_clickNone
on_keyNone
styleStyle::default()
filled_track_styleStyle::default()
filled_track_gradientNone
thumb_styleStyle::default()
thumb_gradientNone
labelNone
label_styleStyle::default()
show_valuetrue
widthLength::Flex(1)
heightLength::Px(1)
paddingPadding::default()
disabledfalse
disabled_styleStyle::default()
focusabletrue
tab_stoptrue
on_focusNone
on_blurNone
hover_styleStyleSlot::Inherit
focus_styleStyleSlot::Inherit
focus_thumb_styleStyleSlot::Inherit
hover_thumb_styleStyleSlot::Inherit
thumb_symbol"●".to_string()
track_symbol"─".to_string()
filled_track_symbol"━".to_string()
hover_thumb_symbolNone

Table

Source: src/widgets/table/mod.rs:356 (Table).

FieldDefault initializer
rowsArc::new([])
headerNone
widthsVec::new()
column_stylesVec::new()
row_stylesVec::new()
selectedSome(0)
column_spacing1
row_gap0
styleStyle::default()
hover_styleStyleSlot::Inherit
item_hover_styleStyleSlot::Inherit
alternating_row_styleNone
row_style_full_widthfalse
selection_styleStyleSlot::Inherit
selection_symbolNone
selection_symbol_styleNone
unselected_symbolNone
borderfalse
border_styleBorderStyle::Plain
paddingPadding::default()
scrollbarfalse
scrollbar_configScrollbarConfig::default()
scroll_keysScrollKeymap::default()
scroll_wheeltrue
widthLength::Flex(1)
heightLength::Flex(1)
on_selectNone
on_activateNone
on_clickNone
on_scroll_toNone
on_keyNone
disabledfalse
disabled_styleStyle::default()
focusabletrue
tab_stoptrue
on_focusNone
on_blurNone
show_scroll_indicatorsfalse
scroll_indicator_styleStyle::default()
inspectorfalse
inspector_key_styleStyle::default()
inspector_value_styleStyle::default()
inspector_section_styleStyle::default()
inspector_separator_styleStyle::default()
inspector_indent_size2
inspector_collapsed_symbolArc::from("▸")
inspector_expanded_symbolArc::from("▾")
inspector_separator_char'─'

Tabs

Source: src/widgets/tabs/mod.rs:125 (Tabs).

FieldDefault initializer
tabsArc::new([])
active0
styleStyle::default()
focus_styleStyleSlot::Inherit
hover_styleStyleSlot::Inherit
tab_hover_styleStyleSlot::Inherit
active_styleStyleSlot::Inherit
divider'│'
capsNone
overflowTabsOverflow::Clip
borderfalse
border_styleBorderStyle::Plain
paddingPadding::default()
widthLength::Flex(1)
heightLength::Auto
on_changeNone
on_clickNone
on_keyNone
disabledfalse
disabled_styleStyle::default()
focusablefalse
tab_stoptrue
on_focusNone
on_blurNone

DraggableTabBar

Source: src/widgets/draggable_tab_bar/mod.rs:502 (DraggableTabBar).

FieldDefault initializer
tabsArc::new([])
active0
styleStyle::default()
focus_styleStyleSlot::Inherit
hover_styleStyleSlot::Inherit
tab_hover_styleStyleSlot::Inherit
active_styleStyleSlot::Inherit
close_styleStyle::default()
close_hover_styleStyle::default()
divider'│'
borderfalse
border_styleBorderStyle::Plain
paddingPadding::default()
widthLength::Flex(1)
heightLength::Auto
variantDraggableTabBarVariant::Bordered
accent_symbol'▏'
active_accent_symbol'▎'
accent_styleStyle::default()
active_accent_styleStyle::default()
close_symbolArc::from("")
show_close_buttonstrue
close_on_hover_onlyfalse
tab_max_widthNone
overflowDraggableTabBarOverflow::Scroll
scroll_wheeltrue
show_overflow_controlstrue
overflow_styleStyle::default()
overflow_hover_styleStyle::default()
overflow_labelsOverflowLabels::default()
empty_textNone
empty_text_styleStyle::default()
scroll_offset0
show_file_iconsfalse
file_icon_styleFileIconStyle::NerdFont
file_icon_paletteFileIconPalette::default()
file_icon_overridesHashMap::new()
bar_idNone
drag_groupNone
draggabletrue
drag_previewtrue
reorder_modeDragReorderMode::Live
drag_threshold1
on_changeNone
on_actionNone
on_closeNone
on_reorderNone
on_transferNone
on_clickNone
on_keyNone
disabledfalse
disabled_styleStyle::default()
focusablefalse
tab_stoptrue
on_focusNone
on_blurNone

DocumentView

Source: src/widgets/document_view/mod.rs:329 (DocumentView).

FieldDefault initializer
value"".into()
layout_content_fingerprintCell::new(None)
content_typeNone
formatterNone
widthLength::Flex(1)
heightLength::Flex(1)
wraptrue
line_numbersfalse
min_line_number_width0
line_number_separatortrue
line_number_content_gap0
line_number_modeDocumentLineNumberMode::default()
line_number_styleStyle::default()
highlight_full_widthfalse
bordertrue
border_styleBorderStyle::Plain
paddingPadding::default()
table_wrapfalse
table_width_modeDocumentTableWidthMode::default()
table_outer_frametrue
table_column_separatorstrue
table_row_separatorsTableRowSeparators::default()
table_cell_padding0
table_border_variantBorderStyle::Plain
styleStyle::default()
hover_styleStyleSlot::Inherit
focus_styleStyleSlot::Inherit
focus_content_styleStyle::default()
selection_styleStyleSlot::Inherit
doc_stylesDocumentStyles::default()
hover_border_styleNone
scroll_offsetNone
scroll_to_source_lineNone
scroll_behaviorScrollBehavior::default()
scrollbartrue
scrollbar_configScrollbarConfig::default()
h_scrollbarfalse
h_scrollbar_variantScrollbarVariant::default()
h_scrollbar_thumbNone
pin_scrollbar_focus_stylefalse
scroll_wheeltrue
scroll_wheel_multiplierNone
focusabletrue
tab_stoptrue
on_focusNone
on_blurNone
on_scrollNone
on_clickNone
on_selectNone
on_keyNone
shared_selection_idNone
code_syntax_strategyNone
gutter_linesNone
gutter_col_width0
gutter_gap0
copy_excluded_source_linesNone
peer_source_linesNone
peer_source_fingerprintCell::new(None)
measure_base_key_cacheCell::new(None)
split_wrap_syncNone
split_wrap_sideNone
diff_split_paneNone
diff_context_separator_clickNone
split_wrap_padding_gutter_styleNone
split_wrap_padding_styleNone
multi_click_selecttrue
triple_click_modecrate::widgets::TripleClickSelectionMode::Line
passthrough_clicksfalse
measure_cacheRefCell::new([None, None])
measure_format_cacheRefCell::new(None)

FileTree

Source: src/widgets/file_tree/mod.rs:346 (FileTree).

FieldDefault initializer
rootconstructor/local value (not a default)
entry_sourceFileTreeEntrySource::default()
entry_refresh_token0
show_hiddenfalse
max_entries_per_dir2_000
show_iconstrue
icon_styleFileIconStyle::default()
icon_paletteFileIconPalette::default()
icon_overridesHashMap::new()
show_arrowstrue
indent_stylecrate::widgets::IndentStyle::None
indent_guide_styleStyle::default()
indent_guide_start_depth1
indent_width2
directory_icon"[D]".into()
opened_directory_icon"[D]".into()
file_icon"[F]".into()
symlink_icon"[L]".into()
other_icon"[?]".into()
directory_label_styleStyle::default()
file_label_styleStyle::default()
loading_label"loading...".into()
error_prefix"error:".into()
widthLength::Flex(1)
heightLength::Flex(1)
styleStyle::default()
hover_styleStyleSlot::Inherit
item_hover_styleStyleSlot::Inherit
selection_styleStyleSlot::Inherit
unfocused_selection_styleStyleSlot::Inherit
selectedNone
clear_selectionfalse
selected_pathNone
reveal_pathNone
select_pathNone
force_scroll_to_selectedfalse
expanded_pathsNone
initial_expanded_pathsHashSet::new()
selection_symbolNone
selection_symbol_styleNone
unfocused_selection_symbol_styleNone
scrollbartrue
scrollbar_configScrollbarConfig::default()
scroll_keysScrollKeymap::default()
scroll_wheeltrue
show_scroll_indicatorsfalse
scroll_indicator_styleStyle::default()
empty_textSome("Directory is empty".into())
empty_text_styleStyle::default()
empty_text_paddingPadding::default()
explorerfalse
tree_focus_keyTREE_INPUT_KEY.into()
explorer_focus_keyEXPLORER_INPUT_KEY.into()
explorer_placeholder"Find files...".into()
explorer_prefix" ".into()
explorer_input_borderfalse
explorer_input_border_styleBorderStyle::Plain
explorer_input_paddingPadding { left: 1, right: 0, top: 0, bottom: 0, }
explorer_input_styleStyle::default()
explorer_input_focus_styleStyleSlot::Inherit
explorer_input_focus_content_styleStyle::default()
explorer_placeholder_styleStyle::default()
explorer_focus_placeholder_styleStyle::default()
explorer_match_styleStyle::default()
explorer_dividertrue
explorer_divider_join_frametrue
explorer_divider_char'─'
explorer_divider_styleStyle::default()
on_explorer_focusNone
on_explorer_blurNone
on_explorer_escapeNone
activate_on_clicktrue
focusabletrue
tab_stoptrue
on_focusNone
on_blurNone
keymapTreeKeymap::default()
git_statustrue
highlight_changed_labelsfalse
change_sourceFileTreeChangeSource::default()
change_viewFileTreeChangeView::default()
git_diff_statsfalse
git_icon_styleGitIconStyle::NerdFont
git_status_cacheNone
git_refresh_nonce0
git_marker_modified"M".into()
git_marker_added"A".into()
git_marker_deleted"D".into()
git_marker_renamed"R".into()
git_marker_untracked"?".into()
git_marker_conflicted"!".into()
git_style_modifieddefault_git_style_modified()
git_style_addeddefault_git_style_added()
git_style_deleteddefault_git_style_deleted()
git_style_renameddefault_git_style_renamed()
git_style_untrackeddefault_git_style_untracked()
git_style_conflicteddefault_git_style_conflicted()
change_suffix_styleStyle::default()
change_suffix_priorityFileTreeSuffixPriority::default()
path_stylesHashMap::new()
on_selectNone
on_activateNone
on_toggleNone
on_entry_requestNone

SearchPalette

Source: src/widgets/search_palette/mod.rs:773 (SearchPalette).

FieldDefault initializer
itemsArc::from([])
entriesArc::from([])
sync_match_limitDEFAULT_SYNC_MATCH_LIMIT
sync_selectionfalse
initial_query"".into()
initial_selected_item_indexNone
queryNone
placeholder"Search...".into()
widthLength::Flex(1)
heightLength::Flex(1)
max_widthNone
max_heightNone
input_prefixNone
input_suffixNone
input_borderfalse
input_dividertrue
input_divider_styleStyle::default()
input_divider_join_frametrue
input_caret_shapeNone
input_caret_colorNone
input_border_styleBorderStyle::Plain
input_paddingPadding { left: 1, right: 1, top: 0, bottom: 0, }
input_styleStyle::default()
input_hover_styleStyleSlot::Inherit
input_focus_styleStyleSlot::Inherit
input_focus_content_styleStyle::default()
input_placeholder_styleStyle::default()
input_focus_placeholder_styleStyle::default()
input_prefix_styleStyle::default()
input_focus_prefix_styleStyle::default()
input_suffix_styleStyle::default()
input_focus_suffix_styleStyle::default()
list_configListConfig { border: false, border_style: BorderStyle::Plain, padding: Padding::default(), style: Style::default(), selection_style: StyleSlot::Inherit, unfocused_selection_style: StyleSlot::Inherit, selection_full_width: false, selection_symbol: Some("> ".into()), selection_symbol_right: None, selection_symbol_style: None, unfocused_selection_symbol_style: None, symbol_column: true, gutter_gap: 0, gutter_for_non_selectable: false, item_horizontal_padding: Padding::default(), header_horizontal_padding: Padding::default(), empty_text_style: Style::default(), item_hover_style: None, scrollbar: false, scrollbar_config: ScrollbarConfig::default(), }
list_symbol_columnNone
list_hover_styleStyleSlot::Inherit
list_active_styleStyleSlot::Inherit
list_active_symbolNone
list_active_symbol_styleNone
list_unselected_symbolNone
list_focusabletrue
input_keyNone
tab_stoptrue
on_focusNone
on_blurNone
empty_textSome("No matches".into())
item_styleStyle::default()
active_item_styleNone
header_styleStyle::default()
description_styleStyle::default()
active_description_styleNone
focused_description_styleNone
description_placementDescriptionPlacement::Inline
description_separatorNone
description_selectiontrue
description_overflowDescriptionOverflow::Truncate
primary_truncate_description_firsttrue
match_styleStyle::default()
show_scoresfalse
score_gradientNone
score_rangeNone
preserve_groupsfalse
preserve_item_orderfalse
navigation_wraptrue
match_modeSearchMatchMode::default()
case_matchingCaseMatching::Smart
normalizationNormalization::Smart
input_key_interceptorNone
on_query_changeNone
on_selectNone
on_activateNone
render_itemNone
item_statusNone
item_gutterNone

Tree

Source: src/widgets/tree/mod.rs:27 (Tree).

FieldDefault initializer
rootconstructor/local value (not a default)
selectedNone
clear_selectionfalse
force_scroll_to_selectedfalse
gap0
icon_gap1
show_iconstrue
expanded_icon"▼".into()
collapsed_icon"▶".into()
leaf_iconNone
icon_styleStyle::default()
widthLength::Flex(1)
heightLength::Flex(1)
styleStyle::default()
hover_styleStyleSlot::Inherit
item_hover_styleStyleSlot::Inherit
selection_styleStyleSlot::Inherit
unfocused_selection_styleStyleSlot::Inherit
selection_symbolNone
selection_symbol_styleNone
unfocused_selection_symbol_styleNone
scrollbarfalse
scrollbar_configScrollbarConfig::default()
scroll_keysScrollKeymap::default()
scroll_wheeltrue
show_scroll_indicatorsfalse
scroll_indicator_styleStyle::default()
empty_textNone
empty_text_styleStyle::default()
activate_on_clicktrue
focusabletrue
tab_stoptrue
on_focusNone
on_blurNone
on_selectNone
on_activateNone
on_toggleNone
keymapTreeKeymap::default()
focus_policyNone
focus_keyNone
indent_styleIndentStyle::None
indent_guide_styleStyle::default()
indent_gradientNone
solid_indent_connector_gapfalse
selection_full_widthfalse
unselected_symbolNone
key_interceptorNone
indent_guide_start_depth1

Terminal

Source: src/widgets/terminal/mod.rs:86 (Terminal).

FieldDefault initializer
contentArc::from("")
cursor_row0
cursor_col0
show_cursortrue
cursor_shapeCaretShape::Block
cursor_blinkingtrue
caret_colorNone
color_linesNone
color_cache_key0
screenNone
decorationsArc::from([] as [TerminalDecoration; 0])
scrollback_offset0
total_scrollback_rows0
mouse_modeMouseModeState::default()
key_modesTerminalKeyModes::default()
imagesArc::from([])
paste_shortcut_behaviorTerminalPasteShortcutBehavior::Forward
selectionNone
selection_controlledfalse
selection_styleStyleSlot::Inherit
on_selectionNone
on_resizeNone
on_mouse_forwardNone
scroll_wheeltrue
on_scrollNone
on_scroll_toNone
styleStyle::default()
hover_styleStyleSlot::Inherit
focus_styleStyleSlot::Inherit
focus_content_styleStyle::default()
borderfalse
border_styleBorderStyle::default()
paddingPadding::default()
scrollbartrue
scrollbar_variantScrollbarVariant::default()
scrollbar_gap0
scrollbar_thumbNone
scrollbar_thumb_styleNone
scrollbar_thumb_focus_styleNone
scrollbar_track_styleNone
h_scrollbartrue
h_scrollbar_variantScrollbarVariant::default()
widthLength::Flex(1)
heightLength::Flex(1)
focusabletrue
tab_stoptrue
on_focusNone
on_blurNone
on_keyNone
on_inputNone

DiffView

Source: src/widgets/diff_view/mod.rs:285 (DiffView).

Note: DiffView::new() delegates to new_internal("", "", None); argument-backed content fields are shown as constructor/local values.

FieldDefault initializer
beforeconstructor/local value (not a default)
afterconstructor/local value (not a default)
patchNone
modeDiffViewMode::Split
backendDiffViewBackend::TextArea
backend_explicitfalse
width_overrideNone
height_overrideNone
editablefalse
wrap_overrideNone
line_numbers_overrideNone
min_line_number_width_overrideNone
gutter_inset_overrideNone
scrollbar_overrideNone
h_scrollbar_overrideNone
focusable_overrideNone
outer_borderfalse
pane_bordertrue
highlight_full_widthfalse
single_scrollbarfalse
join_framefalse
vertical_separatorfalse
vertical_separator_char'│'
vertical_separator_styleStyle::default()
scroll_offsetNone
scroll_to_hunkNone
on_scrollNone
on_context_separator_clickNone
context_separator_hover_styleNone
text_areaconstructor/local value (not a default)
document_viewconstructor/local value (not a default)
diff_styleDiffPalette::default()
prefixesDiffPrefixes::default()
show_prefixestrue
word_difftrue
trim_common_indenttrue
shared_selection_idNone
languageNone
themeNone
base_color_strategyNone
diff_dataconstructor/local value (not a default)
context_linesNone
show_context_separatortrue
context_separator_textdefault_context_separator_text()
context_separator_min_linesdefault_context_separator_min_lines()
context_expand_linesdefault_context_expand_lines()
expanded_contextsVec::new()
pane_cacheRefCell::new(Vec::new())

ManagedTerminal

Source: src/widgets/managed_terminal.rs:100 (ManagedTerminalProps).

Note: ManagedTerminal is a component; defaults come from ManagedTerminalProps.

FieldDefault initializer
configTerminalPtyConfig::default()
scrollback2000
initial_cols120
initial_rows24
on_statusNone
auto_starttrue
placeholderSome(Arc::from("Starting terminal..."))
forward_mousetrue
scroll_wheeltrue
resize_debounceDuration::from_millis(16)
stylecrate::style::Style::default()
focusabletrue
tab_stoptrue
on_focusNone
on_blurNone
widthLength::Flex(1)
heightLength::Flex(1)

CommandPalette

Source: src/widgets/command_palette.rs:325 (CommandPalette).

FieldDefault initializer
propsCommandPaletteProps { on_close: None, show_disabled: false, width: Length::Px(80), height: Length::Px(20), backdrop_style: Style::default(), frame_style: Style::default(), border: true, border_style: BorderStyle::Plain, padding: 0.into(), title: None, title_style: Style::default(), title_alignment: Align::Start, scope: OverlayScope::RootPortal, }

ContextMenu

Source: src/widgets/context_menu.rs:42 (ContextMenu).

FieldDefault initializer
triggerconstructor/local value (not a default)
itemsVec::new()
openfalse
on_selectNone
on_closeNone
placementPopoverPlacement::BelowStart
offsetPopoverOffset::ZERO
clamptrue
auto_fliptrue
anchorNone
widthLength::Px(20)
heightLength::Auto
bordertrue
border_styleBorderStyle::Plain
paddingPadding::default()
styleStyle::default()
selection_styleStyleSlot::Inherit
unfocused_selection_styleStyleSlot::Inherit
item_hover_styleNone
selection_symbolSome("> ".into())
selection_symbol_styleNone
unfocused_selection_symbol_styleNone
scrollbarfalse
scrollbar_configScrollbarConfig::default()

MPL-2.0