-
Notifications
You must be signed in to change notification settings - Fork 113
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
Night mode added #67
base: master
Are you sure you want to change the base?
Night mode added #67
Conversation
code/js/popup.js
Outdated
@@ -154,9 +158,9 @@ function dumpBookmarks(query) | |||
{ | |||
|
|||
if(!favs.includes(fname)) { | |||
inside_text = inside_text + "<a target='_blank' href='/code/"+key+"/"+obj[key][dd]+"'>"+sub_result_number+". "+obj[key][dd]+"</a>"+" <i id='myStar"+temp2+"\' class='fa fa-star'></i><br>"; | |||
inside_text = inside_text + "<a target='_blank' id='myId"+temp+"' href='javascript:void(0)'>"+sub_result_number+". "+obj[key][dd]+"</a>"+" <i id='myStar"+temp2+"\' class='fa fa-star'></i><br>"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The links are not working. Kindly take a look.
You may change the colour of links from blue to white with bold text (like the one is the one in the number of results div). Additionally, while I was reviewing, the links in code results are not working (it is working in the favorites section) and could not see the codes opening in a new tab in night mode in action. Let me know if I might be missing something. Kindly take a look into this. |
@AdiChat I have made the corresponding changes. Kindly have a look and share your opinion on it! |
Fixes issue:
#63
Changes:
A button called 'Dark Mode' has been added, as shown:
After clicking on which
1) the UI gets changed
2) 'Dark Mode' button is changed to 'Light Mode'
All the colors have been selected after thorough research which decreases the eye strain. The color scheme is best suited for situations when the user is working in the dark.
Kindly review the changes made and give suggestions if required.
UPDATE 1: In commit #bce643a, the night mode feature is extended to the codes being opened up in a new tab as shown:
UPDATE 2: In commit #307dedc, a bug of opening multiple files with a single click was rectified, which was occurring due to some unneeded statement in the code. Also, unnecessary comments were removed.