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

dark css theme version 0.1 #18

Closed
wants to merge 5 commits into from
Closed

dark css theme version 0.1 #18

wants to merge 5 commits into from

Conversation

savez
Copy link

@savez savez commented Aug 30, 2024

Created dark theme version 0.1

reference issue #17

@savez savez mentioned this pull request Sep 2, 2024
@goksan
Copy link
Owner

goksan commented Sep 2, 2024

Hi @savez, thanks for the PR

How’s it going? Do you have any details or images to share?

Let me know if you need any help

@savez
Copy link
Author

savez commented Sep 3, 2024

Screenshot 2024-09-03 at 07 03 22
Screenshot 2024-09-03 at 07 03 18
Screenshot 2024-09-03 at 07 03 12
Screenshot 2024-09-03 at 07 03 05
Screenshot 2024-09-03 at 07 02 59

@savez
Copy link
Author

savez commented Sep 3, 2024

I was thinking that perhaps one could use the css function light-dark() (https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/light-dark) so as to have only one CSS and use the colour-scheme proprity to make the switch.

what do you think?

@goksan
Copy link
Owner

goksan commented Sep 3, 2024

Sure, that sounds like it works

@savez
Copy link
Author

savez commented Sep 3, 2024

Good, I implement it and update PR

@savez savez marked this pull request as draft September 3, 2024 12:32
@savez
Copy link
Author

savez commented Sep 3, 2024

@goksan I change it.

@savez savez marked this pull request as ready for review September 3, 2024 15:48
@goksan
Copy link
Owner

goksan commented Sep 3, 2024

Thank you! If you're done with it I'll try and take a proper look later this week, and experiment with some of the colours

Thanks again

@goksan
Copy link
Owner

goksan commented Sep 3, 2024

Did you intentionally commit sizing & font changes?

@savez
Copy link
Author

savez commented Sep 3, 2024

Yes, I think that this UI are good for more screen size.

@savez
Copy link
Author

savez commented Sep 4, 2024

I think a button for switching the theme should be added in the interface.
what do you think?

@goksan
Copy link
Owner

goksan commented Sep 4, 2024

Would be helpful for users that want to override their OS default

@savez
Copy link
Author

savez commented Sep 4, 2024

@goksan added toggle button

@goksan
Copy link
Owner

goksan commented Sep 4, 2024

Ok, have you made all your changes?

@savez
Copy link
Author

savez commented Sep 5, 2024

I think yes

@goksan
Copy link
Owner

goksan commented Sep 5, 2024

Are these changes generated by AI?

@savez
Copy link
Author

savez commented Sep 5, 2024

Are these changes generated by AI?

no, it is my development

Copy link
Owner

@goksan goksan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does the light theme look like this?
Screenshot 2024-09-05 at 11-17-11 Services

This does not default to light/dark based on the OS theme.

The selected theme is lost when you navigate to any other page. Maybe you didn't get around to this, but you haven't provided any detail to suggest this.

I'm not a fan of the sizing changes, and those weren't initially mentioned until I spotted them. Same goes for the font changes.

I'm not going to merge this in its current state. I appreciate you have taken the time to make these current changes, but I also have to take time to review them and a lot of key info has been missing.

static/main.css Outdated
@@ -1,23 +1,98 @@
:root{
/* light styles here */
color-scheme: var(--color-scheme, light);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

color-scheme is duplicated, this is 1

static/main.css Outdated
--color-scheme: light;
}

color-scheme: var(--color-scheme, light);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

color-scheme is duplicated, this is 2

static/main.css Show resolved Hide resolved
static/main.css Outdated
Comment on lines 504 to 581
color: #969696;
color: light-dark(#606060,#969696);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a bunch of places where extra indentation has been added

@savez
Copy link
Author

savez commented Sep 5, 2024

I check your comment and I will implement the necessary changes. thank you!

@savez savez marked this pull request as draft September 5, 2024 11:00
@savez
Copy link
Author

savez commented Sep 5, 2024

Why does the light theme look like this? Screenshot 2024-09-05 at 11-17-11 Services

This does not default to light/dark based on the OS theme.

The selected theme is lost when you navigate to any other page. Maybe you didn't get around to this, but you haven't provided any detail to suggest this.

I'm not a fan of the sizing changes, and those weren't initially mentioned until I spotted them. Same goes for the font changes.

I'm not going to merge this in its current state. I appreciate you have taken the time to make these current changes, but I also have to take time to review them and a lot of key info has been missing.

I'm sorry for the bugs. I will implement the necessary changes

For the font I not change it

For the font-site I changed it because I had thought it was better for the view of the data

@savez
Copy link
Author

savez commented Sep 6, 2024

Hi,
I am sorry for the error into prev PR.

I don't seen that you use HTMX for system routing and my implementation didn’t work.

I correct it and I added afterSwap event for manage theme selector.

I hope that this implementation it is ok for you.

Bye

@savez savez marked this pull request as ready for review September 6, 2024 06:09
@goksan
Copy link
Owner

goksan commented Sep 6, 2024

I've had a quick look and issues remain from my prior comments.

Why does the light theme look like this?

It still looks like this?

This does not default to light/dark based on the OS theme.

This still seems to be the case.

The selected theme is lost when you navigate to any other page. Maybe you didn't get around to this, but you haven't provided any detail to suggest this.

Navigating backwards or forwards between pages while in dark mode causes the page you land on to be displayed in light mode.

I'm not a fan of the sizing changes, and those weren't initially mentioned until I spotted them. Same goes for the font changes.

For the font I not change it

To be clear I was referring to font size & weight.

@savez
Copy link
Author

savez commented Sep 6, 2024

Hello,
the font (weights etc.) I changed them because it seems more readable to me.

I'll post a video so you can see that browsing remains the dark theme.

The theme type is saved in localStorage and stays saved there.

only the login is in light theme but by choice. It is not nice to give in login the ability to change theme.

statusnook.mov

@goksan
Copy link
Owner

goksan commented Sep 6, 2024

Hello, the font (weights etc.) I changed them because it seems more readable to me.

To be clear - I'm not looking to change that at this time.

I think you've changed the background and icon colours, surely you can agree this isn't an improvement?

I'll post a video so you can see that browsing remains the dark theme.

To be clear - you need to navigate backwards and forwards using the back or forward button in your browser to reproduce the issue. I've included a video demonstrating this.

navigation-theme-bug.mp4

It is not nice to give in login the ability to change theme.

You probably don't need to change theme on the login screen, I agree, but I would expect it to use the theme I've selected.

@savez
Copy link
Author

savez commented Sep 6, 2024

ok, thanks epr for the clarification. I will check for the theme and browser navigation keys

I'm sorry

@goksan
Copy link
Owner

goksan commented Sep 6, 2024

Thank you for your time, but I won't be merging this PR.

@goksan goksan closed this Sep 6, 2024
@savez
Copy link
Author

savez commented Sep 6, 2024

@goksan

HTMX is probably the problem.

I have made changes to handle:

  • system preference
  • navigation with browser keys

I then found this plugin “https://unpkg.com/dark-mode-toggle” which works and seems much more convenient for management.

I'll go over a PR if you want.

@goksan
Copy link
Owner

goksan commented Sep 6, 2024

I don't think such a plugin is necessary here

@savez
Copy link
Author

savez commented Sep 6, 2024

The plugin was an example for the best way for implamentation

Bye

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.

2 participants