Commit Graph

1645 Commits

Author SHA1 Message Date
Vogel, Rick 55b8da0b7e fixed double inc/dec on key 2023-02-17 14:36:30 +01:00
Uwe Rathmann 8df1551701 formal adjustments 2023-02-17 14:05:05 +01:00
Uwe Rathmann eb5f3d3bcf Qt5 compiler issue fixed 2023-02-17 13:36:08 +01:00
Vogel, Rick ad7a20053c refactoring + focused state 2023-02-17 13:32:47 +01:00
Uwe Rathmann d06c2c6d8f gcc issues fixed 2023-02-17 13:32:27 +01:00
Vogel, Rick 8b2e39caae complete focus chain for all layouts 2023-02-17 13:28:44 +01:00
Vogel, Rick ba9ec8e783 initial commit of QskSpinBox 2023-02-17 13:28:44 +01:00
uwerat 6071ce74d2
Merge branch 'master' into qskspinbox 2023-02-17 13:22:39 +01:00
Vogel, Rick c615e429cf complete focus chain for all layouts 2023-02-17 12:37:53 +01:00
Uwe Rathmann 3262673e40 section bits added to the resolution matching algo. The switch in the
Header section of the gallery is working again
2023-02-17 12:02:05 +01:00
Vogel, Rick ac8a3dea9b initial commit of QskSpinBox 2023-02-17 12:01:56 +01:00
Uwe Rathmann 15b73d215c QskTextOption layout impacts added 2023-02-16 11:42:07 +01:00
Uwe Rathmann d71b972232 QskBoxShapeMetrics::ScalingMode: using better names, missing mode
reinserted
2023-02-16 11:30:31 +01:00
Uwe Rathmann 64fee0247e Floating section added 2023-02-16 08:23:45 +01:00
Uwe Rathmann a0dde1a4e0 Tiny/Small/Large/Huge variations introduced 2023-02-15 17:10:50 +01:00
Uwe Rathmann 66db409b71 QskAspect::Placement renamed to QskAspect::Variation so that we use the
corresponding bits for an emphasis too
2023-02-15 16:37:54 +01:00
Uwe Rathmann 454688361c orientation removed from the placement bits 2023-02-15 16:16:19 +01:00
Uwe Rathmann f89ab863f6 always inserting the connecting line between border and filling, when
using different strokers
2023-02-14 13:44:52 +01:00
Uwe Rathmann 126c276eac better decisions for the direction of filling gradient lines 2023-02-14 11:19:13 +01:00
Uwe Rathmann b8f198a97a irrelevant micro optimzation removed, that was using the wrong corner
iteration
2023-02-14 09:29:51 +01:00
Uwe Rathmann 31feeff9aa Complete support of linear gradients from the box renderer - only
expection are reflect/repeat spreading.
Code has been reimplemented or cleaned up significantly
2023-02-08 17:58:09 +01:00
Uwe Rathmann 67b10cca0a elliptic scaling fixed 2023-02-04 11:55:37 +01:00
Uwe Rathmann 1dcdca3489 faster isMonochrome calculations 2023-02-04 11:55:06 +01:00
Uwe Rathmann ca70fec579 caching some values for faster valueAt calculations 2023-02-04 11:53:54 +01:00
Uwe Rathmann 9d4c423591 color ramp calculation fixed for gradients with many stops 2023-02-04 11:53:23 +01:00
Uwe Rathmann 776468953d using Circular/Elliptic 2023-02-03 11:13:11 +01:00
Uwe Rathmann d4e746e7c5 elliposid != ellipse 2023-02-03 10:46:08 +01:00
Uwe Rathmann 1c4bcffc3f aspectRatioMode replaced by scalingMode 2023-02-03 10:38:17 +01:00
Uwe Rathmann e7c2cd0eba QskBoxShapeMetrics::toAbsolute reverted for the moment as the scaling of the buttons
is broken now. Only a temporary workaround as the other implementation
was actually correct
2023-02-02 18:44:08 +01:00
Peter Hartmann 5a78a365e3 segmented bar: Make API similar to QskMenu 2023-02-01 17:18:22 +01:00
Peter Hartmann afdfa7b24e segmented bar: Fix vertical orientation 2023-02-01 17:18:22 +01:00
Peter Hartmann c58593669d segmented bar: Add own checkmark
The checkmark is slightly different from the one used in the
check box.
2023-02-01 17:18:22 +01:00
Peter Hartmann d75c07cbcc segmented bar: Selected element always has the checkmark symbol
This is how Material 3 does it at least.
If we are ever going to implement the iOS style, we need to do it
differently; although there are no icons involved there at all.
2023-02-01 17:18:22 +01:00
Peter Hartmann 9d1b2568e5 segmented bar: Allow icon and text 2023-02-01 17:18:22 +01:00
Peter Hartmann 329531777a segmented bar: Always assume 0 spacing between elements
... as is in the nature of this control. Rather think of the spacing
as the space between the icon and the text, like we do with
QskPushButton.
2023-02-01 17:18:22 +01:00
Peter Hartmann f8983afa17 QskGraphic: Fix scale factors
We need to know the bounding rect of the graphic to know by how much
we can scale our shape, so we need to pass that to the scaling
methods.
E.g. when there are two shapes whose pen sizes overlap the path rect
left and right, we would calculate wrong scale factors without the
grapics' bounding rect.

