Closed tigerpaws01 closed 8 months ago
Different settings page visuals, and a unified "Apply" button.
settings.xml contains several <setting> tags, each representing a setting widget.
settings.xml
<setting>
label
desc
type
type="text"
type="dropdown"
dataStoreType
dataStoreKey
hint
<item> tags are used inside type="dropdown" settings.
<item>
value
SettingsPageBuilder
SettingsPage
SettingItem
As mentioned by @j3soon in previous PRs,
whisperJobManager
Waiting
Transcribing
What This Branch Achieved
Different settings page visuals, and a unified "Apply" button.
Details
settings.xml
contains several<setting>
tags, each representing a setting widget.label
: Text label displayed for that setting.desc
: Text description displayed for that setting.type
: Type of that setting. Currently, there aretype="text"
andtype="dropdown"
.dataStoreType
: The data type this setting stores (Forced to be string for texts currently).dataStoreKey
: The data store key of this setting.hint
: The text hint to be displayed when text input field is empty (only for texts).<item>
tags are used insidetype="dropdown"
settings.label
: Text label to be displayed inside the dropdown menu.value
: The value to be stored when selecting this option.Code Structures
SettingsPageBuilder
builds aSettingsPage
according tosettings.xml
SettingsPage
is a container of severalSettingItem
s.SettingItem
is an abstract class. It is responsible for notifyingSettingsPage
of modification, and for acutally performing data store read/writes.Minor Fixes
As mentioned by @j3soon in previous PRs,
whisperJobManager
.Waiting
intoTranscribing
.Testing This Branch