From kde-panel-devel Wed Feb 26 15:42:07 2014 From: "Marco Martin" Date: Wed, 26 Feb 2014 15:42:07 +0000 To: kde-panel-devel Subject: Re: Review Request 116027: High dpi support for Svg Message-Id: <20140226154207.5643.63406 () probe ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=139342934413730 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0450554434505356185==" --===============0450554434505356185== Content-Type: multipart/alternative; boundary="===============7281914557769739532==" --===============7281914557769739532== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/116027/ ----------------------------------------------------------- (Updated Feb. 26, 2014, 3:42 p.m.) Status ------ This change has been marked as submitted. Review request for Plasma. Repository: plasma-framework Description ------- This gives support in Svg for devicePixelRatio, just exposed in the api from Svg side. on the component side, it sets the devicepixelratio of the svg and framesvg with units. devicepixelratio is always set integer in the svg, so needs at least 192dpi to double up. (it needs to be integer to have lines contained inside a svg piece to keep being pixel aligned) Diffs ----- src/declarativeimports/core/framesvgitem.h e348c4c src/declarativeimports/core/framesvgitem.cpp 1826d88 src/declarativeimports/core/svgitem.h c8be7cc src/declarativeimports/core/svgitem.cpp e90751a src/declarativeimports/plasmacomponents/qml/ToolButton.qml 2319879 src/plasma/framesvg.h 482956d src/plasma/framesvg.cpp 9e1a53e src/plasma/private/framesvg_p.h 1bbc744 src/plasma/private/svg_p.h 332efda src/plasma/svg.h 01d98f8 src/plasma/svg.cpp 9ec2aa5 Diff: https://git.reviewboard.kde.org/r/116027/diff/ Testing ------- unfortunately i can only test by hardcoding different values and check if the layout of the widgets stays correct, and is fine, it would be needed somebody with a retina screen to see it really in action Thanks, Marco Martin --===============7281914557769739532== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit
This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/116027/

This change has been marked as submitted.


Review request for Plasma.
By Marco Martin.

Updated Feb. 26, 2014, 3:42 p.m.

Repository: plasma-framework

Description

This gives support in Svg for devicePixelRatio, just exposed in the api from Svg side.


on the component side, it sets the devicepixelratio of the svg and framesvg with units.
devicepixelratio is always set integer in the svg, so needs at least 192dpi to double up.
(it needs to be integer to have lines contained inside a svg piece to keep being pixel aligned)

Testing

unfortunately i can only test by hardcoding different values and check if the layout of the widgets stays correct, and is fine, it would be needed somebody with a retina screen to see it really in action

Diffs

  • src/declarativeimports/core/framesvgitem.h (e348c4c)
  • src/declarativeimports/core/framesvgitem.cpp (1826d88)
  • src/declarativeimports/core/svgitem.h (c8be7cc)
  • src/declarativeimports/core/svgitem.cpp (e90751a)
  • src/declarativeimports/plasmacomponents/qml/ToolButton.qml (2319879)
  • src/plasma/framesvg.h (482956d)
  • src/plasma/framesvg.cpp (9e1a53e)
  • src/plasma/private/framesvg_p.h (1bbc744)
  • src/plasma/private/svg_p.h (332efda)
  • src/plasma/svg.h (01d98f8)
  • src/plasma/svg.cpp (9ec2aa5)

View Diff

--===============7281914557769739532==-- --===============0450554434505356185== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel --===============0450554434505356185==--