[DarkMode] Deprecate advanced setting (#202993)

This commit is contained in:
Sébastien Loix 2024-12-05 16:39:59 +00:00 committed by GitHub
parent b5c119496a
commit 2ae1dd41b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -187,7 +187,7 @@ this setting stores part of the URL in your browser session to keep the URL
short.
[[theme-darkmode]]`theme:darkMode`::
The UI theme that the {kib} UI should use.
deprecated:[9.0.0] The UI theme that the {kib} UI should use.
Set to `enabled` or `disabled` to enable or disable the dark theme.
Set to `system` to have the {kib} UI theme follow the system theme.
You must refresh the page to apply the setting.

View file

@ -65,6 +65,12 @@ export const getThemeSettings = (
defaultMessage: `Sync with system`,
}),
},
deprecation: {
message: i18n.translate('core.ui_settings.params.darkModeDeprecation', {
defaultMessage: 'This setting is deprecated and will be removed in Kibana 10.0.',
}),
docLinksKey: 'generalSettings',
},
requiresPageReload: true,
schema: schema.oneOf([
schema.literal('enabled'),