Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash on macOS when launching TACL a second time + fix dark theme support #2

Merged
merged 4 commits into from
Aug 25, 2022

Conversation

RandomByte
Copy link
Contributor

Issue 1

Apparently I set the exist_ok flag for makedirs incorrectly, which leads to TACL-GUI crashing on macOS when launched a second time (since the directory already exists):
Screenshot 2022-08-24 at 14 16 58

Issue 2

In addition, we noticed that the labels in the "Database Info" component become unreadable when setting the system theme to "dark" (I highlighted the database path by selecting it with the cursor):
Screenshot 2022-08-12 at 14 40 54

I suspect that the same issue shows on other OS' with dark themes, like Windows or Ubuntu. To resolve this quickly, I changed the label styling from setting a white background color to setting a border. But please feel free to implement a different solution!

Screenshot 2022-08-24 at 17 37 50

Screenshot 2022-08-24 at 17 37 55

I uploaded the ZIP-archive with the updated macOS build based on this PR again to my Dropbox: https://www.dropbox.com/s/gmc6uvvtayowbfh/TACL-GUI.Darwin.zip?dl=0

Missed spotting this rather obvious mistake. Launching TACL-GUI twice on
the same machine will lead to an error "File exists".

Changed the relevant "exist_ok" option to True
Hardcoded white background clashes with dark system themes, which
typically change the text color to white.

Tested on macOS, but I suspect the same issue on other OS which dark
themes, like Windows and Ubuntu.
@rolait
Copy link
Owner

rolait commented Aug 24, 2022

@RandomByte Thank you again (also for the nice screenshots)! I tried it with Ubuntu, but the dark theme does not seem to affect the GUI as it does on Mac (it looks the same). Instead of changing the background color: does setting the text color explicitly to black (#000) also resolve this issue, or is the text color still white and unreadable? Unfortunately, I don't have a Mac and am not able test it by myself. If not, your solution would also be fine.

@RandomByte
Copy link
Contributor Author

Good idea! That looks rather decent with both themes 👍

Here it is in dark mode:

Screenshot 2022-08-25 at 09 51 38

Updated the macOS build again here: https://www.dropbox.com/s/gmc6uvvtayowbfh/TACL-GUI.Darwin.zip?dl=0

@rolait rolait merged commit 8e309ff into rolait:main Aug 25, 2022
@rolait
Copy link
Owner

rolait commented Aug 25, 2022

Merged, thank you!

@RandomByte RandomByte deleted the fix-create-dir branch August 26, 2022 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants