שינוי צבע סרגל התחתון של הנייד

Is there an easy way to change the bottom bar colour on android phones. Currently on dark palletes its white and the controls are also very light so hard to see.

No repro with Chrome:

Could you share a bit more detail so we can look into this properly? Specifically:

  • which smartphone model are you using?
  • which Android version is it running?
  • which browser (and version) are you using to access the site?
  • are you using the PWA, or perhaps the DiscourseHub app?

Using the pwa

Samsung galaxy s20 ultra

Hello :waving_hand:

I think that’s because your device is not in dark mode. The bottom navigation bar is a native Android element, and Discourse doesn’t modify it, so its color matches your device settings.

4 לייקים

When i visit any other website or app it changes. Its only discourse

Discourse works in the chrome browser actually and does use rhe colours from the pallette. Its just the pwa that it doesnt work on

2 לייקים

Are you sure about that?

Switching light/dark theme properly changes the navigation bar color on my Galaxy S23.

זה לא חבר, זה משתמש בצבע מהערכה או ממה שהאתר אומר לו.

Just done a test and it indeed uses the palettes background colour to change the bottom bar. The pwa is the issue on any discourse sites i use

כפי שדון אמר, המכשיר שלך מוגדר למצב בהיר, לא למצב כהה. עם זאת, הבעיה שדיווחת נראית שמתרחשת רק בעת שימוש ב-PWA, בעוד שהיא אינה מתרחשת בעת גישה לפורום במצב כהה דרך דפדפן.

זה לא משנה אם זה מוגדר לבהיר או כהה בכל אתר או אפליקציה אחרת שאני משתמש בה, מכיוון שהוא משתמש בצבעים שהוגדרו על ידי האתר או האפליקציה.

Here are some more examples.

הבעיה מתרחשת רק ב-PWA מכיוון ש-Android קובע את צבעי סרגל המערכת בהתבסס על קובץ ה-manifest של האתר, ולא על ערכת הנושא או ה-CSS של הדף.

באתר העסק המארח שלך, אין דרך ללקוחות לשנות זאת. יש להגיש את ה-manifest מ-תחום השורש של האתר. כל ניסיון לטעון manifest מותאם אישית ממקור חיצוני, או להזריק אותו דרך ערכת נושא או JS, נחסם על ידי מדיניות אבטחת התוכן (Content Security Policy) של האתר, ולכן הם לא יעבדו.

שינוי צבע סרגל המערכת של ה-PWA אינו משהו שניתן לעשות מצדך.

2 לייקים

אז אתה אומר שה-pwa חסר תועלת? כי אי אפשר לראות את כפתור החזרה ואת הכפתורים בתחתית.\n\n כמו כן, אם זה המצב, איך החלק העליון של המסך משתנה לצבעים הנכונים שבהם השעון והאות וכו’? בטח אם זה משתנה צבע, המניפסט יכול לעשות את זה?

Honestly, I don’t know why your buttons are so light. I don’t have this problem on my S Ultra 22.

In any case, I will open an internal discussion on this matter, since we are currently working on color schemes.

האם תוכל לנסות להתקין את ה-pwa כאן
Https://www.carptalk.org

Out of curiosity: which variable did you change in the colour palette?

Its only on Discoure they are like this. Any other site is fine.

מעניין מספיק, בעת התקנת ה-PWA ב-iOS, אין לי כלל סרגל תחתון… האם יש כאן התאמה אישית כלשהי?

הצבע המשני. אני יכול לשנות בקלות את צבע הפס ואת החלק העליון