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
Uwe Rathmann
c31d554d6b
QskBoxRenderer::isGradientSupported introduced
2022-12-05 17:08:32 +01:00
Uwe Rathmann
9d409ab89b
QskBoxRenderer with static methods
2022-12-05 17:06:55 +01:00
Uwe Rathmann
6ed417873e
QskSGNode::resetGeometry added
2022-12-05 17:00:54 +01:00
Uwe Rathmann
296b2f368a
code simplified/harmonized
2022-12-05 13:05:13 +01:00
Uwe Rathmann
125fe1e9f4
QskBoxNode renamed to QskBoxRectangleNode, QskShadedBoxNode renamed to QskBoxNode
2022-12-05 12:34:08 +01:00
Uwe Rathmann
d82f3d08ff
calculating vertexes manually instead of using the expensive painter
...
path triangulator
2022-12-05 11:39:09 +01:00
Uwe Rathmann
4888fcc5ba
crash fixed
2022-12-05 11:18:35 +01:00
Uwe Rathmann
35a0d63b5a
code specific for Qt < 5.15 removed
2022-12-05 07:51:41 +01:00
Uwe Rathmann
f4275c5098
using the more efficient QVector< qreal > instead of QPainterPath
2022-12-04 21:13:14 +01:00
Uwe Rathmann
4dddb8abf5
unused method removed
2022-12-04 21:13:00 +01:00
Uwe Rathmann
2446bf34c5
bad index fixed
2022-12-04 21:11:36 +01:00
Uwe Rathmann
7abd90b2dd
Finally all types of gradients can be set to boxes.
...
For radial/conic and tilted linear gradients shape/border metrics
will be translated into a QPainterPath to be fed into the triangulation.
However the borders remain being done by QskBoxRenderer.
2022-12-04 19:54:05 +01:00
Uwe Rathmann
38cbefac78
using QskGradient::firstColor
2022-12-04 19:53:25 +01:00
Uwe Rathmann
7eecc63571
QPainterPath support added
2022-12-04 19:52:07 +01:00
Uwe Rathmann
ad8cfbb694
QskBoxBorderMetrics::adjustedRect added
2022-12-04 19:50:54 +01:00
Uwe Rathmann
cf9d203e48
exposing more methods to QML
2022-12-03 17:17:21 +01:00
Uwe Rathmann
103746d719
more C++11
2022-12-01 14:23:13 +01:00
Uwe Rathmann
9ed4aafff5
Qt5 compiler error fixed
2022-12-01 13:45:32 +01:00
Uwe Rathmann
ec0d21fb0c
QskGradient <-> QGradient converter added
2022-12-01 13:03:57 +01:00
Uwe Rathmann
0925b40b7a
QGradient::Spread -> QskGradient::Spread
2022-12-01 12:03:36 +01:00
Uwe Rathmann
abf325dbde
QJSValue converter for QskGradient added to be compatible with new Qt
...
6.5 features
2022-11-30 17:05:37 +01:00
Uwe Rathmann
bbfc16c609
improving Qml support or QskGradient
2022-11-29 10:59:09 +01:00
Uwe Rathmann
b52e54bb7e
return invalid directions, when requeting with the wrong type
2022-11-24 07:58:47 +01:00
Uwe Rathmann
ea8f426d67
QML registration using templates instead of macros. lower/uppercase
...
definitions for gadgets solved ( defining then twice to have the enums
with uppercase prefix )
2022-11-20 15:36:30 +01:00
Uwe Rathmann
2aaaa4ecb1
QskSizePolicy property names shortened
2022-11-20 15:27:08 +01:00
Uwe Rathmann
b96b1acd20
missing boilerplate definitions added
2022-11-18 18:47:35 +01:00
Uwe Rathmann
912d768a61
QskControl::Background subcontrol introduced allowing to have a default setting for
...
all backgrounds ( color, padding ) without changing the overall fallback settings. This made
it possible to remove the confusing autoFillBackground property.
2022-11-18 13:20:21 +01:00
Uwe Rathmann
c5ace32bf2
QskAspect::Control renamed to QskAspect::NoSubcontrol
2022-11-18 12:29:58 +01:00
Uwe Rathmann
19f01c0232
debug operator simplified
2022-11-18 12:15:20 +01:00
Uwe Rathmann
116b835906
metatype registrations moved to class implementations
2022-11-18 09:44:11 +01:00
Uwe Rathmann
5356f0ce88
Q_INVOKABLE for READ/WRITE property accessors removed. do not make sense
...
and lead to assertions, when Qt has been built in debug mode
2022-11-18 09:12:13 +01:00
Uwe Rathmann
974e7372dd
code moved to QskColorRamp
2022-11-16 17:26:50 +01:00
Uwe Rathmann
d327a68fc1
missing setStops versions added
2022-11-16 16:19:19 +01:00
Uwe Rathmann
0f028e4239
qsb files recreated
2022-11-16 16:00:36 +01:00
Uwe Rathmann
ff0599686d
unused parameters removed
2022-11-16 14:33:10 +01:00
Uwe Rathmann
18b0594cd6
internal API simplyfied
2022-11-16 14:23:47 +01:00
Uwe Rathmann
615e0016c2
working more with RGBA values instead of QColor
2022-11-16 13:46:37 +01:00
Uwe Rathmann
31577cab9b
pointless reset operations removed
2022-11-16 13:25:17 +01:00
Uwe Rathmann
70f4d28285
using QRgb instead of QColor
2022-11-14 09:01:07 +01:00
Uwe Rathmann
688c7881b2
missing setter for Qt::GlobalColor added
2022-11-14 09:00:02 +01:00
Uwe Rathmann
33bb68d903
more APIs for working with QRgb
2022-11-14 08:56:30 +01:00
Uwe Rathmann
b140d1b30a
QskGradientDirection introduced - no more classes derived from
...
QskGradient
2022-11-13 17:22:09 +01:00
Uwe Rathmann
a658a2a4e4
palette -> colorRamp
2022-11-13 11:05:53 +01:00
Uwe Rathmann
0fb4b25bba
making QskGradient types acessible for QML ( mot 100% happy with using
...
lists )
2022-11-13 10:09:18 +01:00
Uwe Rathmann
f988805f95
DefaultProperty added
2022-11-04 17:16:38 +01:00
Uwe Rathmann
b64f92e695
properties changed
2022-11-04 17:16:12 +01:00
Uwe Rathmann
f14036c124
using QskGrdient::Stops for separator hints
2022-10-31 18:02:35 +01:00
Uwe Rathmann
fe8e696f40
debug operator fixed
2022-10-31 17:35:47 +01:00
Uwe Rathmann
4c73c1fd7b
QskBoxBorderColors interpolation fixed
2022-10-31 17:35:13 +01:00
Uwe Rathmann
ad67d035f3
new QskGradient
2022-10-31 14:42:08 +01:00
Uwe Rathmann
38bc3286cd
QskGradient improved ( linear/radial/conic gradients )
2022-10-31 14:22:20 +01:00
Uwe Rathmann
bad4f90a16
if/else cascade reordered
2022-10-25 18:19:32 +02:00
Uwe Rathmann
506dd4f60c
working towards introducing new type of gradients
2022-10-25 18:17:21 +02:00
Uwe Rathmann
5712873f21
missing Q_ENUM added
2022-10-25 11:02:10 +02:00
Uwe Rathmann
e67b0b385a
allowing gradient stops that do not start/end with 0.0/1.0 ( like
...
QGradient )
2022-10-24 17:29:39 +02:00
Uwe Rathmann
1f28eec9de
working towards improved QskGradient
2022-10-24 17:08:48 +02:00
Uwe Rathmann
03ce740b29
towards improved QskGradient
2022-10-24 16:40:47 +02:00
Uwe Rathmann
99132276fc
first adjustments for QskGradient improvements
2022-10-24 16:02:46 +02:00
Uwe Rathmann
4a04a27d0d
making code more readable
2022-10-21 16:49:05 +02:00
Uwe Rathmann
f0c9548b4c
using QskGradient::isVisisble() instead of isValid()
2022-10-21 16:46:59 +02:00
Uwe Rathmann
fdf0e1fdb9
pointless forward declaration removed
2022-10-21 16:44:31 +02:00
Uwe Rathmann
d3f9e97301
unused private methods removed
2022-10-20 10:22:13 +02:00
Uwe Rathmann
b1f63999c6
preparations for gradient updates
2022-10-20 09:29:20 +02:00
Uwe Rathmann
d5ba7d9504
QskGradient::qtStops added
2022-10-20 09:22:11 +02:00
Uwe Rathmann
4ca794f7db
linear shaders modified
2022-10-18 17:37:31 +02:00
Uwe Rathmann
0d49820cad
bad memory allocation size fixed
2022-10-18 17:36:55 +02:00
Uwe Rathmann
4592ebfd3d
Merge branch 'master' of https://github.com/uwerat/qskinny
2022-10-15 13:25:25 +02:00
Uwe Rathmann
b6032f007c
wrong check fixed
2022-10-15 13:24:58 +02:00
Uwe Rathmann
618a97235e
auto keyword
2022-10-14 17:13:57 +02:00
Uwe Rathmann
6fef215310
using QskGradient::hash
2022-10-14 17:13:33 +02:00
Uwe Rathmann
51a7e4e589
Using our own gradient shaders ( no dependencies from quickshapes
...
anymore ). shapes/Gradient has not yet been merged into QskGradient
and we still have some stupid conversions to QGradient in the way.
2022-10-13 19:39:57 +02:00
Uwe Rathmann
929c02fa0e
colorTable generation added
2022-10-13 19:39:24 +02:00
Uwe Rathmann
8da486a13f
QskGradientStops moved from QskGradient.h to QskGradientStop.h
2022-10-13 19:37:49 +02:00
Uwe Rathmann
9d640d3f06
Qt5 fixes
2022-10-07 16:17:52 +02:00
Uwe Rathmann
1c98c90e8c
radial gradints fixed
2022-10-07 14:32:20 +02:00
Uwe Rathmann
477a284cfa
more expressive API
2022-10-05 09:38:35 +02:00
Uwe Rathmann
8052074c42
Conical->Conic ( following CSS naming )
2022-10-04 12:46:17 +02:00
Uwe Rathmann
f031e78a7b
storing path and transformation to know when geometry updates are
...
necessary
2022-09-30 15:23:55 +02:00
Uwe Rathmann
ee7dbb300a
scaling of pens moved to QskStrokeNode
2022-09-30 15:09:52 +02:00
Uwe Rathmann
cd19b047ab
setting an initial material, so that the node can be inserted into the
...
scene grapf without rnning into Qt assertions
2022-09-30 15:08:19 +02:00
Uwe Rathmann
45e59d6c10
wip
2022-09-29 17:26:15 +02:00
Uwe Rathmann
f798f2228c
more details around shapes
2022-09-29 16:50:46 +02:00
Uwe Rathmann
634ca3bed3
smarter matrial updates
2022-09-29 12:40:22 +02:00
Uwe Rathmann
b138d04053
shaders for gradients ( QGradient variations ) added
2022-09-28 20:14:10 +02:00
Uwe Rathmann
a13dcf8428
QskShapeNode added
2022-09-26 17:51:07 +02:00
Uwe Rathmann
12e462e657
filling the vertex buffer fixed
2022-09-26 17:50:07 +02:00
Uwe Rathmann
60efe3649b
QSK_EXPORT added
2022-09-26 17:49:47 +02:00
Uwe Rathmann
3ccaa113fd
QskShapeNode introduced ( completely untestest, without gradients in the
...
first version )
2022-09-26 14:44:23 +02:00
Uwe Rathmann
96906e04ca
code reorganized
2022-09-26 14:44:06 +02:00
Uwe Rathmann
b2d7d77640
QskStrokeNode introduced ( untested so far )
2022-09-23 17:49:49 +02:00
Uwe Rathmann
ab34af0b03
include changed
2022-09-23 17:49:13 +02:00
Uwe Rathmann
9cb3bc6ab9
compare operation fixed
2022-09-23 12:39:34 +02:00
Uwe Rathmann
36e84e53b6
code simplified
2022-09-20 08:43:39 +02:00
Uwe Rathmann
3a0796e085
calculation of the cube animtor matrix aligned ( still some questions
...
left concerning non symmetric calculations )
2022-09-16 18:06:16 +02:00
Uwe Rathmann
cb67a057d7
compiler error fixed
2022-09-13 13:05:47 +02:00
Uwe Rathmann
4f8a76234a
index added for animator lookups to allow smooth transitions f.e when
...
selcting an cell in a list box
2022-09-13 12:40:44 +02:00
Uwe Rathmann
7ca1e2f261
uncrustified
2022-09-13 12:22:20 +02:00
Uwe Rathmann
1900adbabb
Using a flat map ( sorted std::vector ) instead of a std:map for the
...
animators. Preperations for inntroducing aspect/index as lookup key.
2022-09-12 18:18:51 +02:00
Uwe Rathmann
a4a6e28ecc
unused member removed
2022-09-12 18:16:07 +02:00
Uwe Rathmann
cb7acb6b92
QskDialogButton subcontrols removed. In case we need to make them
...
different from normal push buttons we should introduce a "dialog" section, where we can avoid having to duplicate all hint settings
2022-09-09 12:36:21 +02:00