feat(base/native): Switch thumb track color (#12066)

* feat(base/native): Switch thumbColor and trackColor default props
This commit is contained in:
Calinteodor
2022-08-25 14:25:13 +03:00
committed by GitHub
parent 3f2018a1de
commit 94dc6309de
9 changed files with 37 additions and 128 deletions

View File

@@ -35,12 +35,7 @@ import {
import FormRow from './FormRow';
import FormSectionAccordion from './FormSectionAccordion';
import styles, {
DISABLED_TRACK_COLOR,
ENABLED_TRACK_COLOR,
THUMB_COLOR
} from './styles';
import styles from './styles';
/**
* Application information module.
@@ -270,23 +265,13 @@ class SettingsView extends AbstractSettingsView<Props, State> {
label = 'settingsView.startWithAudioMuted'>
<Switch
checked = { startWithAudioMuted }
onChange = { this._onStartAudioMutedChange }
thumbColor = { THUMB_COLOR }
trackColor = {{
true: ENABLED_TRACK_COLOR,
false: DISABLED_TRACK_COLOR
}} />
onChange = { this._onStartAudioMutedChange } />
</FormRow>
<Divider style = { styles.fieldSeparator } />
<FormRow label = 'settingsView.startWithVideoMuted'>
<Switch
checked = { startWithVideoMuted }
onChange = { this._onStartVideoMutedChange }
thumbColor = { THUMB_COLOR }
trackColor = {{
true: ENABLED_TRACK_COLOR,
false: DISABLED_TRACK_COLOR
}} />
onChange = { this._onStartVideoMutedChange } />
</FormRow>
</FormSectionAccordion>
<FormSectionAccordion
@@ -326,12 +311,7 @@ class SettingsView extends AbstractSettingsView<Props, State> {
label = 'settingsView.disableCallIntegration'>
<Switch
checked = { disableCallIntegration }
onChange = { this._onDisableCallIntegration }
thumbColor = { THUMB_COLOR }
trackColor = {{
true: ENABLED_TRACK_COLOR,
false: DISABLED_TRACK_COLOR
}} />
onChange = { this._onDisableCallIntegration } />
</FormRow>
<Divider style = { styles.fieldSeparator } />
</>
@@ -340,12 +320,7 @@ class SettingsView extends AbstractSettingsView<Props, State> {
label = 'settingsView.disableP2P'>
<Switch
checked = { disableP2P }
onChange = { this._onDisableP2P }
thumbColor = { THUMB_COLOR }
trackColor = {{
true: ENABLED_TRACK_COLOR,
false: DISABLED_TRACK_COLOR
}} />
onChange = { this._onDisableP2P } />
</FormRow>
<Divider style = { styles.fieldSeparator } />
{AppInfo.GOOGLE_SERVICES_ENABLED && (
@@ -354,12 +329,7 @@ class SettingsView extends AbstractSettingsView<Props, State> {
label = 'settingsView.disableCrashReporting'>
<Switch
checked = { disableCrashReporting }
onChange = { this._onDisableCrashReporting }
thumbColor = { THUMB_COLOR }
trackColor = {{
true: ENABLED_TRACK_COLOR,
false: DISABLED_TRACK_COLOR
}} />
onChange = { this._onDisableCrashReporting } />
</FormRow>
)}
</FormSectionAccordion>