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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悶 Auto change theme is not working properly #1746

Open
evrensen467 opened this issue Jun 3, 2024 · 12 comments
Open

馃悶 Auto change theme is not working properly #1746

evrensen467 opened this issue Jun 3, 2024 · 12 comments
Labels
bug Something isn't working theme triage needed

Comments

@evrensen467
Copy link

Description

hi, there seems to be something wrong with the auto change theme mode, it keeps putting dark mode when i have light mode enabled, i have to manually turn it off and on again for it to detect light mode.

To Reproduce

I'm not sure how you can reproduce this

Expected Behavior

To detect my systems preffered theme mode when I start up the app

Version Information

CodeEdit: Version 0.1.0-alpha (38)
macOS: 14.5 (23F79)

Additional Context

No response

Screenshots

Screen.Recording.2024-06-03.at.17.19.23.mov
@evrensen467 evrensen467 added the bug Something isn't working label Jun 3, 2024
@webbrowser11
Copy link

i am on windows so i can not fix it but if someone else has a branch and uses macOS i might be able to get in contact about this issue.

@evrensen467
Copy link
Author

im up to it if you know what do (because I have no idea), might be fun for me to watch you do it as i might learn something.

@webbrowser11
Copy link

is it a setting?

so i don't see anything in the themes folder if its a setting that might connect to a config folder so... tell me if its a setting in the meanwhile i will look through some more files.

@evrensen467
Copy link
Author

the "automatically change theme based on system appearance" is a setting, if that's what you're asking for.

@evrensen467
Copy link
Author

Should find something at CodeEdit/Features/Settings/ThemeSettings

@evrensen467
Copy link
Author

It's very hard to reproduce though, just ran a clean build of code edit and the editor pane and the terminal pane was light mode while the rest was dark mode, the detect system appearance option was enabled, I reenabled it and it solved it. I quit Xcode, cleaned the build directory, and ran a clean build again but this time it worked.

@webbrowser11
Copy link

https://github.com/CodeEditApp/CodeEdit/tree/main/CodeEdit/Features/Settings/Pages/ThemeSettings
found it! i dont see ANYTHING that has to do with automation yet but i am looking!

@webbrowser11
Copy link

i only found a few things to fix here but i do not know if anything here is what matches your bug, but this:
/// Use the system background that matches the appearance setting var useThemeBackground: Bool = true
that is the only thing that controls this other then the SYSTEM FILE that controls the exact same thing. so something may be wrong with that i may fork this to fix my new script that should fix some errors but not necessarily the bug you are looking to fix.

@webbrowser11
Copy link

here is my fixed

@webbrowser11
Copy link

i am not sure if that is what you were looking to fix so i am NOT making a pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working theme triage needed
Projects
Status: 馃啎 New
Development

No branches or pull requests

2 participants