-
-
Notifications
You must be signed in to change notification settings - Fork 68
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 theme #597
dark theme #597
Conversation
Can we make this preference like the other ones? Not two radio buttons at the top, but a section under either Network Preferences or Community Preferences (hmm, which should it be?) with the layout and controls used for the others. Could you vote on some of those posts so we can see what the score widget looks like? And could you take a screenshot of something with pagination, to make sure those controls are legible? Does this code bypass CoDesign or is there a corresponding PR there? I don't know a lot about how things are put together, but dark theme shouldn't break if we change/add something in CoDesign. Thanks. |
I think you meant to put those radio button system in header, didn't you? Usually, earlier I was doing the same. But, I noticed that mobile UI is little bit different. I was using icon (while putting theme controller in top). And, the header becomes very small for Android. That's why I thought it would be better if I use those theme controller system in preferences.
As far as I know CoDesign can't break my code. I used
@kevinmmansour done! In light theme, when you hover Profile icon then, that icon will be black. |
`line-height: 25px !important;` used cause, there was some kind unwanted spaces in license. Earlier, I didn't use this kind of code. Somehow colors were interrupting it. So, I am using it here.
I guess. The work is completed. Check new images here. I will change A problem is available.. Maybe, last one :( ... |
Usually, if someone chooses dark theme in Codidact Meta. Than, it should work in other network either. That's what my code says. But, I don't have experience with sub-domain. So, my code completely depends on server.
|
forgot to write it
Usually, there should be a better way to call these scripts. I had tried by putting them in users.js, application.js. Although, it wasn't working. So, finally it left for me. But, I would request someone to take a look at it. Since, we just code HTML and Ruby in the page.
Making it a network preference seems reasonable to me. Could you test with Mathjax and code syntax highlighting to make sure those are ok? I wondered about per-community in case something specialized doesn't work and people would want to be able to turn it off there, but it's better to just make sure it works well everywhere and then let people have a consistent experience. I'm not sure what you mean about setting it on Meta. Just to confirm, somebody can set this preference on any community and it'll apply across the network, right? You don't have something specific about Meta in the code, right? (Aside: could you try to use descriptive commit messages instead of "update "? That would help me understand what the change is, since I can't always figure it out from the code -- like, maybe you've already done stuff I'm asking for but I can't tell, and I don't want to waste your time with redundant questions. Thanks.) |
pagination's button had a default background color earlier. So, it was white in dark theme. `.pagination li .active` used for those buttons. And, warning notice's text-color was close to white. But, it's hard to see white color. So, I changed default to black for dark and light both. `i` was used for icon color.
I don't have MathJax access in my server. I have create new server to test MathJax. There should be a way to enable MathJax. But, I don't have idea. According to me, MathJax are inside
According to me, yes. If it doesn't work than, I guess there's no way to do it. Cause, I don't have any idea of server. (I talked about Meta as example, I will use
No! It's OK. Question helps to find out more problems. I have found another problem after seeing the comment. And, I will try to write descriptive commit messages next time... |
codidact#597 (comment) done the task (which written in comment).
script should be change since preferences code were changed d1b73ff
You can enable MathJax via Admin Tools -> Site Settings -> Display and look for the "enable MathJax" setting. (I assume you're an admin on your own server. If not, you can change that. :-) ) |
@ArtOfCode- can you provide some guidance on how to wire up the network preference correctly? Thanks. |
Is there anything left which I should test? <3 :) Ohh! I found how CoDesign is linked |
So I've only just had a chance to look at this. I appreciate the effort you've put into this, but I'm concerned that this is mostly being done in the "wrong" place - theming CSS and variables should generally be done in Co-Design, not in QPixel-specific CSS. I'd also suggest that instead of using a JS trigger for theme changes (and thus restricting dark theme to only those with JS enabled), we should use a media query ( |
@ArtOfCode- i understood your concern. But, these days i couldn't understood how CoDesign was working with qpixel. Today, i have understood what should I do with CoDesign. So, it will take me few weeks to done it in CoDesign. So, other "things" is upto you. I didn’t use media query it wasn’t working for me. I was trying this way https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme at first, i tried by creating some HTML and CSS files. It wasn’t working. But, i again tried in qpixel. Although, it wasn’t working. So, i didn’t work that way. My default theme wad forever dark. I don’t know why i couldn’t use dark theme. Thats why i didn’t use media query. (I usually use theme from. Extension in chrome. And, my theme was dark in tweaks). |
#565
Any suggestion and helps are welcome. Ohh! Wait suddenly I noticed theme isn't working for
/users/edit/profile/
(I can't find problem anywhere). I will make changes dark, light radio button. But, I am not a professional graphics designer. And, I haven't used AI, PS for long days. So, I may forgot lot of things. So, some design for radio button is requested. I will try also (Sorry! I didn't mention earlier). To test the theme I have createda zipa 7z (zip file became larger than 25 MB so, I had to change format). Since, some design were changed to light theme while doing these changes. So, I would request to take a look at light theme also. (I am busy with some other works. So that, I use laptop rarely. That's why I can't work properly)... (Now, have to take a look at light theme. I can see some problems in light theme)(@kevinmmansour helped with some work also) (Sorry for merging! It had shown in my git but, nothing changed)Task left in Dark theme :
Task left in Light Theme:
Dark Theme
Light Theme
After new changes...
New Light Theme
New Dark theme
New changes