about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-02-25 11:12:38 -0800
committerGitHub <noreply@github.com>2025-02-25 11:12:38 -0800
commit22aee9704cae44435c8cc6d6536130b50b840fda (patch)
treef2f69d3774949619e0126aead890e8ab818b17d3 /src
parent3409a725484a5560a14987c03db7720a02834e06 (diff)
downloadvoidsky-22aee9704cae44435c8cc6d6536130b50b840fda.tar.zst
improve toasts on oled dark mode (#7842)
Diffstat (limited to 'src')
-rw-r--r--src/view/com/util/Toast.tsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/view/com/util/Toast.tsx b/src/view/com/util/Toast.tsx
index c60288674..b18ea4b4f 100644
--- a/src/view/com/util/Toast.tsx
+++ b/src/view/com/util/Toast.tsx
@@ -171,7 +171,7 @@ function Toast({
             onAccessibilityEscape={hideAndDestroyImmediately}
             style={[
               a.flex_1,
-              t.atoms.bg,
+              t.name === 'dark' ? t.atoms.bg_contrast_25 : t.atoms.bg,
               a.shadow_lg,
               t.atoms.border_contrast_medium,
               a.rounded_sm,
@@ -185,9 +185,14 @@ function Toast({
                     a.flex_shrink_0,
                     a.rounded_full,
                     {width: 32, height: 32},
-                    {backgroundColor: t.palette.primary_50},
                     a.align_center,
                     a.justify_center,
+                    {
+                      backgroundColor:
+                        t.name === 'dark'
+                          ? t.palette.black
+                          : t.palette.primary_50,
+                    },
                   ]}>
                   <FontAwesomeIcon
                     icon={icon}