Преглед изворни кода

[RN] Make the header more compact

j8
Bettenbuk Zoltan пре 6 година
родитељ
комит
ecb44b6ab4
1 измењених фајлова са 8 додато и 7 уклоњено
  1. 8
    7
      react/features/base/react/components/native/styles.js

+ 8
- 7
react/features/base/react/components/native/styles.js Прегледај датотеку

@@ -7,13 +7,12 @@ import { BoxModel, ColorPalette, createStyleSheet } from '../../../styles';
7 7
 const AVATAR_OPACITY = 0.4;
8 8
 const HEADER_COLOR = ColorPalette.blue;
9 9
 
10
-// Header height is from Android guidelines. Also, this looks good.
11
-const HEADER_HEIGHT = 56;
10
+const HEADER_HEIGHT = 48;
12 11
 const OVERLAY_FONT_COLOR = 'rgba(255, 255, 255, 0.6)';
13 12
 const SECONDARY_ACTION_BUTTON_SIZE = 30;
14 13
 
15 14
 export const AVATAR_SIZE = 65;
16
-export const HEADER_PADDING = BoxModel.padding;
15
+export const HEADER_PADDING = BoxModel.padding / 2;
17 16
 export const STATUSBAR_COLOR = ColorPalette.blueHighlight;
18 17
 export const SIDEBAR_WIDTH = 250;
19 18
 export const UNDERLAY_COLOR = 'rgba(255, 255, 255, 0.2)';
@@ -30,8 +29,9 @@ const HEADER_STYLES = {
30 29
     headerButtonIcon: {
31 30
         alignSelf: 'center',
32 31
         color: ColorPalette.white,
33
-        fontSize: 26,
34
-        paddingRight: 22
32
+        fontSize: 22,
33
+        marginRight: 12,
34
+        padding: 8
35 35
     },
36 36
 
37 37
     headerButtonText: {
@@ -51,7 +51,7 @@ const HEADER_STYLES = {
51 51
      */
52 52
     headerText: {
53 53
         color: ColorPalette.white,
54
-        fontSize: 20
54
+        fontSize: 18
55 55
     },
56 56
 
57 57
     headerTextWrapper: {
@@ -82,7 +82,8 @@ const HEADER_STYLES = {
82 82
         flexDirection: 'row',
83 83
         height: HEADER_HEIGHT,
84 84
         justifyContent: 'space-between',
85
-        padding: HEADER_PADDING
85
+        paddingHorizontal: BoxModel.padding,
86
+        paddingVertical: HEADER_PADDING
86 87
     }
87 88
 };
88 89
 

Loading…
Откажи
Сачувај