Skip to content

Dark Mode Issue - Clean Theme #57

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

Closed
mansoorih opened this issue Jul 25, 2024 · 25 comments · Fixed by cuzy-app/clean-theme#25
Closed

Dark Mode Issue - Clean Theme #57

mansoorih opened this issue Jul 25, 2024 · 25 comments · Fixed by cuzy-app/clean-theme#25

Comments

@mansoorih
Copy link

Hi Felix,

I few months back, I had reported dark mode issue when an update to Clean theme had been rolled out. There was an update provided back then and it resolved. However, with the most latest updated to the Clean Theme once again the issue has resurfaced. I have Clean Theme and Dark Mode Module installed. It's almost impossible to read. Please see screenshot.

image

@mansoorih
Copy link
Author

image
One more screenshot

@marc-farre
Copy link
Contributor

@mansoorih Thanks for reporting this issue.

I'm aware of it, but I'm missing time to support the dark mode for this Clean Theme module.

It's because of the new Clean Theme module configuration, which allows choosing the theme colors.

Maybe we should add colors for dark mode, like it was done for the Flex theme: https://github.com/felixhahnweilheim/humhub-flex-theme

Or automatically generate dark colors from the selected light colors.

Since it's a free module, feel free to participate in the code, or pay a developer for it, or make a donation that could help us work on it.

@mansoorih
Copy link
Author

Thanks for sharing the update. Sadly, I'm not a developer, so would be unable to contribute to the code. Being a free website with just 135+ members, I have collected just $50 donations this year. So unfortunately, I can't pay a developer or donate for theme development. I still have to collect some more funds to renew modules that expired last month.

@mansoorih
Copy link
Author

The last application code I wrote was back in 1997. There was no PHP back then. I wish I could have had a chance to continue coding.

@marc-farre
Copy link
Contributor

@mansoorih thanks, I understand of course.

I personally prefer spending time on working to integrate the Bootstrap 5.3 native dark mode: #56 (comment)

@mansoorih
Copy link
Author

Appreciate for sharing the active conversation update on this topic, @marc-farre.

@felixhahnweilheim
Copy link
Owner

Just for your information, using HumHub (dark) in the Dark Mode module settings looks a bit better than clean-theme (dark). But this is only a temporary thing.

I will see if I can create a PR to fix the issue next week.
Making the dark mode colors also configurable would be the best option but probably too much effort (for a free module).

@mansoorih
Copy link
Author

Yes, HumHub default theme in dark mode works. However, I personally liked the Clean Theme, since it gives a wider screen canvas and spacing compared to the default HumHub theme which I think shrinks the width to 1024 pixels.

@felixhahnweilheim
Copy link
Owner

fixed in cuzy-app/clean-theme#24

@marc-farre
Copy link
Contributor

@felixhahnweilheim Thank you very much, great job!
I've released version 2.0.3: https://github.com/cuzy-app/clean-theme/releases/tag/2.0.3

I have removed CSS about the #topbar-first and #topbar-second as they don't exist on the Clean theme and added CSS for the bottom bar because it wasn't contrasted enough:
https://github.com/cuzy-app/clean-theme/blob/master/themes/Clean/css/dark.css#L77-L90

I also removed the dark CSS non minimized because the gain was only 2 Kb and since there is no automatic minifier in the compiler script, I though we might forget to compile it. Moreover, each time I save the file with phpStorm it refactors the file (unminimizes)...

@mansoorih
Copy link
Author

Gents, thanks, I upgraded Clean Theme, but looks like something still missing.. just for me to double-check, I had the Clean Theme under Appearance selected, and Clean Dark under the Dark Mode module selected.
image

@marc-farre
Copy link
Contributor

@mansoorih thanks for sharing.
I've also seen small issues here:
image

Maybe we should list them all, and when someone has time to fix them, I'll release a new version of the module.

@mansoorih
Copy link
Author

image
image
image

Few more screenshots to add to the list.

@marc-farre
Copy link
Contributor

@mansoorih @felixhahnweilheim I've released version 2.0.4 which fixes dark colors

@mansoorih
Copy link
Author

Thanks, just updated and will check all places. Just did a quick check with Reactions module that I purchased a few days back. There seems to be issue, not sure if it is with the Reactions module or Dark theme or Clean theme, but hard to read text. Screenshot pasted.
image

@marc-farre
Copy link
Contributor

@mansoorih Thanks for reporting this issue with the Reaction module.
Just released version 1.2.3 which now uses CSS variables too.

@mansoorih
Copy link
Author

Thanks, @marc-farre and @felixhahnweilheim for all your attention and support.

@mansoorih
Copy link
Author

Strangely, I noticed this issue in the message module.

image

@marc-farre
Copy link
Contributor

@mansoorih Fixed by @felixhahnweilheim in PR cuzy-app/clean-theme#25
Will be available in next release.

@mansoorih
Copy link
Author

Something still is broken in dark mode. Can't read filename when attached.
image

@felixhahnweilheim
Copy link
Owner

I can not reproduce this in HH 1.16
Which versions (HumHub, Dark Mode, Clean Theme) do you have?

@mansoorih
Copy link
Author

HumHub Community Edition Version: 1.16.2
Clean Theme Version 2.0.6
Dark Mode Version 1.0.8

@felixhahnweilheim
Copy link
Owner

Please update Clean Theme to v2.1
I think the issue is solved, if not let me know.

@mansoorih
Copy link
Author

Surprisingly, after I upgraded HumHub to 1.16.2 when it was released, I have seen no updates for any of the modules visible to me, including the Clean Theme.

@marc-farre
Copy link
Contributor

@mansoorih Clean Theme version 2.1 is for HumHub 1.17 which is still in beta (but already quite stable).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants