Re: translating -gtk-gradient to -webkit-gradient -- GTK3 Themes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Actually that line is commented out. I think it was my mistake trying ot make sense of that line. The other simple gradients are just simple CSS3 gradients.
Thank you for trying to help me anyway.


On Sat, Aug 17, 2013 at 8:01 PM, Dennis <dennisonic@xxxxxxxxx> wrote:
Actually it's from line 242: 



On Sat, Aug 17, 2013 at 7:59 PM, Dennis <dennisonic@xxxxxxxxx> wrote:


On Sat, Aug 17, 2013 at 7:04 PM, Jasper St. Pierre <jstpierre@xxxxxxxxxxx> wrote:
You should use the standard linear-gradient CSS feature, not -webkit-gradient.

https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient

However, as far as I can tell, that's invalid syntax, as there's only one item allowed in a from() _expression_. This might be a recent restriction, in which case everything after the first comma would simply be ignored. In which case, as both colors are the same, it should be equivalent to:

    background-color: #f07746;

Where did these CSS lines come from?



On Sat, Aug 17, 2013 at 1:53 PM, Dennis <dennisonic@xxxxxxxxx> wrote:
Hi

I am in the process of converting some GTK+3 theme widgets into browser/webkit CSS -- in order to create a CSS theme to make desktop HTML5 apps integrate nicely with the desktop.

How can/should I translate the below gradient into a browser compatible gradient?  -webkit-gradient for example.

.button.default {
  background-image: -gtk-gradient (linear, left top, left bottom,
                                   from (#f07746, 1.16 , #f2f1f0, 0.3),
                                   to (#f07746, 0.84 , #f2f1f0, 0.3));
 
}


_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list




--
  Jasper



_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux