linear gradients should be vertical by default (or user defined)

Bug #509891 reported by v1nce
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Wishlist
John Smith

Bug Description

I design icons "à la Mac" with light following a straight vertical (not a 45° NW) so everytime I add a new shape I start with replacing the horizontal gradient by a vertical one.

Is there a reason why by default the gradient is horizontal ?

Could it be vertical instead ?
Or better could it be user defined (eg Start x 0%, y 0% End x 100% y 100% for the 45°NW gradient lovers)

Could the repeat mode be stored as user preferences too ? (eg 50%,50%,100%,50%, reflection if you want a symetrical horizontal gradient)

su_v (suv-lp)
tags: added: gradient ui
Changed in inkscape:
importance: Undecided → Wishlist
Revision history for this message
jazzynico (jazzynico) wrote :

We could also store the gradient coordinates directly in the defs:

  <defs
     id="defs4">
    <linearGradient
       inkscape:collect="always"
       id="linearGradient3701"
       x1="0%"
       y1="0%"
       x2="100%"
       y2="100%"
       gradientUnits="objectBoundingBox">
      <stop
         style="stop-color:#000000;stop-opacity:1;"
         offset="0"
         id="stop3703" />
      <stop
         style="stop-color:#000000;stop-opacity:0;"
         offset="1"
         id="stop3705" />
    </linearGradient>
    <linearGradient
       inkscape:collect="always"
       xlink:href="#linearGradient3701"
       id="linearGradient3707"/>
  </defs>

Changed in inkscape:
status: New → Confirmed
tags: added: preferences
Revision history for this message
v1nce (vincent-pennec) wrote :
John Smith (john-smithi)
Changed in inkscape:
assignee: nobody → John Smith (john-smithi)
Revision history for this message
su_v (suv-lp) wrote :

> Is there a reason why by default the gradient is horizontal ?

The SVG 1.1. specification (the default/fallback values)?

Revision history for this message
John Smith (john-smithi) wrote :

Attached patch adds a simple user preference "Tools->Gradient->Linear Gradient angle" for the default angle of new gradients.
The gradient still extends to the bounding box of the object.

Changed in inkscape:
status: Confirmed → In Progress
Revision history for this message
jazzynico (jazzynico) wrote :

@John - It seems the patch also applies changes related to the dropper history.

Revision history for this message
John Smith (john-smithi) wrote :

Apologies, please find a clean patch attached.

Revision history for this message
John Smith (john-smithi) wrote :

Committed r11678 : User preference "Tools->Gradient->Linear Gradient angle" to set preferred linear gradient angle for new gradients (default is horizontal).

Changed in inkscape:
status: In Progress → Fix Committed
su_v (suv-lp)
Changed in inkscape:
milestone: none → 0.49
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.