<BackPath> images do not scale or tile to the effective size of a widget, only to the base size

Bug #1399245 reported by jus
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mixxx
Triaged
Medium
Unassigned

Bug Description

<KnobComposed>
  <Size>40f,40f</Size>
  <BackPath scalemode="STRETCH">backdrop.svg</BackPath>
  <Knob>knob.svg</Knob>
  <MinAngle>-230</MinAngle>
  <MaxAngle>50</MaxAngle>
  <Connection>
    <ConfigKey><Variable name="group"/>,<Variable name="control"/></ConfigKey>
  </Connection>
</KnobComposed>

In my example, knob.svg & backdrop.svg both have a base size of 30x30.
knob.svg is scaled as foreground image to 40x40. backdrop.svg as background image should scale as well to 40x40, but instead sits lonely in the corner.

Workaround is to make the backdrop.svg the same size as the actual <KnobComposed> widget size (40x40). This removes the flexibility the tiling/stretching <BackPath> promise to offer.

PS. Scaling works fine with <BackPath> of <WidgetGroup>. Probably other widgets supporting <BackPath> are affected (untested).

See recent conversation: https://github.com/mixxxdj/mixxx/commit/a1de569348b4f91eb28c079bb07164a81eb800bf
Commit history: https://github.com/mixxxdj/mixxx/commits/master/src/widget/wknobcomposed.cpp

Tags: skin
jus (jus)
description: updated
description: updated
description: updated
RJ Skerry-Ryan (rryan)
Changed in mixxx:
milestone: none → 1.12.0
assignee: nobody → RJ Ryan (rryan)
status: New → Confirmed
status: Confirmed → In Progress
Revision history for this message
RJ Skerry-Ryan (rryan) wrote :
RJ Skerry-Ryan (rryan)
Changed in mixxx:
importance: Undecided → Medium
Revision history for this message
ronso0 (ronso0) wrote :

Found this old bug while I was struggling to resize EQ Knobs in my remix of LateNight to 34x34px.
Initial sizes were: Knob 40x40px, Backpath 50x42.5px
Resizing or cropping the Backpath.svg with Inkscape while keeping the original aspect ratio always resulted in offset or squeezing, scalemode setting didn't have any effect.
Saving as Inkscape SVG or plain SVG didn't matter either.
What DID work was to manually delete the viewBox="0 0 X Y" line from the BackPath.svg.
I don't know which app wrote this attribute, Inkscape doesn't when I edit/save the corrected files.
Hope this helps.

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Due to lack of progress, marking Triaged and clearing assignee. Feel free to revert if it is in fact still in progress :).

Changed in mixxx:
status: In Progress → Triaged
assignee: RJ Skerry-Ryan (rryan) → nobody
milestone: 2.0.0 → none
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/7706

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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