Resolves #250
2023-01-30 17:11:28 +01:00
Uwe Rathmann f78416fc63 QskLinearDirection::valueAt fixed 2023-01-24 20:26:23 +01:00
Uwe Rathmann 910a8a730f corner -> corners 2023-01-24 19:49:15 +01:00
Uwe Rathmann 83ce3dbbf9 convenience setter added 2023-01-24 19:48:04 +01:00
Uwe Rathmann bd25e8ae23 explanation added 2023-01-24 19:47:37 +01:00
Uwe Rathmann c384fd608d QskLinearDirection::valueAt added 2023-01-24 19:40:41 +01:00
Peter Hartmann 03e24d5fea push button: Support more alignments of icon and text 2023-01-24 09:51:36 +01:00
Uwe Rathmann 84156b138e workaround for a Qt 6.5 regression ( see
https://bugreports.qt.io/browse/QTBUG-110493 )
2023-01-23 15:51:21 +01:00
Uwe Rathmann 7d1e394b43 multicell propagation fixed ( also avoids assertions of the iotdashboard with
Qt 6.2 in debug mode )
2023-01-23 13:02:29 +01:00
Uwe Rathmann 76a7e94358 default value for reset added 2023-01-23 11:00:03 +01:00
Uwe Rathmann ad09186229 QskGradientDirection::contais added 2023-01-23 10:59:34 +01:00
Uwe Rathmann fff0389262 wrong aspect ratio scaling fixed 2023-01-23 10:59:01 +01:00
Peter Hartmann 9882dc61ee push button: Fix size hint 2023-01-18 06:36:47 +01:00
Uwe Rathmann 6e2769edfa QskVertex::fillOrdered renamed to QskVertex::fillBox 2023-01-17 15:41:12 +01:00
Uwe Rathmann d7f1e22874 using QSizeF::grownBy 2023-01-17 15:37:53 +01:00
Peter Hartmann 3b45b90011 CheckBox: Add error state and style for material 2023-01-16 08:15:41 +01:00
Peter Hartmann 4352410128 check box: Add ripple effect and style for M3 2023-01-16 08:15:41 +01:00
Uwe Rathmann cd4a46cc11 de-template-ified: much better starting point for the fixes to come 2023-01-12 20:26:51 +01:00
Uwe Rathmann a916bd78c2 codemoved to QskRoundedRect.hpp/QskRoundedRect.h 2023-01-12 14:33:31 +01:00
Uwe Rathmann c670d23582 QskRoundedRectRenderer reorganized 2023-01-11 17:40:25 +01:00
Uwe Rathmann e66520294c minor API changes 2023-01-11 12:51:16 +01:00
Uwe Rathmann 5ba34eb11c method names cleaned up 2023-01-10 15:36:43 +01:00
Uwe Rathmann 4038f52cdf inverted gradient vectors for horizontal/vertical gradients supported 2023-01-10 12:17:56 +01:00
Uwe Rathmann d2c5413daa wrong check fixed 2023-01-10 12:09:53 +01:00
Uwe Rathmann e50fb269c3 minor adjustments 2023-01-10 10:20:30 +01:00
Uwe Rathmann 9afabe0e92 using Q_NAMESPACE_EXPORT 2023-01-09 15:19:39 +01:00
Uwe Rathmann a5ab93bba8 bad workaround removed ad fixing the bug instead. 2023-01-09 15:11:38 +01:00
Uwe Rathmann d80f9780fc iotdashboard crash fixed 2023-01-09 15:11:38 +01:00
Uwe Rathmann f4aaf4cc92 more variations of gradient vectors supported 2023-01-05 17:18:34 +01:00
Uwe Rathmann 21e1206b2d QskBoxRenderer improvements 2023-01-05 13:06:32 +01:00
Uwe Rathmann 1b85d3053e QskBoxRenderer fixes 2023-01-04 16:15:22 +01:00
Uwe Rathmann b449289509 convenience API added 2022-12-30 10:27:18 +01:00
Uwe Rathmann 14cee228e0 SimpleColorIterator added 2022-12-29 08:20:29 +01:00
Uwe Rathmann 8c6f0ffd60 full support of all linear gradient vectors by QskRectRenderer ( = not rounded rectangles ). 2022-12-28 19:39:08 +01:00
Uwe Rathmann 3ce2cea547 QLineF added for linear gradients 2022-12-28 19:23:42 +01:00
Uwe Rathmann fba8b97a74 monochrome gradients are rendered vertically 2022-12-24 12:22:42 +01:00
Uwe Rathmann d9eacd9eb3 setDirection fixed 2022-12-24 12:22:07 +01:00
Uwe Rathmann 76c8e41fcc radiusX/radiusY to allow ellipsoid and circular radial gradients 2022-12-23 14:57:46 +01:00
Uwe Rathmann f13026b544 conic gradients fixed 2022-12-22 20:27:49 +01:00
Uwe Rathmann a2a2c63678 qskEffectiveGradient fixed 2022-12-22 20:27:17 +01:00
Uwe Rathmann 82cb6e6811 QskGradient::effectiveGradient added 2022-12-22 20:13:45 +01:00
Uwe Rathmann 6ce73136ce reducing the memory used for QskGradient 2022-12-22 17:50:19 +01:00
Uwe Rathmann 4670e3b5d3 wrong vector size fixed 2022-12-22 17:49:02 +01:00
Uwe Rathmann 83556493d4 hash function fixed 2022-12-22 13:04:58 +01:00
Uwe Rathmann e551906849 QskGradient::StretchMode introduced 2022-12-22 12:38:44 +01:00
Uwe Rathmann 3de71d1bd5 QskGradient::Spread -> QskGradient::SpreadMode 2022-12-22 11:45:23 +01:00
Uwe Rathmann b98791c421 using QTransform 2022-12-21 13:26:23 +01:00
Uwe Rathmann 26e422ac07 convenience update method added 2022-12-20 16:29:51 +01:00
Uwe Rathmann 4ec304fe91 QGradient replaces when adding a stop at the same position, instaed of
appending it - like how it is with CSS or Qsk. As a workaround we
increase the positon by a small epsilon.
2022-12-20 15:49:09 +01:00
Uwe Rathmann 03d2dad7ca setting QGradient::CoordinateMode when converting into a QGradient 2022-12-20 15:47:26 +01:00
Uwe Rathmann c66c61de0c missing default seed value added 2022-12-20 15:42:36 +01:00
Peter Hartmann 5e8d03fe50 QskGraphic: Make sure the underlying texture is big enough
Otherwise the scale factors might be off considerably.

Resolves #233
2022-12-15 16:08:23 +01:00
Uwe Rathmann 8318ff757b update issues with gradients fixed 2022-12-10 16:08:32 +01:00
Uwe Rathmann fd5856cd50 class renamed 2022-12-09 12:03:46 +01:00
Uwe Rathmann 334254caf8 crash fixed for square rectangles with mutiple stops at 0.5 2022-12-09 11:54:42 +01:00
Uwe Rathmann b36521b0ed code moved to cpp file 2022-12-09 11:50:31 +01:00
Uwe Rathmann af1f5b8757 QGradint converters fixed 2022-12-09 11:23:32 +01:00
Uwe Rathmann 5f6ab6db42 code moved to QskBoxRenderer.cpp 2022-12-06 16:52:55 +01:00
Uwe Rathmann e1b65c6dd6 QskBoxRenderer::isGradientSupported also depends on the shape ( at least
in the future )
2022-12-06 16:37:18 +01:00
Uwe Rathmann 8551f4459d gardient check fixed 2022-12-06 16:32:27 +01:00
Uwe Rathmann 3bab38029d wrong update check fixed 2022-12-06 16:31:58 +01:00
Uwe Rathmann a2e29e0d16 code moved to QskVertex + hiding classes in QskVertex from public use 2022-12-06 13:20:18 +01:00
Uwe Rathmann 778ed1de9e QskBoxRectangleNode supports rounded rectangles now. 2022-12-06 12:12:54 +01:00
Uwe Rathmann 9ae7dc2f63 QskGradientNode renamed to QskRectangleNode 2022-12-06 09:58:46 +01:00
Uwe Rathmann 6d726eee0a QskGradientNode introduced for rectangles filled with any type of
gradient being supported by QskGradient. It is lighter than QskBoxNode,
that is a compositition of border/gradient/shadow. Used for the
background node now - what means, that background can have radial/conic
gradients now as well.
2022-12-05 17:10:13 +01:00