Module settings_editor

Module settings_editor 

Source
Expand description

Settings editor module for managing application configuration.

This module provides a hierarchical settings interface with the following structure:

SettingsEditor (Main view)
  ├── TopBar (Back button, "Settings" title)
  ├── StackNavigationBar (Category tabs: General | Libraries | Intermissions)
  └── CategoryEditor (Embedded, shows settings for selected category)
      ├── SettingRow (One for each setting in the category)
      │   ├── Label (Setting name)
      │   └── SettingValue (Current value, can be tapped to edit)
      └── BottomBar (Add Library button for Libraries category)

§Components

  • SettingsEditor: Top-level view with navigation bar and category editor
  • CategoryNavigationBar: Horizontal bar with category tabs
  • CategoryEditor: Embedded editor for a specific category’s settings
  • SettingRow: Individual setting with label and value
  • SettingValue: Interactive value display that opens editors/menus
  • LibraryEditor: Specialized editor for library settings

§Event Flow

When a setting is modified, the CategoryEditor directly updates context.settings, providing immediate feedback. Settings are persisted to disk when the settings editor is closed.

Modules§

bottom_bar 🔒
category 🔒
category_button 🔒
category_editor 🔒
category_navigation_bar 🔒
category_provider 🔒
library_editor 🔒
setting_row 🔒
setting_value 🔒

Structs§

CategoryButton
A single category button that renders itself with background and text.
CategoryEditor
A view for editing category-specific settings.
CategoryNavigationBar
Horizontal navigation bar displaying category tabs.
SettingRow
A row in the settings UI that displays a setting label and its corresponding value.
SettingValue
Represents a single setting value display in the settings UI.
SettingsCategoryProvider
Navigation provider for settings categories.
SettingsEditor
Main settings editor view.
SettingsEditorBottomBar
Reusable bottom bar component for settings editor views

Enums§

BottomBarVariant
Defines the layout variant for the settings editor bottom bar
Category
Categories of settings available in the settings editor.
RowKind
ToggleSettings