Trame

The common settings of every program

Each setting of the toolkit that changes how a program looks or answers is a preference the toolkit declares, beside the code that uses it, with today's default. Every program inherits them: prefs_page.standard_register registers them, the settings page (prefs_page.md) shows them grouped, and prefs_page.standard_watch applies them. Nothing is blocked: a technical setting is advanced (shown under the page's folded Advanced part, or with no fold on a page of technical settings alone, found by a search), never hidden. Each program keeps its own values, in its own file (config.md); they share the definitions, not the values.

The columns: the name (what the file holds), the set that registers it (Standard_Set), its default, its range or choices, and what applies it. Each number's unit is its value kind's (config.md): the times in ms are Durations, the lengths in px or em Lengths, the multipliers (×) Factors, the speeds Rates; the families are Font_Family, the theme a Theme, the emoji font a Path, the updates' address an Address. "Program" in the Default column is the program's own (Standard_Defaults). "Start": read at the next start (Def.restart). "Advanced": under the folded part. tests/prefs_page checks that this page names every standard preference.

General (Session)

NameDefaultRange, choicesApplied by
general.menuProgram (true)desktop.apply
general.autostartProgram (false)desktop.apply
general.messagessystemsystem, window, offannounce_mode, ui.Announcer
general.languagesystemsystem, en, frlanguage_start: at the start, then at once at each change
general.file_dialogtoolkittoolkit, systemstandard_apply: ui.set_file_dialogs (docs/file-browser.md)

Appearance (Appearance)

NameDefaultRange, choicesApplied by
appearance.themeProgramthe program's themesappearance_read, ui.theme_show
appearance.modeProgram (system)system, dark, lightui.theme_show
appearance.finishProgram (machined)machined, edged, flat, gradientui.theme_show
appearance.glowProgram (1)0 to 1, shown 0 to 100 % (a Fraction)ui.theme_show (Theme_Choice.glow)
appearance.font_sizeProgram (14 px)10 to 24 pxthe program's base style
appearance.zoom10.5 to 3ui.set_zoom
appearance.density10.6 to 1.2ui.set_density
appearance.rounding10 to 2ui.set_rounding
appearance.corner_smoothing10 to 1render.set_corner_smoothing
appearance.animationssystemsystem, on, offui.set_animations
appearance.caret.motionglidenone, glide, spring, trailui.Feel.caret_motion
appearance.caret.duration900 to 400 msui.Feel.caret_ms
appearance.diagram_themeprogramprogram, light, dark, neutral, forestui.set_diagram_theme

Window (Appearance)

