This repository was archived by the owner on Feb 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-18
lines changed
studio/src/app/pages/core/settings/app-customization Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ export class AppCustomization {
1717
1818 private editMode : EditMode = settingsStore . state . editMode ;
1919
20- private contrastWarning = settingsStore . state . contrastWarning ;
21-
2220 constructor ( ) {
2321 this . themeService = ThemeService . getInstance ( ) ;
2422 }
@@ -110,21 +108,11 @@ export class AppCustomization {
110108 }
111109
112110 private renderContrastWarning ( ) {
113- return (
114- < ion-item >
115- < ion-label > { i18n . state . settings . contrast_warning } </ ion-label >
116-
117- < ion-select
118- slot = "end"
119- value = { this . contrastWarning ? "on" : "off" }
120- onIonChange = { ( ) => this . toggleContrastWarning ( ) }
121- interface = "popover"
122- mode = "md"
123- class = "ion-padding-start ion-padding-end" >
124- < ion-select-option value = "on" > { i18n . state . settings . contrast_warning_active } </ ion-select-option >
125- < ion-select-option value = "off" > { i18n . state . settings . contrast_warning_inactive } </ ion-select-option >
126- </ ion-select >
127- </ ion-item >
128- ) ;
111+ return < ion-item >
112+ < ion-label >
113+ { i18n . state . settings . contrast_warning }
114+ </ ion-label >
115+ < ion-toggle slot = "end" checked = { settingsStore . state . contrastWarning } mode = "md" color = "medium" onIonChange = { ( ) => this . toggleContrastWarning ( ) } > </ ion-toggle >
116+ </ ion-item >
129117 }
130118}
You can’t perform that action at this time.
0 commit comments