From 1fef8448784d522c4bce09177c0e08471d1a1e75 Mon Sep 17 00:00:00 2001 From: Simek Date: Mon, 24 Jan 2022 06:08:28 -0800 Subject: [PATCH] fix ReleaseChannel info in WelcomeScreen in dark mode (#3328) Summary: This PR fixes the color of ReleaseChannel information in the WelcomeScreen, when user uses dark mode. I have decided to switch to `textColorSecondary` instead of `textColorPrimary` to emphasise a bit more the information, but I can change it to the primary color if you think it will fit there better. Also the font size has been adjusted to match the paragraph font size. ## Changelog * fix ReleaseChannel info in WelcomeScreen in dark mode Pull Request resolved: https://github.com/facebook/flipper/pull/3328 Test Plan: The change has been testes by running the desktop Flipper app locally from source. ## Preview #### Dark Mode (before & after) Screenshot 2022-01-23 at 15 14 12 Screenshot 2022-01-23 at 15 09 58 #### Light Mode Screenshot 2022-01-23 at 15 22 42 Reviewed By: aigoncharov Differential Revision: D33738596 Pulled By: lblasa fbshipit-source-id: 2fdd18871fbf9d1c215b58173932d57d5731948a --- .../src/sandy-chrome/WelcomeScreen.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/desktop/flipper-ui-core/src/sandy-chrome/WelcomeScreen.tsx b/desktop/flipper-ui-core/src/sandy-chrome/WelcomeScreen.tsx index ec3b4d886..29d839751 100644 --- a/desktop/flipper-ui-core/src/sandy-chrome/WelcomeScreen.tsx +++ b/desktop/flipper-ui-core/src/sandy-chrome/WelcomeScreen.tsx @@ -141,9 +141,8 @@ export function WelcomeScreenStaticView() { } function WelcomeScreenContent() { - function isInsidersChannel() { - return config.getReleaseChannel() === ReleaseChannel.INSIDERS; - } + const isInsidersChannel = + config.getReleaseChannel() === ReleaseChannel.INSIDERS; return ( @@ -153,7 +152,7 @@ function WelcomeScreenContent() { style={{width: '100%', padding: '0 32px 32px', alignItems: 'center'}}> {config.getReleaseChannel()}