sugarlabs / sugar-artwork

Sugar icons and themes
Apache License 2.0
11 stars 33 forks source link

Added background for ViewSource's ImageBox #85

Closed ezequielpereira closed 7 years ago

ezequielpereira commented 8 years ago
quozl commented 8 years ago

Forgot to mention bug 4909, which contains an easy test case.

ezequielpereira commented 8 years ago

Added to the description.

quozl commented 8 years ago

May the image be png instead of gif? We have no gif in sugar-artwork now, and gif has had an unfortunate history.

ezequielpereira commented 8 years ago

Updated.

ezequielpereira commented 8 years ago

Now the background image is in SVG format.

quozl commented 8 years ago

Thanks. This and the related PRs,

Reviewed-by: James Cameron <quozl@laptop.org>
i5o commented 8 years ago

Testing.

i5o commented 8 years ago

Not working for me, for some reason? Maybe I build in wrong way or applied bad the patch?

http://paste.fedoraproject.org/304158/8305331/

samdroid-apps commented 8 years ago

There is a toolkit patch as well (or maybe a shell patch?)

i5o commented 8 years ago

Applied sugar-artwork and sugar one, that was my result

ezequielpereira commented 8 years ago

@i5o On sugar-build the new files aren't added in the build folder, maybe that's the problem.

i5o commented 8 years ago

i'm doing a osbuild clean & pull, and then will apply your patchs & build

i5o commented 8 years ago

Nop, didn't worked..

ezequielpereira commented 8 years ago

Check build/out/install/share/themes/sugar-72/gtk-3.0/assets/viewsource-imageBox-bg.svg, it should be there (or not).

quozl commented 8 years ago

@163gal, you did not change gtk3/theme/assets/Makefile.am?

i5o commented 8 years ago

And here is the why: You forgot to add "viewsource-imageBox-bg.svg" to Makefile.am .

From me it's a -1 for design. Sorry I don't feel comfortable seeing this..

captura de pantalla 55
ezequielpereira commented 8 years ago

Let me say I don't know how sugar-build works...

quozl commented 8 years ago

+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.

i5o commented 8 years ago

Do you really feel comfortable with that?.. See it for few seconds and move around..

ezequielpereira commented 8 years ago

I fixed the problem in Makefile.am. @i5o How do you want it?

i5o commented 8 years ago

@163gal I think the black is too black? How about with the toolbars color?

i5o commented 8 years ago

Tested with #282828, I think the problem is that the squares are too small :P

quozl commented 8 years ago

@i5o, what screen DPI and resolution?

i5o commented 8 years ago

@quozl

 [ignacio@localhost sugar-build]$ xdpyinfo | grep -B2 dots
screen #0:
  dimensions:    1440x838 pixels (381x222 millimeters)
  resolution:    96x96 dots per inch
[ignacio@localhost sugar-build]$ 
quozl commented 8 years ago

Thanks. A fairly low DPI. Have you a 200 DPI screen you can check with?

samdroid-apps commented 8 years ago

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

ezequielpereira commented 8 years ago

@samdroid-apps it is a grid of circles because of the convert command.

samdroid-apps commented 8 years ago

Ok, drawing lots of svg circles can't be good for performance. Maybe hand crafting the svg is better here?

ezequielpereira commented 8 years ago

@samdroid-apps Done.

samdroid-apps commented 8 years ago

Tested on 13" 1080p screen (so high dpi) with sugar-100 theme.

samdroid-apps commented 8 years ago

Image:

screenshot from 2015-12-23 16-52-42

ezequielpereira commented 8 years ago

I updated the commit, the sugar-100 tiles are now bigger.

quozl commented 7 years ago

Thanks. Cherry-picked for OLPC builds. Don't see why this isn't merged by Sugar Labs.

i5o commented 7 years ago

Oops. I probably forgot, but last time we discussed about the tile size.

I will test it asap

i5o commented 7 years ago

Testing this and https://github.com/sugarlabs/sugar/pull/641 ATM.

@samdroid-apps can you test in high-dpi setup?

i5o commented 7 years ago

Just tested, looks really good for me. You can even notice some part of white icons screenshot of _chat activity_ screenshot of _chat activity__1 screenshot of _chat activity__2 screenshot of _chat activity__3

i5o commented 7 years ago

Will re-test and then merge.

quozl commented 7 years ago

Yay.

i5o commented 7 years ago

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 captura de pantalla de 2016-12-03 01-41-37 ) of fedora/gtk.