-
Notifications
You must be signed in to change notification settings - Fork 101
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
Color Profiles in Reading view #11
Comments
Thanks. Looks like a useful feature, can you please provide a link or a screen shot which will give me a better idea |
I think this depends on #2 but I agree, having different "profiles" would be cool :) |
Did you check this project? |
Thanks for mentioning the EBook-Viewer project, I can take some good points from the same. Also agree with this suggestion of having different profiles. Once I get the CSS working for the reading view, I can progress on this issue. |
@choyan I have pushed the first version of the code which switches between a Day and Night mode. Will be great if you can check that. Some work is need to change the forward and backward buttons in night mode to white ones (or lighter colored ones). Also the scrollbar needs to be made dark - however its a bit difficult to grab the scrollbar in Webkit 2. I will also add the Sepia mode later as an additional colour profile. Will keep this Issue open till then. |
@babluboy You can force the app to use the dark version of the stylesheet with: |
@Philip-Scott Someone else also suggested the same on Google+, so I tried that out: Gtk.Settings settings = Gtk.Settings.get_default(); The result was that not all widets were forced to dark (see screen shot and the lower part of the library view in white) and the library view also went dark which was not my intention (just wanted to put the reading view to dark), the scrollbar did not go to dark which is an issue and lastly when I add more colour profiles I nayway have to do that in CSS - so I feel CSS is the way forward for the profile theme. Thoughts? Here is a screen shot of how the look went when I applied the gtk dark theme |
@babluboy Could this be the problem: https://github.com/babluboy/bookworm/blob/master/data/com.github.babluboy.bookworm.app.css I would try to include the least amount of custom CSS with your app, as you can get problems like this (And with people using diferent themes) |
@Philip-Scott You were spot on. I commented out the css and the white area on the footer were gone in the dark theme. However, the webview looks an issue - I have to set the background to black and the font color to white to make the night view work. Have you seen this issue in Notes Up or any pointers on aligning the webview with the gtk theme. I also see that the default background of the Webview is not the same grey-white like the rest of the widegts and is a full white. Similarly, the background in night mode has a difference in the shade of black between the widgets and the webview. I can fix this with the right hex code applied to the webview, but thought I should mention this in case you have an idea on why this is happening. screen shots of the app after removing the CSS and the colour over-rides on the widegts. I will need to change the contents widget and the selection widget to look better in night mode |
@babluboy It's great to see the full feature working awesomely. Thanks for your great work! |
@babluboy that's nice! From a user POV, I think a simple "theme selector" is more useful. Evernote's "Clearly" plugin uses this approach, and has another "window" to customize your own theme ("personalizado" in the picture), if you have that particular need. But I believe most users would benefit from a few pre-designed options, 1 or 2 mouse clicks away :) |
@m-delvalle Thanks for the design suggestion. That will be helpful when I can add more Personalization options. At the moment I have just got Night and Day modes but as I add more profiles and font options this kind of UX will definitely be good than choosing from a dialog....I agree its more tighter to have a pop up menu for color profiles, font, etc from the Header Bar and then a separate dialog for more complicated settings from the Preferences gear icon |
Pocket uses two type of Color Profile. "Inverted" and "Sepia". Implementation of this feature will be great for night time reading.
The text was updated successfully, but these errors were encountered: