Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update navigation icon style to be more flat and apply to both web app and mobile app (#2462)

Leendert de Borst8ff1289dc1c8
diff --git a/apps/mobile-app/components/ui/SettingsHeader.tsx b/apps/mobile-app/components/ui/SettingsHeader.tsx
index 42365d8b1..79fedb7bf 100644
--- a/apps/mobile-app/components/ui/SettingsHeader.tsx
+++ b/apps/mobile-app/components/ui/SettingsHeader.tsx
@@ -1,5 +1,4 @@
import { Ionicons } from '@expo/vector-icons';
-import { LinearGradient } from 'expo-linear-gradient';
import React from 'react';
import { StyleSheet, View } from 'react-native';
@@ -38,19 +37,20 @@ export function SettingsHeader({ title, description, icon }: SettingsHeaderProps
lineHeight: 20,
textAlign: 'center',
},
- gradient: {
+ iconContainer: {
alignItems: 'center',
- borderRadius: 10,
+ alignSelf: 'center',
+ backgroundColor: colors.accentBackground,
+ borderColor: colors.accentBorder,
+ borderRadius: 14,
+ borderWidth: 1,
+ elevation: 1,
justifyContent: 'center',
padding: 16,
- },
- iconContainer: {
- alignItems: 'center',
- borderRadius: 10,
shadowColor: colors.black,
- shadowOffset: { width: 1, height: 4 },
- shadowOpacity: 0.4,
- shadowRadius: 2.84,
+ shadowOffset: { width: 0, height: 1 },
+ shadowOpacity: 0.08,
+ shadowRadius: 2,
},
title: {
color: colors.text,
@@ -66,14 +66,7 @@ export function SettingsHeader({ title, description, icon }: SettingsHeaderProps
return (
<View style={styles.container}>
<View style={styles.iconContainer}>
- <LinearGradient
- colors={[colors.loginHeader, colors.primary]}
- start={{ x: 0, y: 0 }}
- end={{ x: 1, y: 1 }}
- style={styles.gradient}
- >
- <Ionicons name={icon} size={48} color={colors.text} />
- </LinearGradient>
+ <Ionicons name={icon} size={48} color={colors.primary} />
</View>
<ThemedText style={styles.title}>{title}</ThemedText>
{description ? (
diff --git a/apps/web/src/components/layout/TopMenu.tsx b/apps/web/src/components/layout/TopMenu.tsx
index e52f59184..efcd2ada2 100644
--- a/apps/web/src/components/layout/TopMenu.tsx
+++ b/apps/web/src/components/layout/TopMenu.tsx
@@ -71,7 +71,7 @@ const TopMenu: React.FC = () => {
return (
<header>
<nav className="fixed z-30 w-full bg-white border-b border-gray-200 dark:bg-gray-800 dark:border-gray-700 py-3 px-4">
- <div className="flex justify-between items-center max-w-screen-2xl mx-auto relative">
+ <div className="flex justify-between items-center min-h-[42px] max-w-screen-2xl mx-auto relative">
<div className="flex flex-shrink-0 justify-start items-center relative">
<NavLink to="/" className="flex mr-0 sm:mr-4 lg:mr-8">
<img src="/img/logo-cropped.png" className="mr-3 h-8 w-10" alt="AliasVault Logo" />
diff --git a/apps/web/src/components/settings/SettingsPageHeader.tsx b/apps/web/src/components/settings/SettingsPageHeader.tsx
index a751f95df..69b8557a1 100644
--- a/apps/web/src/components/settings/SettingsPageHeader.tsx
+++ b/apps/web/src/components/settings/SettingsPageHeader.tsx
@@ -37,7 +37,7 @@ const SettingsPageHeader: React.FC<SettingsPageHeaderProps> = ({ icon, title, de
<span className="sr-only">{back.label}</span>
<svg className="w-5 h-5" fill="none" stroke="currentColor" strokeWidth={2} viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="M15 19l-7-7 7-7" /></svg>
</Link>
- <span className="flex-shrink-0 flex items-center justify-center w-12 h-12 rounded-xl bg-primary-50 text-primary-600 ring-1 ring-primary-100 dark:bg-primary-900/40 dark:text-primary-400 dark:ring-primary-900">
+ <span className="flex-shrink-0 flex items-center justify-center w-12 h-12 rounded-xl bg-white border border-gray-200 shadow-sm text-primary-600 dark:bg-gray-800 dark:border-gray-700 dark:text-primary-400">
<SettingsIcon name={icon} className="w-6 h-6" />
</span>
<div className="min-w-0">