dark mode improvements, aligh icon vertically in next button

This commit is contained in:
Pablo Velez Vidal 2022-11-18 15:14:34 +01:00
parent 2295ab46b5
commit 5b3d95c913
6 changed files with 6 additions and 6 deletions

View file

@ -148,7 +148,7 @@ Appearance.addChangeListener(() => {
const theme = getThemeFromState();
const screens = NavigationStore.getAllNavigationComponents();
if (screens.includes(Screens.SERVER)) {
if (screens.includes(Screens.SERVER) || screens.includes(Screens.ONBOARDING)) {
for (const screen of screens) {
if (appearanceControlledScreens.has(screen)) {
Navigation.updateProps(screen, {theme});

View file

@ -26,7 +26,7 @@ const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => ({
color: theme.buttonColor,
fontSize: 12,
marginLeft: 5,
marginTop: 2,
marginTop: 4.5,
},
nextButtonText: {
flexDirection: 'row',

View file

@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import * as React from 'react';
import React from 'react';
import {StyleProp, ViewStyle} from 'react-native';
import Svg, {
Ellipse,

View file

@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import * as React from 'react';
import React from 'react';
import {StyleProp, ViewStyle} from 'react-native';
import Svg, {
Rect,

View file

@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import * as React from 'react';
import React from 'react';
import {StyleProp, ViewStyle} from 'react-native';
import Svg, {
Ellipse,

View file

@ -7,7 +7,7 @@ import {Navigation, Options} from 'react-native-navigation';
import {Screens} from '@constants';
export const appearanceControlledScreens = new Set([Screens.SERVER, Screens.LOGIN, Screens.FORGOT_PASSWORD, Screens.MFA, Screens.SSO]);
export const appearanceControlledScreens = new Set([Screens.ONBOARDING, Screens.SERVER, Screens.LOGIN, Screens.FORGOT_PASSWORD, Screens.MFA, Screens.SSO]);
export function mergeNavigationOptions(componentId: string, options: Options) {
Navigation.mergeOptions(componentId, options);