dark mode improvements, aligh icon vertically in next button
This commit is contained in:
parent
2295ab46b5
commit
5b3d95c913
6 changed files with 6 additions and 6 deletions
|
|
@ -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});
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => ({
|
|||
color: theme.buttonColor,
|
||||
fontSize: 12,
|
||||
marginLeft: 5,
|
||||
marginTop: 2,
|
||||
marginTop: 4.5,
|
||||
},
|
||||
nextButtonText: {
|
||||
flexDirection: 'row',
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue