bufferhead-code / nightowl

Add Dark Mode to your website semi-automatically.
198 stars 16 forks source link

Fix Background Image Handling and Implement Dark Mode Exclusion #13

Closed smilepant closed 8 months ago

smilepant commented 8 months ago

This pull request introduces key enhancements and bug fixes to the dark mode conversion functionality, specifically targeting the handling of background images. The changes aim to improve the user experience and flexibility of dark mode customization. Below are the detailed updates included in this pull request:

Changes Made:

Onatcer commented 8 months ago

How is this different from .nightowl-daylight ?

smilepant commented 8 months ago

How is this different from .nightowl-daylight ?

The usage of the nightowl-daylight class within our project, although not currently documented in the README, raises some questions regarding its purpose and implementation. This oversight suggests a need for better documentation to ensure clarity for all project contributors. Additionally, the name nightowl-daylight may lead to confusion due to its lack of immediate clarity. A more descriptive class name, such as nightowl-exclude-dark, could be more intuitive, directly indicating its role in excluding dark mode styling from certain elements.

For future-proofing the project, it's renaming the class for better readability and including detailed documentation on its purpose and usage. This documentation should ideally be added to the README file, alongside examples demonstrating the class's effect within the project. This approach will facilitate easier updates and enhancements to the project, promoting a more intuitive and maintainable codebase.

Onatcer commented 8 months ago

I'd accept merge requests to improve the documentation and I'm also open to discuss the naming.

But I'm not discussing with ChatGPT.

smilepant commented 8 months ago

I'd accept merge requests to improve the documentation and I'm also open to discuss the naming.

But I'm not discussing with ChatGPT.

haha I used chat GPT to improve my writing

smilepant commented 8 months ago

I'd accept merge requests to improve the documentation and I'm also open to discuss the naming. But I'm not discussing with ChatGPT.

haha I used chat GPT to improve my writing

nightowl-exclude-dark looks quite similar but nightowl-daylight class is not even mentioned in the readme, to extend this project for the future nightowl-daylight sounds confusing while nightowl-exclude-dark gives a straight meaning and how does the given class work

There is no feature in CSS to directly select all background-image, so for user convenience, I added the nightowl-bg-image class which is same as nightowl-exclude-dark or nightowl-daylight but different class name.

Onatcer commented 8 months ago

I'm closing this as I don't see a need to add two more classes that do the same thing as a class that has already been implemented, especially the background image one seems just completely unnecessary.

smilepant commented 8 months ago

I'm closing this as I don't see a need to add two more classes that do the same thing as a class that has already been implemented, especially the background image one seems just completely unnecessary.

thank you