NameDefaultRange, choicesApplied by
window.system_titleProgram (false)Standard_Targets.window: platform.set_integrated_title at once (the program's bar where the system has none); without it, the program
window.toast_positionbottom_rightthe eight ui.Toast_Positionui.set_toast_position
window.placement"" (hidden)platform.placement_textthe program: placement_restore before its window shows, placement_track at each frame, placement_keep at its close

Rows of tables (Rows)

A program with tables asks for this set; it is not in STANDARD_ALL. Its defaults come from Standard_Defaults.values.

NameDefaultRange, choicesApplied by
appearance.rows.zebrafalsethe program, to each table: rows_look(prefs).zebra (ui.List_State.zebra, or its own rows)
appearance.rows.rulesfalsethe program, to each table: rows_look(prefs).rules (ui.List_State.rules)

Text and fonts (Text)

NameDefaultRange, choicesApplied by
appearance.text.ui_font"" (the program's; the page names it: "Roboto (default)")a family (the page's font picker)ui.use_text_family(.Interface), live (loaded on a chore)
appearance.text.mono_font"" (the program's, else the embedded Paper Mono)a family (the monospace ones first)ui.use_text_family(.Mono), live: ui.mono_font()
appearance.text.mono_features"" (the family's defaults: font.default_features)OpenType tags (cv01,zero,-ss01; set by the Features button on mono_font's line)ui.use_text_features(.Mono), live: ui.mono_font()
appearance.text.prose_font""a familyui.use_text_family(.Prose), live: ui.prose_font(), a markdown view's text
appearance.text.emoji_font""a font filethe program, at the start (font.set_emoji_source)
appearance.text.system_fallbacktruefont.Settings.system_fallback
appearance.text.color_emojitruefont.Settings.color_glyphs
appearance.text.subpixelautoauto (the system's: font.system_subpixel_text, read once by standard_register), off, rgb, bgrfont.Settings.subpixel_text
appearance.text.gamma1.20.25 to 4render.Text_Rendering.gamma
appearance.text.contrast00 to 1render.Text_Rendering.contrast
appearance.text.coverage_exponent0.80.1 to 4render.Text_Rendering.coverage_exponent
appearance.text.curvenonenone, srgb, powerAdvanced; render.Text_Rendering.curve
appearance.text.blend_spacelinearlinear, srgbAdvanced; render.set_blend_space
appearance.text.subpixel_steps41 to 4Advanced; font.Settings.subpixel_steps
appearance.text.grid_fitautoauto (as the font asks), enabled, disabledAdvanced; font.Settings.grid_fit
appearance.text.rendereratlas (Windows only)atlas, slugAdvanced; font.Settings.text_renderer
appearance.text.renderingnatural_symmetric (Windows only)natural_symmetric, natural, gdi_classic, aliasedAdvanced; font.Settings.rendering
appearance.text.slug_tolerance0.244 ‰ em0.015 to 15.6 ‰ emAdvanced; font.Settings.slug_tolerance
appearance.text.color_asyncfalseAdvanced; font.Settings.color_async
appearance.text.atlas_pages41 to 64Advanced; font.Settings.max_gray_pages
appearance.text.color_pages21 to 64Advanced; font.Settings.max_color_pages
appearance.text.page_size2048 px256 to 8192 pxAdvanced; start (font.Settings.page_size)
appearance.text.word_cache327680 to 1048576Advanced; font.Settings.word_cache
appearance.text.slug_pages1281 to 2048Advanced; font.Settings.slug_pages

Scrolling (Scrolling)

NameDefaultRange, choicesApplied by
scrolling.smoothonfollow (as appearance.animations), on, offui.set_smooth_scroll
scrolling.duration180 ms0 to 1000 msui.Scroll_Settings.duration_ms
scrolling.wheel_lines31 to 20ui.Feel.wheel_lines
scrolling.scrollbar_sizethinthin (9 px), wide (17 px)ui.set_scrollbar_size (scroll-bar.md)
scrolling.scrollbar_autohidefalseui.set_scrollbar_autohide
scrolling.scrollbar_overlayfalseui.set_scrollbar_overlay
scrolling.curveimpulseimpulse, ease_out, exponentialAdvanced; ui.Scroll_Settings.curve
scrolling.impulse51 to 20Advanced; ui.Scroll_Settings.impulse
scrolling.fling_stop_speed20 px/s0 to 1000 px/sAdvanced; ui.Feel.fling_stop_speed
scrolling.autoscroll.enabledtrueui.set_autoscroll_enabled
scrolling.autoscroll.toggletrueui.Autoscroll_Settings.toggle
scrolling.autoscroll.dead_zone12 px0 to 100 pxAdvanced; ui.Autoscroll_Settings.dead_zone
scrolling.autoscroll.max_speed15000 px/s100 to 50000 px/sAdvanced; ui.Autoscroll_Settings.max_speed
scrolling.autoscroll.full_dist300 px10 to 2000 pxAdvanced; ui.Autoscroll_Settings.full_dist
scrolling.autoscroll.doubling60 px1 to 500 pxAdvanced; ui.Autoscroll_Settings.doubling
scrolling.autoscroll.tap250 ms0 to 2000 msAdvanced; ui.Autoscroll_Settings.tap_ms
scrolling.autoscroll.tap_slop4 px0 to 50 pxAdvanced; ui.Autoscroll_Settings.tap_slop

Input (Input)

NameDefaultRange, choicesApplied by
input.key_repeat_delay600 ms0 to 2000 msui.Feel.key_repeat_delay_ms
input.key_repeat_rate25 /s0 to 100 /sui.Feel.key_repeat_rate
input.button_repeat_delay420 ms0 to 2000 msui.Feel.repeat_delay_ms
input.button_repeat_interval55 ms1 to 1000 msui.Feel.repeat_interval_ms
input.undo_steps2001 to 10000ui.Feel.undo_steps
input.undo_merge1000 ms0 to 10000 msui.Feel.undo_merge_ms
input.typeahead900 ms0 to 5000 msui.Feel.typeahead_ms
input.zoom_step1.11.01 to 2ui.Feel.zoom_step
input.step_shift101 to 1000Advanced; ui.Feel.step_shift
input.step_ctrl1001 to 10000Advanced; ui.Feel.step_ctrl
input.step_alt0.10.001 to 1Advanced; ui.Feel.step_alt
input.step_page101 to 100Advanced; ui.Feel.step_page

Delays and menus (Timing)

NameDefaultRange, choicesApplied by
timing.tooltip_delay500 ms0 to 5000 msui.Feel.tooltip_delay_ms
timing.menu_hover280 ms0 to 2000 msui.Feel.menu_hover_ms
timing.menu_item_height1.9 em1.2 to 4 emui.Feel.menu_item_em
timing.palette_fade160 ms0 to 2000 msui.Feel.palette_fade_ms

Updates (Update)

NameDefaultRange, choicesApplied by
update.autoProgram (true)the program's update.Updater; the page shows its state under it
update.channelProgram (the first channel)the program's channels (Standard_Defaults.update_channels); not registered without themat once: update.set_channel on the program's update.Updater
update.base_urlProgram ("")an addressAdvanced; start

Rendering (Rendering, all advanced)

NameDefaultRange, choicesApplied by
rendering.presentvsyncvsync, tearingrender.set_present_mode
rendering.max_frame_latency11 to 3render.set_max_frame_latency
rendering.frame_ratescreenscreen, 30, 60, 120, 240, uncappedStandard_Targets.pacer (host.Host.pacer): choices.target_hz, cadence.uncapped
rendering.partial_redrawtruehost.Host.partial_redraw, else ui.set_partial_redraw
rendering.blur_sigma_limit8 px2 to 40 pxrender.set_blur_sigma_limit
rendering.filter_precisionhalfhalf, unorm8render.set_filter_precision

Keys (Keys, all advanced)

The person's keys and aliases of commands, set from the command palette (Ctrl+Enter, Alt+Enter: commands.md, "The person's keys and aliases"). The reset of a field removes them all.

NameDefaultRange, choicesApplied by
keys.custom""id=keys;…, the keys in English, ", " between the two of a sequence (tab_new=Ctrl+M, T;terminal=F7)Standard_Targets.keymap: ui.keymap_read; written back by standard_watch at each change through the palette
keys.aliases""alias=id;… (nf=new_folder)the same

The page's own

prefs_page.sidebar_width (hidden, 14 ems, 9 to 30): the width of the settings' sidebar, which the user sets with its handle. No page shows it, and the JSON, TOML and INI exports leave it out.

Edit this page on GitHub