2021-10-20 16:58:27 +02:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2024-06-26 17:47:01 +02:00
|
|
|
exports[`<ThemeChoicePanel /> custom theme should display custom theme 1`] = `
|
2022-11-18 10:16:11 +01:00
|
|
|
<DocumentFragment>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2024-06-26 17:47:01 +02:00
|
|
|
class="mx_SettingsSubsection mx_SettingsSubsection_newUi"
|
|
|
|
data-testid="themePanel"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-05-21 23:12:11 +02:00
|
|
|
<div
|
|
|
|
class="mx_SettingsSubsectionHeading"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-05-21 23:12:11 +02:00
|
|
|
<h3
|
2024-06-26 17:47:01 +02:00
|
|
|
class="mx_Heading_h3 mx_SettingsSubsectionHeading_heading"
|
2023-05-21 23:12:11 +02:00
|
|
|
>
|
|
|
|
Theme
|
|
|
|
</h3>
|
|
|
|
</div>
|
2021-10-20 16:58:27 +02:00
|
|
|
<div
|
2024-06-26 17:47:01 +02:00
|
|
|
class="mx_SettingsSubsection_content mx_SettingsSubsection_content_newUi"
|
2021-10-20 16:58:27 +02:00
|
|
|
>
|
2024-06-26 17:47:01 +02:00
|
|
|
<form
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_root_dgy0u_24"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field_dgy0u_40"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-control_dgy0u_52"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="_container_qnvru_18"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="_input_qnvru_32"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r28:"
|
2024-06-26 17:47:01 +02:00
|
|
|
name="systemTheme"
|
|
|
|
title=""
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="_ui_qnvru_42"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-body_dgy0u_46"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<label
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_label_dgy0u_67"
|
2024-10-21 15:50:06 +02:00
|
|
|
for="radix-:r28:"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
Match system theme
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<form
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_root_dgy0u_24 mx_ThemeChoicePanel_ThemeSelectors"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field_dgy0u_40 mx_ThemeChoicePanel_themeSelector mx_ThemeChoicePanel_themeSelector_enabled cpd-theme-light"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-control_dgy0u_52"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="_container_1vw5h_18"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
checked=""
|
|
|
|
class="_input_1vw5h_26"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r29:"
|
2024-06-26 17:47:01 +02:00
|
|
|
name="themeSelector"
|
|
|
|
title=""
|
|
|
|
type="radio"
|
|
|
|
value="light"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="_ui_1vw5h_27"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-body_dgy0u_46"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<label
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_label_dgy0u_67 mx_ThemeChoicePanel_themeSelector_Label"
|
2024-10-21 15:50:06 +02:00
|
|
|
for="radix-:r29:"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
Light
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field_dgy0u_40 mx_ThemeChoicePanel_themeSelector cpd-theme-dark"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-control_dgy0u_52"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="_container_1vw5h_18"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="_input_1vw5h_26"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r2a:"
|
2024-06-26 17:47:01 +02:00
|
|
|
name="themeSelector"
|
|
|
|
title=""
|
|
|
|
type="radio"
|
|
|
|
value="dark"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="_ui_1vw5h_27"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-body_dgy0u_46"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<label
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_label_dgy0u_67 mx_ThemeChoicePanel_themeSelector_Label"
|
2024-10-21 15:50:06 +02:00
|
|
|
for="radix-:r2a:"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
Dark
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field_dgy0u_40 mx_ThemeChoicePanel_themeSelector cpd-theme-light"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-control_dgy0u_52"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="_container_1vw5h_18"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="_input_1vw5h_26"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r2b:"
|
2024-06-26 17:47:01 +02:00
|
|
|
name="themeSelector"
|
|
|
|
title=""
|
|
|
|
type="radio"
|
|
|
|
value="light-high-contrast"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="_ui_1vw5h_27"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-body_dgy0u_46"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<label
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_label_dgy0u_67 mx_ThemeChoicePanel_themeSelector_Label"
|
2024-10-21 15:50:06 +02:00
|
|
|
for="radix-:r2b:"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
High contrast
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field_dgy0u_40 mx_ThemeChoicePanel_themeSelector cpd-theme-dark"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-control_dgy0u_52"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="_container_1vw5h_18"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="_input_1vw5h_26"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r2c:"
|
2024-06-26 17:47:01 +02:00
|
|
|
name="themeSelector"
|
|
|
|
title=""
|
|
|
|
type="radio"
|
|
|
|
value="custom-Alice theme"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="_ui_1vw5h_27"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-body_dgy0u_46"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<label
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_label_dgy0u_67 mx_ThemeChoicePanel_themeSelector_Label"
|
2024-10-21 15:50:06 +02:00
|
|
|
for="radix-:r2c:"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
Alice theme
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
2023-05-21 23:12:11 +02:00
|
|
|
<div
|
2024-06-26 17:47:01 +02:00
|
|
|
class="mx_ThemeChoicePanel_CustomTheme"
|
2021-10-20 16:58:27 +02:00
|
|
|
>
|
2024-06-26 17:47:01 +02:00
|
|
|
<form
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_root_dgy0u_24 mx_ThemeChoicePanel_CustomTheme_EditInPlace"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_field_dgy0u_34"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
2024-07-02 14:35:13 +02:00
|
|
|
<label
|
|
|
|
class="_label_dgy0u_67"
|
2024-10-21 15:50:06 +02:00
|
|
|
for="radix-:r2d:"
|
2024-07-02 14:35:13 +02:00
|
|
|
>
|
|
|
|
Add custom theme
|
|
|
|
</label>
|
2024-06-26 17:47:01 +02:00
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_controls_1h4nb_17"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
2024-07-02 14:35:13 +02:00
|
|
|
<input
|
2024-10-21 15:50:06 +02:00
|
|
|
aria-describedby="radix-:r2e:"
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_control_9gon8_18"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r2d:"
|
2024-07-02 14:35:13 +02:00
|
|
|
name="input"
|
|
|
|
title=""
|
|
|
|
value=""
|
|
|
|
/>
|
2024-06-26 17:47:01 +02:00
|
|
|
</div>
|
2024-07-02 14:35:13 +02:00
|
|
|
<span
|
|
|
|
class="_message_dgy0u_98 _help-message_dgy0u_104"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r2e:"
|
2024-07-02 14:35:13 +02:00
|
|
|
>
|
|
|
|
Enter the URL of a custom theme you want to apply.
|
|
|
|
</span>
|
2024-06-26 17:47:01 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<ul
|
|
|
|
class="mx_ThemeChoicePanel_CustomThemeList"
|
|
|
|
>
|
|
|
|
<li
|
|
|
|
aria-label="Alice theme"
|
|
|
|
class="mx_ThemeChoicePanel_CustomThemeList_theme"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_ThemeChoicePanel_CustomThemeList_name"
|
|
|
|
>
|
|
|
|
Alice theme
|
|
|
|
</span>
|
|
|
|
<button
|
|
|
|
aria-label="Delete"
|
2024-10-21 15:50:06 +02:00
|
|
|
aria-labelledby=":r2f:"
|
2024-07-12 17:27:51 +02:00
|
|
|
class="_icon-button_bh2qc_17 _destructive_bh2qc_83"
|
2024-06-26 17:47:01 +02:00
|
|
|
role="button"
|
|
|
|
style="--cpd-icon-button-size: 32px;"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="_indicator-icon_133tf_26"
|
|
|
|
style="--cpd-icon-button-size: 100%;"
|
|
|
|
>
|
2024-07-24 11:49:33 +02:00
|
|
|
<svg
|
|
|
|
fill="currentColor"
|
|
|
|
height="1em"
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
width="1em"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M7 21c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 0 1 5 19V6a.968.968 0 0 1-.713-.287A.968.968 0 0 1 4 5c0-.283.096-.52.287-.713A.968.968 0 0 1 5 4h4a.97.97 0 0 1 .287-.712A.968.968 0 0 1 10 3h4a.97.97 0 0 1 .713.288A.968.968 0 0 1 15 4h4a.97.97 0 0 1 .712.287c.192.192.288.43.288.713s-.096.52-.288.713A.968.968 0 0 1 19 6v13c0 .55-.196 1.02-.587 1.413A1.926 1.926 0 0 1 17 21H7ZM7 6v13h10V6H7Zm2 10c0 .283.096.52.287.712.192.192.43.288.713.288s.52-.096.713-.288A.968.968 0 0 0 11 16V9a.967.967 0 0 0-.287-.713A.968.968 0 0 0 10 8a.968.968 0 0 0-.713.287A.968.968 0 0 0 9 9v7Zm4 0c0 .283.096.52.287.712.192.192.43.288.713.288s.52-.096.713-.288A.968.968 0 0 0 15 16V9a.967.967 0 0 0-.287-.713A.968.968 0 0 0 14 8a.968.968 0 0 0-.713.287A.967.967 0 0 0 13 9v7Z"
|
|
|
|
/>
|
|
|
|
</svg>
|
2024-06-26 17:47:01 +02:00
|
|
|
</div>
|
|
|
|
</button>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="_separator_144s5_17"
|
|
|
|
data-kind="primary"
|
|
|
|
data-orientation="horizontal"
|
|
|
|
role="separator"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</DocumentFragment>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<ThemeChoicePanel /> custom theme should render the custom theme section 1`] = `
|
|
|
|
<DocumentFragment>
|
|
|
|
<div
|
|
|
|
class="mx_SettingsSubsection mx_SettingsSubsection_newUi"
|
|
|
|
data-testid="themePanel"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_SettingsSubsectionHeading"
|
|
|
|
>
|
|
|
|
<h3
|
|
|
|
class="mx_Heading_h3 mx_SettingsSubsectionHeading_heading"
|
|
|
|
>
|
|
|
|
Theme
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_SettingsSubsection_content mx_SettingsSubsection_content_newUi"
|
|
|
|
>
|
|
|
|
<form
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_root_dgy0u_24"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field_dgy0u_40"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-control_dgy0u_52"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="_container_qnvru_18"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="_input_qnvru_32"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r10:"
|
2024-06-26 17:47:01 +02:00
|
|
|
name="systemTheme"
|
|
|
|
title=""
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="_ui_qnvru_42"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-body_dgy0u_46"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<label
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_label_dgy0u_67"
|
2024-10-21 15:50:06 +02:00
|
|
|
for="radix-:r10:"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
Match system theme
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<form
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_root_dgy0u_24 mx_ThemeChoicePanel_ThemeSelectors"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field_dgy0u_40 mx_ThemeChoicePanel_themeSelector mx_ThemeChoicePanel_themeSelector_enabled cpd-theme-light"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-control_dgy0u_52"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="_container_1vw5h_18"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
checked=""
|
|
|
|
class="_input_1vw5h_26"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r11:"
|
2024-06-26 17:47:01 +02:00
|
|
|
name="themeSelector"
|
|
|
|
title=""
|
|
|
|
type="radio"
|
|
|
|
value="light"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="_ui_1vw5h_27"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-body_dgy0u_46"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<label
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_label_dgy0u_67 mx_ThemeChoicePanel_themeSelector_Label"
|
2024-10-21 15:50:06 +02:00
|
|
|
for="radix-:r11:"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
Light
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field_dgy0u_40 mx_ThemeChoicePanel_themeSelector cpd-theme-dark"
|
2021-10-20 16:58:27 +02:00
|
|
|
>
|
2024-06-26 17:47:01 +02:00
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-control_dgy0u_52"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="_container_1vw5h_18"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="_input_1vw5h_26"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r12:"
|
2024-06-26 17:47:01 +02:00
|
|
|
name="themeSelector"
|
|
|
|
title=""
|
|
|
|
type="radio"
|
|
|
|
value="dark"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="_ui_1vw5h_27"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-body_dgy0u_46"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<label
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_label_dgy0u_67 mx_ThemeChoicePanel_themeSelector_Label"
|
2024-10-21 15:50:06 +02:00
|
|
|
for="radix-:r12:"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
Dark
|
|
|
|
</label>
|
2023-05-21 23:12:11 +02:00
|
|
|
</div>
|
2024-06-26 17:47:01 +02:00
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field_dgy0u_40 mx_ThemeChoicePanel_themeSelector cpd-theme-light"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
2023-05-21 23:12:11 +02:00
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-control_dgy0u_52"
|
2023-05-21 23:12:11 +02:00
|
|
|
>
|
2024-06-26 17:47:01 +02:00
|
|
|
<div
|
|
|
|
class="_container_1vw5h_18"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="_input_1vw5h_26"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r13:"
|
2024-06-26 17:47:01 +02:00
|
|
|
name="themeSelector"
|
|
|
|
title=""
|
|
|
|
type="radio"
|
|
|
|
value="light-high-contrast"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="_ui_1vw5h_27"
|
|
|
|
/>
|
|
|
|
</div>
|
2023-05-21 23:12:11 +02:00
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-body_dgy0u_46"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<label
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_label_dgy0u_67 mx_ThemeChoicePanel_themeSelector_Label"
|
2024-10-21 15:50:06 +02:00
|
|
|
for="radix-:r13:"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
High contrast
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field_dgy0u_40 mx_ThemeChoicePanel_themeSelector cpd-theme-dark"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2024-06-26 17:47:01 +02:00
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-control_dgy0u_52"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="_container_1vw5h_18"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="_input_1vw5h_26"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r14:"
|
2024-06-26 17:47:01 +02:00
|
|
|
name="themeSelector"
|
|
|
|
title=""
|
|
|
|
type="radio"
|
|
|
|
value="custom-Alice theme"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="_ui_1vw5h_27"
|
|
|
|
/>
|
|
|
|
</div>
|
2023-05-21 23:12:11 +02:00
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-body_dgy0u_46"
|
2023-05-21 23:12:11 +02:00
|
|
|
>
|
2024-06-26 17:47:01 +02:00
|
|
|
<label
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_label_dgy0u_67 mx_ThemeChoicePanel_themeSelector_Label"
|
2024-10-21 15:50:06 +02:00
|
|
|
for="radix-:r14:"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
Alice theme
|
|
|
|
</label>
|
2023-05-21 23:12:11 +02:00
|
|
|
</div>
|
2024-06-26 17:47:01 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<div
|
|
|
|
class="mx_ThemeChoicePanel_CustomTheme"
|
|
|
|
>
|
|
|
|
<form
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_root_dgy0u_24 mx_ThemeChoicePanel_CustomTheme_EditInPlace"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
2023-05-21 23:12:11 +02:00
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_field_dgy0u_34"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
2024-07-02 14:35:13 +02:00
|
|
|
<label
|
|
|
|
class="_label_dgy0u_67"
|
2024-10-21 15:50:06 +02:00
|
|
|
for="radix-:r15:"
|
2024-07-02 14:35:13 +02:00
|
|
|
>
|
|
|
|
Add custom theme
|
|
|
|
</label>
|
2024-06-26 17:47:01 +02:00
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_controls_1h4nb_17"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
2024-07-02 14:35:13 +02:00
|
|
|
<input
|
2024-10-21 15:50:06 +02:00
|
|
|
aria-describedby="radix-:r16:"
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_control_9gon8_18"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r15:"
|
2024-07-02 14:35:13 +02:00
|
|
|
name="input"
|
|
|
|
title=""
|
|
|
|
value=""
|
|
|
|
/>
|
2024-06-26 17:47:01 +02:00
|
|
|
</div>
|
2024-07-02 14:35:13 +02:00
|
|
|
<span
|
|
|
|
class="_message_dgy0u_98 _help-message_dgy0u_104"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r16:"
|
2024-07-02 14:35:13 +02:00
|
|
|
>
|
|
|
|
Enter the URL of a custom theme you want to apply.
|
|
|
|
</span>
|
2024-06-26 17:47:01 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<ul
|
|
|
|
class="mx_ThemeChoicePanel_CustomThemeList"
|
|
|
|
>
|
|
|
|
<li
|
|
|
|
aria-label="Alice theme"
|
|
|
|
class="mx_ThemeChoicePanel_CustomThemeList_theme"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_ThemeChoicePanel_CustomThemeList_name"
|
|
|
|
>
|
|
|
|
Alice theme
|
|
|
|
</span>
|
|
|
|
<button
|
|
|
|
aria-label="Delete"
|
2024-10-21 15:50:06 +02:00
|
|
|
aria-labelledby=":r17:"
|
2024-07-12 17:27:51 +02:00
|
|
|
class="_icon-button_bh2qc_17 _destructive_bh2qc_83"
|
2024-06-26 17:47:01 +02:00
|
|
|
role="button"
|
|
|
|
style="--cpd-icon-button-size: 32px;"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="_indicator-icon_133tf_26"
|
|
|
|
style="--cpd-icon-button-size: 100%;"
|
|
|
|
>
|
2024-07-24 11:49:33 +02:00
|
|
|
<svg
|
|
|
|
fill="currentColor"
|
|
|
|
height="1em"
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
width="1em"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M7 21c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 0 1 5 19V6a.968.968 0 0 1-.713-.287A.968.968 0 0 1 4 5c0-.283.096-.52.287-.713A.968.968 0 0 1 5 4h4a.97.97 0 0 1 .287-.712A.968.968 0 0 1 10 3h4a.97.97 0 0 1 .713.288A.968.968 0 0 1 15 4h4a.97.97 0 0 1 .712.287c.192.192.288.43.288.713s-.096.52-.288.713A.968.968 0 0 1 19 6v13c0 .55-.196 1.02-.587 1.413A1.926 1.926 0 0 1 17 21H7ZM7 6v13h10V6H7Zm2 10c0 .283.096.52.287.712.192.192.43.288.713.288s.52-.096.713-.288A.968.968 0 0 0 11 16V9a.967.967 0 0 0-.287-.713A.968.968 0 0 0 10 8a.968.968 0 0 0-.713.287A.968.968 0 0 0 9 9v7Zm4 0c0 .283.096.52.287.712.192.192.43.288.713.288s.52-.096.713-.288A.968.968 0 0 0 15 16V9a.967.967 0 0 0-.287-.713A.968.968 0 0 0 14 8a.968.968 0 0 0-.713.287A.967.967 0 0 0 13 9v7Z"
|
|
|
|
/>
|
|
|
|
</svg>
|
2024-06-26 17:47:01 +02:00
|
|
|
</div>
|
|
|
|
</button>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2023-05-21 23:12:11 +02:00
|
|
|
</div>
|
2021-10-20 16:58:27 +02:00
|
|
|
</div>
|
2024-06-26 17:47:01 +02:00
|
|
|
<div
|
|
|
|
class="_separator_144s5_17"
|
|
|
|
data-kind="primary"
|
|
|
|
data-orientation="horizontal"
|
|
|
|
role="separator"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</DocumentFragment>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<ThemeChoicePanel /> renders the theme choice UI 1`] = `
|
|
|
|
<DocumentFragment>
|
|
|
|
<div
|
|
|
|
class="mx_SettingsSubsection mx_SettingsSubsection_newUi"
|
|
|
|
data-testid="themePanel"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_SettingsSubsectionHeading"
|
|
|
|
>
|
|
|
|
<h3
|
|
|
|
class="mx_Heading_h3 mx_SettingsSubsectionHeading_heading"
|
|
|
|
>
|
|
|
|
Theme
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_SettingsSubsection_content mx_SettingsSubsection_content_newUi"
|
|
|
|
>
|
|
|
|
<form
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_root_dgy0u_24"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field_dgy0u_40"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-control_dgy0u_52"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="_container_qnvru_18"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="_input_qnvru_32"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r0:"
|
2024-06-26 17:47:01 +02:00
|
|
|
name="systemTheme"
|
|
|
|
title=""
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="_ui_qnvru_42"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-body_dgy0u_46"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<label
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_label_dgy0u_67"
|
2024-10-21 15:50:06 +02:00
|
|
|
for="radix-:r0:"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
Match system theme
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<form
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_root_dgy0u_24 mx_ThemeChoicePanel_ThemeSelectors"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field_dgy0u_40 mx_ThemeChoicePanel_themeSelector mx_ThemeChoicePanel_themeSelector_enabled cpd-theme-light"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-control_dgy0u_52"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="_container_1vw5h_18"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
checked=""
|
|
|
|
class="_input_1vw5h_26"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r1:"
|
2024-06-26 17:47:01 +02:00
|
|
|
name="themeSelector"
|
|
|
|
title=""
|
|
|
|
type="radio"
|
|
|
|
value="light"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="_ui_1vw5h_27"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-body_dgy0u_46"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<label
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_label_dgy0u_67 mx_ThemeChoicePanel_themeSelector_Label"
|
2024-10-21 15:50:06 +02:00
|
|
|
for="radix-:r1:"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
Light
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field_dgy0u_40 mx_ThemeChoicePanel_themeSelector cpd-theme-dark"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-control_dgy0u_52"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="_container_1vw5h_18"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="_input_1vw5h_26"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r2:"
|
2024-06-26 17:47:01 +02:00
|
|
|
name="themeSelector"
|
|
|
|
title=""
|
|
|
|
type="radio"
|
|
|
|
value="dark"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="_ui_1vw5h_27"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-body_dgy0u_46"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<label
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_label_dgy0u_67 mx_ThemeChoicePanel_themeSelector_Label"
|
2024-10-21 15:50:06 +02:00
|
|
|
for="radix-:r2:"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
Dark
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field_dgy0u_40 mx_ThemeChoicePanel_themeSelector cpd-theme-light"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-control_dgy0u_52"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="_container_1vw5h_18"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="_input_1vw5h_26"
|
2024-10-21 15:50:06 +02:00
|
|
|
id="radix-:r3:"
|
2024-06-26 17:47:01 +02:00
|
|
|
name="themeSelector"
|
|
|
|
title=""
|
|
|
|
type="radio"
|
|
|
|
value="light-high-contrast"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="_ui_1vw5h_27"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_inline-field-body_dgy0u_46"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
<label
|
2024-07-02 14:35:13 +02:00
|
|
|
class="_label_dgy0u_67 mx_ThemeChoicePanel_themeSelector_Label"
|
2024-10-21 15:50:06 +02:00
|
|
|
for="radix-:r3:"
|
2024-06-26 17:47:01 +02:00
|
|
|
>
|
|
|
|
High contrast
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="_separator_144s5_17"
|
|
|
|
data-kind="primary"
|
|
|
|
data-orientation="horizontal"
|
|
|
|
role="separator"
|
|
|
|
/>
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
2022-11-18 10:16:11 +01:00
|
|
|
</DocumentFragment>
|
2021-10-20 16:58:27 +02:00
|
|
|
`;
|