Commit Graph

1695 Commits

Author SHA1 Message Date
Uwe Rathmann a4b2bcde16 mouse handling completed 2023-03-01 14:22:40 +01:00
Uwe Rathmann 55d6aa6d5e QskSpinBox bugs fixed, QskSpinBox::wrapping mode implemented 2023-03-01 13:58:10 +01:00
Uwe Rathmann 28432446e6 Material is using the term "Ripple" for 2 different type of effects - Flutter
calls them "Splash" and "Highlight". We are using Splash too.
2023-03-01 10:51:46 +01:00
Peter Hartmann caf75721d4 tickmarks: support alignment 2023-02-28 16:11:27 +01:00
Uwe Rathmann 8a4f644034 avoid using deprecated methods 2023-02-28 15:55:13 +01:00
Uwe Rathmann a6bf60c9b4 upgraded to uncrustify 0.76.0 - still not happy with the C++ beautifier
situation, that requires way too much manual post processing
2023-02-28 15:49:42 +01:00
Uwe Rathmann 9b2c2a8f12 Squiek settings for the spin box added 2023-02-27 15:21:09 +01:00
Uwe Rathmann a67d23420f QskMenu::Overlay settings fixed ( working for Squiek again ) 2023-02-27 14:06:57 +01:00
Uwe Rathmann 5d16d86e0d Merge branch 'master' of https://github.com/uwerat/qskinny 2023-02-27 09:57:22 +01:00
Uwe Rathmann 0b4de9afe7 spin box improvements 2023-02-27 09:56:41 +01:00
Uwe Rathmann 2e667f3ff2 formal adjustments 2023-02-26 17:04:47 +01:00
Uwe Rathmann c4efbf65f0 compiler warning fixed 2023-02-26 15:45:57 +01:00
Uwe Rathmann 5bbd304b94 Merge branch 'RadioBox' of https://github.com/clemensmanert/qskinny into clemensmanert-RadioBox 2023-02-26 15:42:15 +01:00
Uwe Rathmann 6618c91479 QskColorFilter::mask 2023-02-26 15:07:08 +01:00
Uwe Rathmann 90fec17a60 QskRgb::RGBAMask added 2023-02-26 15:03:44 +01:00
Peter Hartmann f4531c149c color filter: Add option to substitute alpha value
Resolves #253
2023-02-26 14:04:23 +01:00
Clemens Manert c3a4472587
Code cleanup 2023-02-25 23:39:33 +01:00
Clemens Manert 4310ee3c34
Remove unused imports 2023-02-25 23:36:02 +01:00
Clemens Manert 72190aee91
Fix alighnment if sizes of symbol and button differ 2023-02-25 23:36:02 +01:00
Clemens Manert 6beabfcbb1
Return empty Rect if item is empty 2023-02-25 23:36:02 +01:00
Uwe Rathmann a3e749157f QskSpinBox API improved 2023-02-24 08:24:32 +01:00
Uwe Rathmann 06ba85605b QskSpinBox work in progress 2023-02-23 14:37:49 +01:00
Uwe Rathmann 06704511d2 QskBoundedInput::incrementForKeys added 2023-02-23 14:33:35 +01:00
Peter Hartmann 7f24cbb95b push buttons: Fix ripple effect
This way it looks like the original
2023-02-23 10:19:42 +01:00
Peter Hartmann 1d57d87332 Gallery: Add buttons with different emphasis and style for M3 2023-02-23 10:19:42 +01:00
Clemens Manert 4d0a26d762
Fix missing moc include 2023-02-20 22:13:14 +01:00
Clemens Manert aee27768cd
Code cleanup 2023-02-20 21:56:34 +01:00
Clemens Manert e4a07909ac
Add Squiek theme 2023-02-20 21:56:33 +01:00
Clemens Manert 49cd540ce0
Add disabled support 2023-02-20 21:56:33 +01:00
Clemens Manert fc4a389201
Code cleanup 2023-02-20 21:56:33 +01:00
Clemens Manert f5c7f7f2b4
Add animation support for the Ripple, remove focusedItem 2023-02-20 21:56:33 +01:00
Clemens Manert bfc172c04f
Respect focused and pressed state in the skinlet 2023-02-20 21:56:33 +01:00
Clemens Manert d510570943
Return empty Rect if nothing to paint 2023-02-20 21:56:33 +01:00
Clemens Manert ffa150a5fd
Fix text position in mirrored layouts 2023-02-20 21:56:33 +01:00
Clemens Manert 4c1f60eb1c
Fix Ribble in mirrored layouts 2023-02-20 21:56:33 +01:00
Clemens Manert 84d662979d
Fix user state positions 2023-02-20 21:56:32 +01:00
Clemens Manert a7dc136dcd
Make unified control name 2023-02-20 21:56:32 +01:00
Clemens Manert 92ba2385db
Rename radio to button 2023-02-20 21:56:32 +01:00
Clemens Manert 8c0a54e54a
Add QskRadioBox 2023-02-20 21:56:26 +01:00
Uwe c9b83ff689 emphasis added 2023-02-20 10:30:24 +01:00
Uwe Rathmann 0c2bc32abd focus handling removed ( spin boxes do not have an internal focus chain
), formal adjustments
2023-02-19 14:24:09 +01:00
Uwe Rathmann 26661dcbb6 compiler errors/warnings fixed 2023-02-19 11:29:13 +01:00
uwerat cf449f174f
Merge branch 'master' into qskspinbox 2023-02-19 10:25:04 +01:00
Vogel, Rick 767414fbc7 doxygen + sample count = 1 2023-02-17 17:46:52 +01:00
Peter Hartmann a89d3def3b Add new control QskComboBox
Resolves #102
2023-02-17 17:26:06 +01:00
Peter Hartmann cf2e17def5 QskMenu: Add own subcontrol Overlay
... so we can style it differently from the one of the QskPopup
2023-02-17 17:26:06 +01:00
Vogel, Rick 1faf2e091c clang-format + clang-tidy improvements 2023-02-17 15:22:40 +01:00
Vogel, Rick 890ae64652 using QskBoundedValueInput as base class 2023-02-17 14:57:33 +01:00
Vogel, Rick 13575678d6 increment or decrement on space key 2023-02-17 14:46:05 +01:00
Vogel, Rick 3d96541079 fixed focus chain 2023-02-17 14:37:10 +01:00
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