about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-01-16 17:21:35 -0600
committerPaul Frazee <pfrazee@gmail.com>2023-01-16 17:21:35 -0600
commitdac9bc24d13946b6264f1f24b2a64210f9350d6e (patch)
treed95c981b60dc4ad72a86502fd30054a102240746 /src
parent46a8dbdee1dc3640de326ee552a71f7c360e4077 (diff)
downloadvoidsky-dac9bc24d13946b6264f1f24b2a64210f9350d6e.tar.zst
Enlarge the view header
Diffstat (limited to 'src')
-rw-r--r--src/view/com/util/ViewHeader.tsx34
1 files changed, 14 insertions, 20 deletions
diff --git a/src/view/com/util/ViewHeader.tsx b/src/view/com/util/ViewHeader.tsx
index e46270718..a4c44c126 100644
--- a/src/view/com/util/ViewHeader.tsx
+++ b/src/view/com/util/ViewHeader.tsx
@@ -54,13 +54,13 @@ export const ViewHeader = observer(function ViewHeader({
         style={canGoBack ? styles.backIcon : styles.backIconWide}>
         {canGoBack ? (
           <FontAwesomeIcon
-            size={18}
+            size={24}
             icon="angle-left"
-            style={[{marginTop: 6}, pal.text]}
+            style={[{marginTop: 8}, pal.text]}
           />
         ) : (
           <UserAvatar
-            size={30}
+            size={40}
             handle={store.me.handle}
             displayName={store.me.displayName}
             avatar={store.me.avatar}
@@ -68,12 +68,12 @@ export const ViewHeader = observer(function ViewHeader({
         )}
       </TouchableOpacity>
       <View style={styles.titleContainer} pointerEvents="none">
-        <Text type="h4" style={pal.text}>
+        <Text type="h3" style={pal.text}>
           {title}
         </Text>
         {subtitle ? (
           <Text
-            type="h5"
+            type="h4"
             style={[styles.subtitle, pal.textLight, {fontWeight: 'normal'}]}
             numberOfLines={1}>
             {subtitle}
@@ -83,34 +83,28 @@ export const ViewHeader = observer(function ViewHeader({
       <TouchableOpacity
         onPress={onPressSearch}
         hitSlop={HITSLOP}
-        style={[
-          styles.btn,
-          {backgroundColor: pal.colors.backgroundLight, marginLeft: 4},
-        ]}>
-        <MagnifyingGlassIcon size={18} strokeWidth={3} style={pal.text} />
+        style={[styles.btn, {marginLeft: 4}]}>
+        <MagnifyingGlassIcon size={26} strokeWidth={3} style={pal.text} />
       </TouchableOpacity>
       {!store.session.online ? (
         <TouchableOpacity
-          style={[
-            styles.btn,
-            {backgroundColor: pal.colors.backgroundLight, marginLeft: 4},
-          ]}
+          style={[styles.btn, {marginLeft: 4}]}
           onPress={onPressReconnect}>
           {store.session.attemptingConnect ? (
             <ActivityIndicator />
           ) : (
             <>
-              <FontAwesomeIcon icon="signal" style={pal.text} size={16} />
+              <FontAwesomeIcon icon="signal" style={pal.text} size={23} />
               <FontAwesomeIcon
                 icon="x"
                 style={{
-                  backgroundColor: pal.colors.backgroundLight,
+                  backgroundColor: pal.colors.background,
                   color: theme.palette.error.background,
                   position: 'absolute',
-                  right: 7,
+                  right: 0,
                   bottom: 7,
                 }}
-                size={8}
+                size={10}
               />
             </>
           )}
@@ -139,8 +133,8 @@ const styles = StyleSheet.create({
     maxWidth: 200,
   },
 
-  backIcon: {width: 30, height: 30},
-  backIconWide: {width: 40, height: 30},
+  backIcon: {width: 40, height: 40},
+  backIconWide: {width: 50, height: 40},
   btn: {
     flexDirection: 'row',
     alignItems: 'center',