Docs
Platform and system
The common settings of every program
# 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)
Name Default Range, choices Applied 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)
Name Default Range, choices Applied by
appearance.themeProgram the program's themes appearance_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 px the program's base style
appearance.zoom1 0.5 to 3 ui.set_zoom
appearance.density1 0.6 to 1.2 ui.set_density
appearance.rounding1 0 to 2 ui.set_rounding
appearance.corner_smoothing1 0 to 1 render.set_corner_smoothing
appearance.animationssystemsystem, on, offui.set_animations
appearance.caret.motionglidenone, glide, spring, trailui.Feel.caret_motion
appearance.caret.duration900 to 400 ms ui.Feel.caret_ms
appearance.diagram_themeprogramprogram, light, dark, neutral, forestui.set_diagram_theme
# Window (Appearance)
Name Default Range, choices Applied 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_Position ui.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.
Name Default Range, choices Applied 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)
Name Default Range, choices Applied 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 family ui.use_text_family(.Prose), live: ui.prose_font(), a markdown view's text
appearance.text.emoji_font"" a font file the 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.2 0.25 to 4 render.Text_Rendering.gamma
appearance.text.contrast0 0 to 1 render.Text_Rendering.contrast
appearance.text.coverage_exponent0.8 0.1 to 4 render.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_steps4 1 to 4 Advanced; 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 ‰ em 0.015 to 15.6 ‰ em Advanced; font.Settings.slug_tolerance
appearance.text.color_asyncfalseAdvanced; font.Settings.color_async
appearance.text.atlas_pages4 1 to 64 Advanced; font.Settings.max_gray_pages
appearance.text.color_pages2 1 to 64 Advanced; font.Settings.max_color_pages
appearance.text.page_size2048 px 256 to 8192 px Advanced; start (font.Settings.page_size)
appearance.text.word_cache32768 0 to 1048576 Advanced; font.Settings.word_cache
appearance.text.slug_pages128 1 to 2048 Advanced; font.Settings.slug_pages
Name Default Range, choices Applied by
scrolling.smoothonfollow (as appearance.animations), on, offui.set_smooth_scroll
scrolling.duration180 ms 0 to 1000 ms ui.Scroll_Settings.duration_ms
scrolling.wheel_lines3 1 to 20 ui.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.impulse5 1 to 20 Advanced; ui.Scroll_Settings.impulse
scrolling.fling_stop_speed20 px/s 0 to 1000 px/s Advanced; ui.Feel.fling_stop_speed
scrolling.autoscroll.enabledtrueui.set_autoscroll_enabled
scrolling.autoscroll.toggletrueui.Autoscroll_Settings.toggle
scrolling.autoscroll.dead_zone12 px 0 to 100 px Advanced; ui.Autoscroll_Settings.dead_zone
scrolling.autoscroll.max_speed15000 px/s 100 to 50000 px/s Advanced; ui.Autoscroll_Settings.max_speed
scrolling.autoscroll.full_dist300 px 10 to 2000 px Advanced; ui.Autoscroll_Settings.full_dist
scrolling.autoscroll.doubling60 px 1 to 500 px Advanced; ui.Autoscroll_Settings.doubling
scrolling.autoscroll.tap250 ms 0 to 2000 ms Advanced; ui.Autoscroll_Settings.tap_ms
scrolling.autoscroll.tap_slop4 px 0 to 50 px Advanced; ui.Autoscroll_Settings.tap_slop
Name Default Range, choices Applied by
input.key_repeat_delay600 ms 0 to 2000 ms ui.Feel.key_repeat_delay_ms
input.key_repeat_rate25 /s 0 to 100 /s ui.Feel.key_repeat_rate
input.button_repeat_delay420 ms 0 to 2000 ms ui.Feel.repeat_delay_ms
input.button_repeat_interval55 ms 1 to 1000 ms ui.Feel.repeat_interval_ms
input.undo_steps200 1 to 10000 ui.Feel.undo_steps
input.undo_merge1000 ms 0 to 10000 ms ui.Feel.undo_merge_ms
input.typeahead900 ms 0 to 5000 ms ui.Feel.typeahead_ms
input.zoom_step1.1 1.01 to 2 ui.Feel.zoom_step
input.step_shift10 1 to 1000 Advanced; ui.Feel.step_shift
input.step_ctrl100 1 to 10000 Advanced; ui.Feel.step_ctrl
input.step_alt0.1 0.001 to 1 Advanced; ui.Feel.step_alt
input.step_page10 1 to 100 Advanced; ui.Feel.step_page
# Delays and menus (Timing)
Name Default Range, choices Applied by
timing.tooltip_delay500 ms 0 to 5000 ms ui.Feel.tooltip_delay_ms
timing.menu_hover280 ms 0 to 2000 ms ui.Feel.menu_hover_ms
timing.menu_item_height1.9 em 1.2 to 4 em ui.Feel.menu_item_em
timing.palette_fade160 ms 0 to 2000 ms ui.Feel.palette_fade_ms
# Updates (Update)
Name Default Range, choices Applied 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 them at once: update.set_channel on the program's update.Updater
update.base_urlProgram ("") an address Advanced; start
# Rendering (Rendering, all advanced)
Name Default Range, choices Applied by
rendering.presentvsyncvsync, tearingrender.set_present_mode
rendering.max_frame_latency1 1 to 3 render.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 px 2 to 40 px render.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.
Name Default Range, choices Applied 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.
Previous prefs_page: a settings page from the preferences
Next The cadence model: when a frame starts and how it is shown
Edit this page on GitHub