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
Added background for ViewSource's ImageBox #85
Conversation
ezequielpereira
commented
Dec 22, 2015
- Added a grid background for ViewSource's ImageBox, so they are visible even when they are completely white
- This is a GCI 2015 task: https://codein.withgoogle.com/tasks/5721811266306048/
- Depends on: Added background for ViewSource's ImageBox sugar#641
- Bug ticket 4909: https://bugs.sugarlabs.org/ticket/4909
|
Forgot to mention bug 4909, which contains an easy test case. |
|
Added to the description. |
|
May the image be png instead of gif? We have no gif in sugar-artwork now, and gif has had an unfortunate history. |
|
Updated. |
|
Now the background image is in SVG format. |
|
Thanks. This and the related PRs, |
|
Testing. |
|
Not working for me, for some reason? Maybe I build in wrong way or applied bad the patch? |
|
There is a toolkit patch as well (or maybe a shell patch?) |
|
Applied sugar-artwork and sugar one, that was my result |
|
@i5o On sugar-build the new files aren't added in the build folder, maybe that's the problem. |
|
i'm doing a osbuild clean & pull, and then will apply your patchs & build |
|
Nop, didn't worked.. |
|
Check build/out/install/share/themes/sugar-72/gtk-3.0/assets/viewsource-imageBox-bg.svg, it should be there (or not). |
|
@163gal, you did not change gtk3/theme/assets/Makefile.am? |
|
Let me say I don't know how sugar-build works... |
|
+1 for design, -1 for build system implementation. easily fixed. i don't know how sugar-build works either, but the same problem would have appeared with "make install", therefore rpmbuild or dpkg-buildpackage. |
|
Do you really feel comfortable with that?.. See it for few seconds and move around.. |
|
I fixed the problem in Makefile.am. |
|
@163gal I think the black is too black? How about with the toolbars color? |
|
Tested with #282828, I think the problem is that the squares are too small :P |
|
@i5o, what screen DPI and resolution? |
|
|
Thanks. A fairly low DPI. Have you a 200 DPI screen you can check with? |
|
Maybe add another 0 to each number in the background grid? Does that fix the size? Also, why do you have a grid of circles? Why not rects? https://developer.mozilla.org/en-US/docs/Web/SVG/Element/rect |
|
@samdroid-apps it is a grid of circles because of the convert command. |
|
Ok, drawing lots of svg circles can't be good for performance. Maybe hand crafting the svg is better here? |
|
@samdroid-apps Done. |
|
Tested on 13" 1080p screen (so high dpi) with sugar-100 theme.
|
* Added a grid background for ViewSource's ImageBox, so they are visible even when they are completely white * This is a GCI 2015 task: https://codein.withgoogle.com/tasks/5721811266306048/ * Depends on: #85 * Bug ticket 4909: https://bugs.sugarlabs.org/ticket/4909
|
I updated the commit, the sugar-100 tiles are now bigger. |
|
Thanks. Cherry-picked for OLPC builds. Don't see why this isn't merged by Sugar Labs. |
|
Oops. I probably forgot, but last time we discussed about the tile size. I will test it asap |
|
Testing this and sugarlabs/sugar#641 ATM. @samdroid-apps can you test in high-dpi setup? |
|
Will re-test and then merge. |
|
Yay. |
|
Okay it does not work on fedora 25, maybe due to Gtk changes, but I'll merge it anyway. @quozl reviewed, and it worked for me in older versions (screenshots are attached in few messages ago |






