oliexdev / openScale

Open-source weight and body metrics tracker, with support for Bluetooth scales
GNU General Public License v3.0
1.68k stars 292 forks source link

entering date of birth of a new user does not work well #994

Open FransM opened 11 months ago

FransM commented 11 months ago

Describe the bug I freshly installed openscale and wanted to add a user. Entering the date of birth seemed impossible. See below for what I did.

To Reproduce Steps to reproduce the behavior:

  1. Go to add new user
  2. try to modify the date
  3. this gives a calendar widget on which I selected a date
  4. This date is shown on the left of the calendar
  5. It is totally unclear how to get back to the new user form with the new date; pressing back did not work (it kept the default date being the day of entry 20 years ago). There is also a small pencil at the left, that takes over the date but still I cannot get back to the form without loosing the date

Reproduced with latest dev version: v2.5.2(64) (F-droid version as of sep 29, 2023)

Expected behavior I expected one of the following:

Additional context Hardware: samsung A10 (2016) running LineageOS 19 (Android 12)

Note that at some point (with select all and copy) I was able to copy the date, but I really have no clue how I did this.

FransM commented 11 months ago

Updating above PR Afterwards I installed the development version on my Pixel 6A For that I did get the cancel/ok button on the date picker. No idea why this does not show on the Samsung A10 tablet.

EDIT: here is the screenshot of the tablet Screenshot_20230929-202845_Trebuchet

FransM commented 11 months ago

I found the cause, my tablet was in "dark theme" giving the date picker a very dark background on which the buttons cancel/ok were only visible when the brightness is high.

I was about to close this ticket but then I realized I did not have this issue in other apps or in the control panel. When I went to the control panel and want to change the time the ok and cancel button have a turquoise-like color.

Speculation: Maybe the issue is caused because the app does use black to render the texts instead of some system color. So I reopened the ticket so someone can verify if there is something that can be done here.

(I"ll see if I can find something myself but I am not really a java wizard and not familiar with the program at all)

FransM commented 11 months ago

I have been browsing the code and it seems related to theming.

In themes.xml there is this line