CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

🐞Unexpected behaviour when changing themes

Open theMuslimDev opened this issue 4 years ago • 7 comments

Description

When changing the the theme from light to dark and vice versa. The editor uses the text colour expected in the previous theme. So if you were originally in light mode and went to dark mode. The text colour in the new dark mode can be seen as the original light mode text colour.

To Reproduce

  1. Go to Preferences
  2. Themes
  3. Choose light mode (or dark mode, depending on original theme)
  4. Wrong text colour observed
  5. Go to another tab (colour issue resolved)

Going from light mode Screenshot 2022-08-30 at 22 16 12

To dark mode: Screenshot 2022-08-30 at 22 16 24

Clicking on another tab causes the correct behaviour to be observed: Screenshot 2022-08-30 at 22 16 32

Expected behavior

Switching from light to dark and vice versa should be instant. No need to switch tabs for themes to update

Version information

CodeEdit: Version 1.0 (1) Hash: 0cfd746f96d1ce6c61e8942b262492aa02a583be MacOS: 12.3.1 Xcode: 13.4.1

Additional context

No response

theMuslimDev avatar Aug 30 '22 21:08 theMuslimDev

@thecoolwinter didn't you just fix this or did we miss something?

austincondiff avatar Aug 31 '22 08:08 austincondiff

Yes, this should be fixed. It was a change in CodeEditTextView

thecoolwinter avatar Aug 31 '22 14:08 thecoolwinter

Can anyone else replicate this?

theMuslimDev avatar Aug 31 '22 16:08 theMuslimDev

I can't replicate this, could you make sure you have the latest version of CodeEditTextView in your project? There's a chance Xcode didn't download the latest version.

thecoolwinter avatar Sep 02 '22 22:09 thecoolwinter

I've checked and my forked repo is up to date.

Screenshot 2022-09-03 at 10 47 28

I'm still seeing the same issue.

Screenshot 2022-09-03 at 10 47 35

theMuslimDev avatar Sep 03 '22 09:09 theMuslimDev

If anyone else can't replicate this. We can close it for now.

theMuslimDev avatar Sep 10 '22 17:09 theMuslimDev

I was able to replicate this but I updated my packages to the latest version, rebuilt and it was resolved. @thecoolwinter fixed this a while ago so I will close this issue. Please not that #714 is still open which is related to this.

austincondiff avatar Sep 10 '22 18:09 austincondiff