Expand description
The settings window, as a plugin (SettingsPlugin, in
DefaultPlugins): a search field over a tree of sections on one side
and the form on the other, generated from the declared settings and
applied as they change, each with its reset; and a shortcuts editor
(every command with its keys, changed by pressing the new ones, the
conflicts said, each change taken back by its reset). Pointer
gestures are there too (docs/pointer-gestures.md): the profile in
force and how many of its gestures the user changed, a filter
showing them alone, each gesture’s triggers removed one by one or
added by doing the gesture on a pad.
The Fonts page, under Appearance, holds the text settings
(text): the text size, a family for the interface and one for
numbers and code, picked among the families there are
(egui_pop_core::fonts::families), and a preview, which draws the
family the pointer rests on in the picker before it is picked.
Plugins add pages of their own next to the generated ones
(crate::settings_pages): drawn by the plugin, placed in the tree,
found by the search, with their reset.
Ctrl+, (or File > Settings, app.settings) opens the Settings app
(crate::admin) when the application has it (DefaultPlugins do):
the shortcuts editor, the gestures, the Fonts page and every custom
page are its pages there, registered widget kinds
(register_kinds) on pages this module declares
(admin_manifest). The window itself opens from the Settings app’s
General › Advanced page (app.settings.window), and from Ctrl+,
without the Settings app; Escape closes it (or stops a capture of
keys).
The settings have a history of their own (ADR 0014): what the
window’s form writes goes to the store’s SETTINGS history, a
local scope of the window’s focus surface (SURFACE). While the
focus is in the window, Edit > Undo, Ctrl+Z and Ctrl+Shift+Z (and
the window’s own buttons) undo and redo the settings’ changes; outside
it, the application’s.
Structs§
- Settings
Plugin - The plugin.
- Settings
Window - Open or not, the search, the section shown.
Constants§
- CMD_
SETTINGS - Opens and closes the settings window.
- CMD_
SETTINGS_ PAGE - Opens the settings on a custom page (
{"page": "<id>"}): the Settings app’s page when it has one, else the window’s. - CMD_
SETTINGS_ WINDOW - Opens and closes the settings window itself (the Settings app’s General › Advanced page).
- CMD_
VALUE_ REDO - CMD_
VALUE_ UNDO - The store’s own undo and redo of the application’s history (the
model’s
value.undoandvalue.redo, for agents). - FONTS
- The section of the text settings, under Appearance (shown translated): the text size, the families and a preview.
- SETTINGS
- The settings window’s history: the values written from its form.
- SETTINGS_
WINDOW - The settings window’s state, as a service.
- SHORTCUTS
- The section holding the shortcuts editor, as
SettingsWindow::opentakes it (shown translated). - SURFACE
- The focus surface the window’s content is drawn in
(
settingsWindowFocus): its local scope is the settings’ history.
Functions§
- is_open
- Whether the application’s settings window is open.
- page_
path - Where a custom page is in the Settings app (
scope/section). - setting_
row - Draws a declared setting as the settings window does (its editor
bound to the store, its reset, its description), for a custom page;
falsewhen no setting has that id. In the Settings app, the app’s row: its value scopes, its origin, its modified bar.