Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

fix(mobile): bug fix

daniel31x13ee8a6634f03b
diff --git a/apps/mobile/android/app/src/main/res/values-night/colors.xml b/apps/mobile/android/app/src/main/res/values-night/colors.xml
index 3c05de5b..c08abe84 100644
--- a/apps/mobile/android/app/src/main/res/values-night/colors.xml
+++ b/apps/mobile/android/app/src/main/res/values-night/colors.xml
@@ -1 +1,3 @@
-<resources/>
\ No newline at end of file
+<resources>
+ <color name="colorBase">#ffffff</color>
+</resources>
\ No newline at end of file
diff --git a/apps/mobile/android/app/src/main/res/values/colors.xml b/apps/mobile/android/app/src/main/res/values/colors.xml
index f387b901..d86b9d56 100644
--- a/apps/mobile/android/app/src/main/res/values/colors.xml
+++ b/apps/mobile/android/app/src/main/res/values/colors.xml
@@ -3,4 +3,5 @@
<color name="iconBackground">#ffffff</color>
<color name="colorPrimary">#023c69</color>
<color name="colorPrimaryDark">#ffffff</color>
+ <color name="colorBase">#000000</color>
</resources>
\ No newline at end of file
diff --git a/apps/mobile/android/app/src/main/res/values/styles.xml b/apps/mobile/android/app/src/main/res/values/styles.xml
index d8e877b2..dcdd305a 100644
--- a/apps/mobile/android/app/src/main/res/values/styles.xml
+++ b/apps/mobile/android/app/src/main/res/values/styles.xml
@@ -1,6 +1,6 @@
<resources xmlns:tools="http://schemas.android.com/tools">
- <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
- <item name="android:textColor">@android:color/black</item>
+ <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
+ <item name="android:textColor">@color/colorBase</item>
<item name="android:editTextStyle">@style/ResetEditText</item>
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
<item name="colorPrimary">@color/colorPrimary</item>
@@ -10,7 +10,7 @@
<style name="ResetEditText" parent="@android:style/Widget.EditText">
<item name="android:padding">0dp</item>
<item name="android:textColorHint">#c8c8c8</item>
- <item name="android:textColor">@android:color/black</item>
+ <item name="android:textColor">@color/colorBase</item>
</style>
<style name="Theme.App.SplashScreen" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@color/splashscreen_background</item>
diff --git a/apps/mobile/app/(tabs)/dashboard/_layout.tsx b/apps/mobile/app/(tabs)/dashboard/_layout.tsx
index 63a074a6..7a6deb19 100644
--- a/apps/mobile/app/(tabs)/dashboard/_layout.tsx
+++ b/apps/mobile/app/(tabs)/dashboard/_layout.tsx
@@ -22,6 +22,7 @@ export default function RootLayout() {
headerLargeStyle: {
backgroundColor: rawTheme[colorScheme as ThemeName]["base-100"],
},
+ navigationBarColor: rawTheme[colorScheme as ThemeName]["base-200"],
headerStyle: {
backgroundColor:
Platform.OS === "ios"
diff --git a/apps/mobile/app/(tabs)/links/_layout.tsx b/apps/mobile/app/(tabs)/links/_layout.tsx
index aaf48bb4..3ef50d05 100644
--- a/apps/mobile/app/(tabs)/links/_layout.tsx
+++ b/apps/mobile/app/(tabs)/links/_layout.tsx
@@ -30,6 +30,7 @@ export default function RootLayout() {
headerLargeStyle: {
backgroundColor: rawTheme[colorScheme as ThemeName]["base-100"],
},
+ navigationBarColor: rawTheme[colorScheme as ThemeName]["base-200"],
headerStyle: {
backgroundColor:
Platform.OS === "ios"
diff --git a/apps/mobile/app/(tabs)/settings/_layout.tsx b/apps/mobile/app/(tabs)/settings/_layout.tsx
index fef1f05a..a69aa183 100644
--- a/apps/mobile/app/(tabs)/settings/_layout.tsx
+++ b/apps/mobile/app/(tabs)/settings/_layout.tsx
@@ -19,6 +19,7 @@ export default function RootLayout() {
headerLargeStyle: {
backgroundColor: rawTheme[colorScheme as ThemeName]["base-100"],
},
+ navigationBarColor: rawTheme[colorScheme as ThemeName]["base-200"],
headerStyle: {
backgroundColor:
Platform.OS === "ios"
diff --git a/apps/mobile/app/(tabs)/settings/index.tsx b/apps/mobile/app/(tabs)/settings/index.tsx
index 463c84a9..d02558c1 100644
--- a/apps/mobile/app/(tabs)/settings/index.tsx
+++ b/apps/mobile/app/(tabs)/settings/index.tsx
@@ -25,7 +25,6 @@ export default function SettingsScreen() {
);
useEffect(() => {
- console.log(colorScheme);
setColorScheme(override);
}, [override]);
diff --git a/apps/mobile/app/_layout.tsx b/apps/mobile/app/_layout.tsx
index dea0d59f..8fd43dce 100644
--- a/apps/mobile/app/_layout.tsx
+++ b/apps/mobile/app/_layout.tsx
@@ -43,7 +43,7 @@ export default function RootLayout() {
<Stack
screenOptions={{
navigationBarColor:
- rawTheme[colorScheme as ThemeName]["base-200"],
+ rawTheme[colorScheme as ThemeName]["base-100"],
statusBarStyle: Platform.OS === "android" ? "dark" : undefined,
headerShown: false,
contentStyle: {