display_settings: Move out `high_contrast_mode` from checkbox group.

`high_contrast_mode` was part of the checkbox group obtained by calling
`get_all_preferences`. For the new layout change, it will not be a part
of that group and this is a preparatory commit seperating it out from
that group. We will also rename that checkbox group in future commits.
This commit is contained in:
Shubham Padia 2024-07-11 06:31:09 +00:00 committed by Tim Abbott
parent 554e9f7e29
commit 39af05f475
2 changed files with 7 additions and 1 deletions

View File

@ -151,7 +151,6 @@ export type DisplaySettings = {
export const get_all_preferences = (): DisplaySettings => ({
settings: {
user_display_settings: [
"high_contrast_mode",
"starred_message_counts",
"receives_typing_notifications",
"fluid_layout_width",

View File

@ -198,5 +198,12 @@
prefix=../prefix}}
{{/each}}
{{> settings_checkbox
setting_name="high_contrast_mode"
is_checked=settings_object.high_contrast_mode
label=settings_label.high_contrast_mode
render_only=settings_render_only.high_contrast_mode
prefix=prefix}}
</div>
</form>