From 796e12b4ac99f7aec10017de6d9ff8489df49d3a Mon Sep 17 00:00:00 2001 From: Lance Chant <13349722+lancechant@users.noreply.github.com> Date: Tue, 26 May 2026 14:24:37 +0200 Subject: [PATCH] Chore: fix the storage reading and search colour Fixed the storage calc to be GB instead of GIB so changed to 1000 instead of 1024 Changed some of the search colours Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com> --- app/(auth)/(tabs)/(search)/index.tsx | 5 ++++- augmentations/number.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/(auth)/(tabs)/(search)/index.tsx b/app/(auth)/(tabs)/(search)/index.tsx index 5c486866..bc431bca 100644 --- a/app/(auth)/(tabs)/(search)/index.tsx +++ b/app/(auth)/(tabs)/(search)/index.tsx @@ -305,6 +305,9 @@ export default function search() { }, hideWhenScrolling: false, autoFocus: false, + // Android: placeholder and icon color + hintTextColor: "#fff", + headerIconColor: "#fff", }, }); }, [navigation]); @@ -938,7 +941,7 @@ export default function search() { ) : debouncedSearch.length === 0 ? ( - + {exampleSearches.map((e) => ( { diff --git a/augmentations/number.ts b/augmentations/number.ts index 11c0837d..bef44ac5 100644 --- a/augmentations/number.ts +++ b/augmentations/number.ts @@ -11,7 +11,7 @@ Number.prototype.bytesToReadable = function (decimals = 2) { const bytes = this.valueOf(); if (bytes === 0) return "0 Bytes"; - const k = 1024; + const k = 1000; const dm = decimals < 0 ? 0 : decimals; const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];