settings
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| SettingField acptui.ui.screens.settings One entry of the settings screen. |
||
| SettingsChanged acptui.ui.screens.settings A setting changed (the app applies it). |
||
| SettingsScreen acptui.ui.screens.settings Change and save settings; ``enter`` cycles a value (themes: a list). |
🛈 DocStrings¶
The settings screen (f3, palette "Settings"): change settings and save them.
After toad's settings screen. The entries are the display settings of config.toml;
choosing one cycles through its values (themes open a list). Changes apply at once where
they can and are written back to config.toml with its comments and layout kept
(tomlkit); agents, MCP servers and the other tables are left as they are.
COLUMN_WIDTHS
module-attribute
¶
The column widths the settings screen cycles through (any width works in the file).
SettingField
dataclass
¶
One entry of the settings screen.
Source code in src/acptui/ui/screens/settings.py
SettingsChanged
¶
Bases: Message
A setting changed (the app applies it).
Source code in src/acptui/ui/screens/settings.py
SettingsScreen
¶
Bases: ModalScreen[None]
Change and save settings; enter cycles a value (themes: a list).
Source code in src/acptui/ui/screens/settings.py
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 | |
action_back
¶
change
¶
Change a setting: in the app now, and in the config file.
Source code in src/acptui/ui/screens/settings.py
choices
¶
The values a setting can take (from the settings model), () for themes.
Source code in src/acptui/ui/screens/settings.py
get_value
¶
get_value(settings: Settings, key: str) -> SettingValue
A setting's current value.
Source code in src/acptui/ui/screens/settings.py
save_setting
¶
Write one setting into config.toml, keeping everything else in the file.
Source code in src/acptui/ui/screens/settings.py
show
¶
A value for the list.
with_value
¶
settings with one setting changed (validated).