Skip to content

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

Update modal colors (#2159)

Leendert de Borste4ae1f8dedc7
diff --git a/apps/mobile-app/components/common/ConfirmDialog.tsx b/apps/mobile-app/components/common/ConfirmDialog.tsx
index 984a1096f..b0894e68c 100644
--- a/apps/mobile-app/components/common/ConfirmDialog.tsx
+++ b/apps/mobile-app/components/common/ConfirmDialog.tsx
@@ -138,7 +138,7 @@ export const ConfirmDialog: React.FC<IConfirmDialogProps> = ({
baseStyle.push({ backgroundColor: colors.destructive } as ViewStyle);
} else if (button.style === 'cancel') {
baseStyle.push({
- backgroundColor: colors.accentBackground,
+ backgroundColor: colors.modalSurfaceRaised,
borderColor: colors.accentBorder,
borderWidth: 1,
} as ViewStyle);
diff --git a/apps/mobile-app/components/common/ModalWrapper.tsx b/apps/mobile-app/components/common/ModalWrapper.tsx
index e45d75e57..d58c8226d 100644
--- a/apps/mobile-app/components/common/ModalWrapper.tsx
+++ b/apps/mobile-app/components/common/ModalWrapper.tsx
@@ -93,7 +93,7 @@ export const ModalWrapper: React.FC<IModalWrapperProps> = ({
justifyContent: 'center',
},
container: {
- backgroundColor: colors.background,
+ backgroundColor: colors.modalSurface,
borderColor: colors.accentBorder,
borderRadius: 12,
borderWidth: 1,
diff --git a/apps/mobile-app/components/folders/DeleteFolderModal.tsx b/apps/mobile-app/components/folders/DeleteFolderModal.tsx
index ca5bd3510..87d59a86e 100644
--- a/apps/mobile-app/components/folders/DeleteFolderModal.tsx
+++ b/apps/mobile-app/components/folders/DeleteFolderModal.tsx
@@ -67,7 +67,7 @@ export const DeleteFolderModal: React.FC<IDeleteFolderModalProps> = ({
const styles = StyleSheet.create({
cancelButton: {
alignItems: 'center',
- backgroundColor: colors.accentBackground,
+ backgroundColor: colors.modalSurfaceRaised,
borderColor: colors.accentBorder,
borderRadius: 8,
borderWidth: 1,
diff --git a/apps/mobile-app/components/folders/FolderModal.tsx b/apps/mobile-app/components/folders/FolderModal.tsx
index aa808062a..33fc6ea21 100644
--- a/apps/mobile-app/components/folders/FolderModal.tsx
+++ b/apps/mobile-app/components/folders/FolderModal.tsx
@@ -81,7 +81,7 @@ export const FolderModal: React.FC<IFolderModalProps> = ({
fontWeight: '500',
},
input: {
- backgroundColor: colors.accentBackground,
+ backgroundColor: colors.modalSurfaceRaised,
borderColor: colors.accentBorder,
borderRadius: 8,
borderWidth: 1,
diff --git a/apps/mobile-app/components/form/AddFieldMenu.tsx b/apps/mobile-app/components/form/AddFieldMenu.tsx
index 67d1737d0..fa85208e0 100644
--- a/apps/mobile-app/components/form/AddFieldMenu.tsx
+++ b/apps/mobile-app/components/form/AddFieldMenu.tsx
@@ -137,7 +137,7 @@ export const AddFieldMenu: React.FC<AddFieldMenuProps> = ({
marginLeft: 8,
},
menuContainer: {
- backgroundColor: colors.background,
+ backgroundColor: colors.modalSurface,
borderColor: colors.accentBorder,
borderRadius: 12,
borderWidth: 1,
diff --git a/apps/mobile-app/components/form/CustomFieldModal.tsx b/apps/mobile-app/components/form/CustomFieldModal.tsx
index 89a1614fc..7a13395c1 100644
--- a/apps/mobile-app/components/form/CustomFieldModal.tsx
+++ b/apps/mobile-app/components/form/CustomFieldModal.tsx
@@ -94,7 +94,7 @@ export const CustomFieldModal: React.FC<CustomFieldModalProps> = ({
backgroundColor: colors.primary,
},
buttonSecondary: {
- backgroundColor: colors.accentBackground,
+ backgroundColor: colors.modalSurfaceRaised,
borderColor: colors.accentBorder,
borderWidth: 1,
},
@@ -108,7 +108,7 @@ export const CustomFieldModal: React.FC<CustomFieldModalProps> = ({
color: colors.text,
},
input: {
- backgroundColor: colors.accentBackground,
+ backgroundColor: colors.modalSurfaceRaised,
borderColor: colors.accentBorder,
borderRadius: 8,
borderWidth: 1,
@@ -125,7 +125,7 @@ export const CustomFieldModal: React.FC<CustomFieldModalProps> = ({
marginBottom: 8,
},
fieldTypeChip: {
- backgroundColor: colors.accentBackground,
+ backgroundColor: colors.modalSurfaceRaised,
borderColor: colors.accentBorder,
borderRadius: 16,
borderWidth: 1,
diff --git a/apps/mobile-app/components/form/PasswordGeneratorPanel.tsx b/apps/mobile-app/components/form/PasswordGeneratorPanel.tsx
index a04f2b749..41aaa3cfa 100644
--- a/apps/mobile-app/components/form/PasswordGeneratorPanel.tsx
+++ b/apps/mobile-app/components/form/PasswordGeneratorPanel.tsx
@@ -109,13 +109,13 @@ export function PasswordGeneratorPanel({ initialSettings, onSettingsChange, onPr
const styles = useMemo(() => StyleSheet.create({
card: {
- backgroundColor: colors.accentBackground,
+ backgroundColor: colors.modalSurfaceRaised,
borderRadius: 10,
marginBottom: 16,
paddingHorizontal: 16,
},
chip: {
- backgroundColor: colors.background,
+ backgroundColor: colors.modalSurface,
borderColor: colors.accentBorder,
borderRadius: 6,
borderWidth: 1,
@@ -172,7 +172,7 @@ export function PasswordGeneratorPanel({ initialSettings, onSettingsChange, onPr
},
previewContainer: {
alignItems: 'center',
- backgroundColor: colors.accentBackground,
+ backgroundColor: colors.modalSurfaceRaised,
borderColor: colors.accentBorder,
borderRadius: 6,
borderWidth: 1,
@@ -235,7 +235,7 @@ export function PasswordGeneratorPanel({ initialSettings, onSettingsChange, onPr
backgroundColor: colors.primary,
},
tabRow: {
- backgroundColor: colors.accentBackground,
+ backgroundColor: colors.modalSurfaceRaised,
borderRadius: 10,
flexDirection: 'row',
marginBottom: 16,
@@ -256,7 +256,7 @@ export function PasswordGeneratorPanel({ initialSettings, onSettingsChange, onPr
paddingVertical: 10,
},
valuePill: {
- backgroundColor: colors.background,
+ backgroundColor: colors.modalSurface,
borderColor: colors.accentBorder,
borderRadius: 6,
borderWidth: 1,
diff --git a/apps/mobile-app/components/items/ConfirmDeleteModal.tsx b/apps/mobile-app/components/items/ConfirmDeleteModal.tsx
index 10403476c..342734ab0 100644
--- a/apps/mobile-app/components/items/ConfirmDeleteModal.tsx
+++ b/apps/mobile-app/components/items/ConfirmDeleteModal.tsx
@@ -62,7 +62,7 @@ export const ConfirmDeleteModal: React.FC<IConfirmDeleteModalProps> = ({
},
cancelButton: {
alignItems: 'center',
- backgroundColor: colors.accentBackground,
+ backgroundColor: colors.modalSurfaceRaised,
borderColor: colors.accentBorder,
borderRadius: 8,
borderWidth: 1,
diff --git a/apps/mobile-app/components/items/FieldHistoryModal.tsx b/apps/mobile-app/components/items/FieldHistoryModal.tsx
index 9b88d7c0c..a5d23b645 100644
--- a/apps/mobile-app/components/items/FieldHistoryModal.tsx
+++ b/apps/mobile-app/components/items/FieldHistoryModal.tsx
@@ -166,7 +166,7 @@ const FieldHistoryModal: React.FC<FieldHistoryModalProps> = ({
fontSize: 14,
},
historyItem: {
- backgroundColor: colors.accentBackground,
+ backgroundColor: colors.modalSurfaceRaised,
borderColor: colors.accentBorder,
borderRadius: 8,
borderWidth: 1,
@@ -211,7 +211,7 @@ const FieldHistoryModal: React.FC<FieldHistoryModalProps> = ({
},
closeButton: {
alignItems: 'center',
- backgroundColor: colors.accentBackground,
+ backgroundColor: colors.modalSurfaceRaised,
borderColor: colors.accentBorder,
borderRadius: 8,
borderWidth: 1,
diff --git a/apps/mobile-app/constants/Colors.ts b/apps/mobile-app/constants/Colors.ts
index 4f2c799b2..e191d2e52 100644
--- a/apps/mobile-app/constants/Colors.ts
+++ b/apps/mobile-app/constants/Colors.ts
@@ -32,6 +32,8 @@ export const Colors = {
red: '#ff0000',
black: '#000000',
modalBackground: 'rgba(0, 0, 0, 0.5)',
+ modalSurface: '#f3f2f7',
+ modalSurfaceRaised: '#ffffff',
success: '#10B981',
successBackground: '#dcfce7',
warning: '#d97706',
@@ -68,6 +70,8 @@ export const Colors = {
red: '#ff0000',
black: '#000000',
modalBackground: 'rgba(88, 88, 88, 0.5)',
+ modalSurface: '#1c1c1e',
+ modalSurfaceRaised: '#2c2c2e',
success: '#10B981',
successBackground: '#1a3d2b',
warning: '#f59e0b',
diff --git a/apps/mobile-app/i18n/locales/en.json b/apps/mobile-app/i18n/locales/en.json
index 564f70d6a..1005d6e90 100644
--- a/apps/mobile-app/i18n/locales/en.json
+++ b/apps/mobile-app/i18n/locales/en.json
@@ -647,6 +647,29 @@
"itemRestored": "Item restored",
"itemDeleted": "Item permanently deleted",
"allItemsDeleted": "All items permanently deleted"
+ },
+ "logo": {
+ "chooseLogo": "Choose icon",
+ "currentLogo": "Current icon",
+ "builtinLogos": "Icon library",
+ "fetchFromWebsite": "Fetch icon from website",
+ "refetchFromWebsite": "(Re)fetch icon from website",
+ "sourceFavicon": "From {{domain}}",
+ "sourceBuiltin": "Built-in icon",
+ "sourceCustom": "Custom icon",
+ "sourceNone": "No icon",
+ "builtin": {
+ "Shopping": "Shopping",
+ "Bank": "Banking",
+ "Mail": "Mail",
+ "Social": "Social",
+ "Work": "Work",
+ "Game": "Games",
+ "Media": "Media",
+ "Travel": "Travel",
+ "Health": "Health",
+ "Dev": "Development"
+ }
}
},
"emails": {