Commit Graph

316 Commits

Author SHA1 Message Date
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 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
Peter Hartmann c4000eb44b Material 3: Calculate real pixels from device-independent pixels
Resolves #210
2022-08-31 19:29:39 +02:00
Uwe Rathmann b84dfc8226 QskSubcontrolLayoutEngine introduced 2022-08-26 12:56:12 +02:00
Uwe Rathmann 896145ac11 QskTextOptions as skin hints 2022-08-25 09:39:33 +02:00
Uwe Rathmann bc5510f7ef temporary improvements for push buttons - until we have a general layout class
for graphic/text combinations
2022-08-03 18:28:53 +02:00
Uwe Rathmann 9fdaf8aef6 clipping the ripple into the button panel 2022-07-18 09:11:45 +02:00
Peter Hartmann 7eed06659b push button: Allow for animations when clicking
Which e.g. the Material 3 style does
2022-07-15 13:50:04 +02:00
Uwe Rathmann 4ef3fe3164 initial tabbar position as skin hint ( QskTabBar::Panel | QskAspect::Style ) 2022-07-15 10:44:32 +02:00
Uwe Rathmann ff7cb37edc using QskRgb 2022-07-15 08:39:52 +02:00
Peter Hartmann f1101f1706 Material: Fix Header and Footer boxes
At some later point, we can introduce an application window class.
Also, move tabs to bottom.
Also, add some tinted surface colors.
2022-07-15 07:55:13 +02:00
Peter Hartmann 45fa6e3f08 Material: Fix subwindow hint 2022-07-15 07:55:13 +02:00
Peter Hartmann 48a902a660 scroll view: Allow styling via panel 2022-07-15 07:55:13 +02:00
Peter Hartmann 8ece05272d Material 3: style popup overlay 2022-07-15 07:55:13 +02:00
Uwe Rathmann 209fbaef97 keep upper case letters for skin names 2022-07-14 13:55:35 +02:00
Uwe Rathmann 6c3d261ab5 bye, bye dummy pseudo material skin, we will continue with material3 instead 2022-07-11 21:10:29 +02:00
Peter Hartmann d79a2b5226 Change copyright 2022-07-06 14:48:06 +02:00
Peter Hartmann 8b98a64f50 Remove unused statement 2022-07-06 14:47:49 +02:00
Peter Hartmann 240784b99c switch: fix ripple style 2022-07-06 14:24:25 +02:00
Peter Hartmann 413e6e88d6 checkboxes: Remove animation for now 2022-07-06 14:11:11 +02:00
Peter Hartmann 606d5ddef1 style scroll view and list view 2022-07-06 13:56:25 +02:00
Peter Hartmann 567753df84 fix tab buttons 2022-07-06 13:27:35 +02:00
Peter Hartmann 8ff290410e style dialog button 2022-07-06 12:39:31 +02:00
Peter Hartmann 2fcc7c77ca Improve fonts
Setting the proper weight makes the fonts pixel perfect now
2022-07-06 12:39:31 +02:00
Peter Hartmann f0fbb084f6 style dialogs 2022-07-06 12:10:47 +02:00
Peter Hartmann 7b247c67fe style listbox 2022-07-05 14:19:55 +02:00
Peter Hartmann a429bfb7b8 slider: flatten handle color when disabled 2022-07-05 13:44:39 +02:00
Peter Hartmann 9ecafddc49 Slider: Add ripple and style it 2022-07-05 13:41:18 +02:00
Peter Hartmann d97f17c859 style active tab button 2022-07-05 13:02:07 +02:00
Peter Hartmann ed767b9161 style buttons when hovered, focused and pressed 2022-07-05 11:44:19 +02:00
Peter Hartmann c8f28c05dc style check box 2022-07-05 10:51:26 +02:00
Peter Hartmann ec4fc1d1b2 bring back old squiek skin 2022-07-05 09:54:09 +02:00
Peter Hartmann 38d2f5e4b6 Bring back the old Material skin for now 2022-07-05 09:49:05 +02:00
Peter Hartmann 53faf27d8f Merge branch 'uwerat-master' into material-theme
This means remove the outlined and text buttons for now
2022-07-05 09:33:43 +02:00
Peter Hartmann 5ff92a9fb8 Material: Rename new skin to Material3 2022-07-05 08:46:51 +02:00
Uwe Rathmann f7cd259fb0 using QskSkin::symbol for the indicator 2022-07-01 12:40:52 +02:00
Uwe Rathmann 080fcdb69f Starting with a simpler version of QskCheckBox ( no tristate ), but with
having an optional text.
2022-07-01 11:10:59 +02:00
Uwe Rathmann 3c5b6f9f01 QskAbstractButton::Flat removed, using QskAspect::Header instead 2022-06-29 16:21:54 +02:00
Peter Hartmann 6332a27764 fix build after merge 2022-06-27 14:50:54 +02:00
Peter Hartmann 879b4144b1 Merge branch 'uwerat-master' into material-theme 2022-06-27 10:35:49 +02:00
Uwe Rathmann 6c7ba0489c M(aterial)2 related code replaced 2022-06-25 16:14:08 +02:00
Peter Hartmann 74ccd3e4df style segmented bar in disabled state 2022-06-17 18:23:40 +02:00
Peter Hartmann fecfd7c5c7 move some colors to the palette 2022-06-17 17:44:05 +02:00
Peter Hartmann 752982fa03 improve shadow 2022-06-17 15:45:03 +02:00
Peter Hartmann 4e581486c3 style segmented bar some more 2022-06-17 12:50:35 +02:00
Peter Hartmann 9ab96db757 style segmented bar 2022-06-17 09:37:04 +02:00
Peter Hartmann 8a22a2f7bb Add shadow to menus and move shadows to palette 2022-06-17 09:37:04 +02:00
Peter Hartmann 56f25bd74c fix button size again, was lost in a merge 2022-06-15 11:37:02 +02:00
Peter Hartmann bac7a2024a Merge branch 'uwerat-master' into material-theme 2022-06-15 10:58:56 +02:00
Peter Hartmann 8ee681588e Revert "QskPushButton: respect the graphics alignment"
This reverts commit 3c69498026.
2022-06-15 10:57:36 +02:00
Peter Hartmann 74e036c355
QskPushButton: respect the graphics alignment (#193)
Also, respect the padding hint of the graphic

Resolves #22
2022-06-15 10:34:51 +02:00
Peter Hartmann 4aa0c7de79 fix menu 2022-06-14 12:09:07 +02:00
Peter Hartmann f8070c1bf0 fix build 2022-06-14 11:26:12 +02:00
Peter Hartmann c3dd5efd1a improve button shadow 2022-06-14 10:26:43 +02:00
Peter Hartmann 42ab3fcb85 add shadow to buttons 2022-06-13 17:41:50 +02:00
Peter Hartmann 3a0b3b077d style menu 2022-06-13 17:11:27 +02:00
Peter Hartmann 4841e39813 small fix for switch 2022-06-08 11:50:43 +02:00
Peter Hartmann e6b85e528b button: Add more states to cover different button types 2022-06-08 11:48:29 +02:00
Peter Hartmann a810739254 Revert "Material skin: Allow setting a different palette"
This reverts commit 421db106da.

We cannot easily change this on the fly anyhow.
2022-06-07 16:21:04 +02:00
Peter Hartmann 421db106da Material skin: Allow setting a different palette 2022-06-07 14:03:06 +02:00
Peter Hartmann a2d67f0438 Material: set up fonts 2022-06-07 12:58:50 +02:00
Peter Hartmann 1839cd452f Material: More skin hints 2022-06-07 12:14:50 +02:00
Peter Hartmann 3c69498026 QskPushButton: respect the graphics alignment
Also, respect the padding hint of the graphic

Resolves #22
2022-06-07 11:44:41 +02:00
Peter Hartmann 8a14b75747 Material: Set values according to new palette 2022-06-07 11:09:25 +02:00
Peter Hartmann fdd19894fb fixup Material: Move palette generation around 2022-06-03 10:23:02 +02:00
Peter Hartmann 17185addeb fixup? Material: Use predefined palettes in skin 2022-06-03 09:52:22 +02:00
Peter Hartmann 6281a6afe0 Material: Use predefined palettes
At some later point we might want to make the palettes settable,
so the user can define his own palettes.
2022-06-03 09:11:29 +02:00
Peter Hartmann d1fb1e71cb fixup 2022-06-02 18:25:35 +02:00
Uwe Rathmann 535d94b494 nothing useful, but fixes compiler error 2022-05-02 16:43:50 +02:00
Uwe Rathmann 41de0f3933 Merge branch 'master' into material-theme 2022-05-02 16:27:16 +02:00
Uwe Rathmann 8039ebd785 compiler erors fixed 2022-04-20 15:32:14 +02:00
Uwe Rathmann 12a3dd06da boilerplate code to have QskSegmentedBar in the gallery. 2022-04-20 15:25:15 +02:00
Uwe Rathmann 50ee82fbaa QskSegmentedBar ( inspired by the IOS segmented control ) added 2022-04-20 14:14:37 +02:00
Uwe Rathmann e689575510 suing QskMenu::Segement instead of Qskmenu::Cell to be in line with other
controls
2022-04-20 13:58:53 +02:00
Uwe Rathmann 87c9bcd85c Merge branch 'master' into material-theme 2022-04-16 12:27:25 +02:00
Uwe Rathmann d52453311f heuristic for initializing the cascading property moved from skin to
QskMenu
2022-04-16 12:25:39 +02:00
Uwe Rathmann 6adee18cb7 QskMenu initialization fixed 2022-04-05 11:55:26 +02:00
Uwe Rathmann 1ce1188f4b Merge branch 'master' into material-theme 2022-04-05 11:46:05 +02:00
Uwe Rathmann 2a6d27d78d wip 2022-04-05 11:38:23 +02:00
Uwe Rathmann 526003f173 Merge branch 'master' into material-theme 2022-04-05 10:19:00 +02:00
Uwe Rathmann 6ef1f8a45d QskCheckBox improvements 2022-04-05 08:48:16 +02:00
Uwe Rathmann d5a1ce19c9 Merge branch 'master' into material-theme 2022-04-04 18:13:31 +02:00
Clemens Manert a05d1e3471
Add a Checkbox (#169)
* Add checkbox

* Add checkbox tests

* Add checkbox-groups

* Add checkbox-groups tests
2022-04-04 08:53:20 +02:00
Uwe Rathmann 45e0d8b537 code grouped 2022-04-03 16:24:50 +02:00
Uwe Rathmann afefaf952a using gardients instead of colors 2022-04-02 11:50:55 +02:00
Uwe Rathmann bf2ad4ee13 merge from master 2022-04-01 17:00:50 +02:00
Uwe Rathmann 0cd577c977 making QskSwtchButton smaller 2022-04-01 13:57:26 +02:00
Uwe Rathmann 570d3d2d51 Uing RGB values instead of colors. QskSkinTransition reimplemented.
Ongoing work
2022-03-31 18:29:39 +02:00
Uwe Rathmann 60e27536e8 using QString::compare 2022-03-27 19:06:29 +02:00
Uwe Rathmann 345f24f621 Merge branch 'improve-material-theme' of https://github.com/clemensmanert/qskinny into clemensmanert-improve-material-theme 2022-03-26 15:57:02 +01:00
Uwe Rathmann c3eb20ee98 using QStringLiteral 2022-03-25 10:32:14 +01:00
Clemens Manert 6f42dae3e3
Improve material theme 2022-02-19 00:30:23 +01:00
Peter Hartmann ac8ef9cd5a
Box renderer: Support border gradients (#158)
* QskBoxBorderColors: Use gradients instead of colors

* QskBoxBorderColors: rename API

* render gradients on borders

* boxes example: Also draw gradient borders

* calculate proper numbers of needed border colors

* fixup with example

* support rounded corners

* support more colors in rounded color gradients

I THINK WE DON'T REALLY NEED THIS COMMIT

* We don't need this commit either

* Revert "We don't need this commit either"

This reverts commit 2dc38064f7fee1d0505262fe5cebcf9e1fb16cea.

* Revert "support more colors in rounded color gradients"

This reverts commit 5754d2d0773d8273d42ae1775b53d40f5e6af26a.

* fix borders for rect ellipses

* play around a bit

* small fixes

* some helper stuff and missing stuff

* user border colors

* close to something working somehow

* works a bit better

* put it into an own function

* rearrange a bit

* something's off

* still off, but seems like we need an additional line

* works but hackish

* now it works

* bring back samples

* correction

* pimp up example

* fix normal rendering

* some more debugging etc.

* turn around gradients

* turn around rectangular gradients as well

* turn around easier

* more test cases

* fix fill case

* more test cases

* clean up a bit

* clean up example

* clean up some more

* incorporate feedback from Uwe

* fix bug when using horizontal gradients
2022-02-04 16:11:11 +01:00
Uwe Rathmann 36001a6fec menu separators added 2022-01-06 18:36:15 +01:00
Uwe Rathmann 1feccd942a QskPageIndicator improved 2022-01-04 13:58:34 +01:00
Uwe Rathmann 89a2a395fd QskMenu::Cursor transition fixed 2021-12-29 17:19:19 +01:00
Uwe Rathmann f45be55e90 using positionHint methods 2021-12-29 17:05:29 +01:00
Uwe Rathmann 78d39d242f QskMenu::Cursor animation added 2021-12-29 16:23:19 +01:00
Uwe Rathmann 6c46c0160d some functions copied from QskFunctions to QskPlatform 2021-12-26 12:57:02 +01:00
Uwe Rathmann a4d34dfa54 QskMenu::cascading added 2021-12-26 12:17:31 +01:00
Uwe Rathmann 452ff3a07b QskMenu improved 2021-12-24 16:20:34 +01:00
Uwe Rathmann 8010d70e4a QskMenu added ( work in progress ) 2021-12-23 18:36:32 +01:00
Uwe Rathmann 8d2ff3c3fe QskPopup improvements 2021-12-23 18:19:52 +01:00
Uwe Rathmann 47f7737985 QskListView::Selected state introduced 2021-12-22 15:08:27 +01:00
Uwe Rathmann 4092ec0a8a QskAspect::States introduced to be more accurate about state vs. states 2021-09-14 13:05:56 +02:00
Uwe Rathmann 93987bd92f minor adjustments 2021-08-27 09:45:24 +02:00
Clemens Manert 01ea49fe02
Add ripple to SwitchButton (#123) 2021-08-27 09:09:10 +02:00
Uwe Rathmann 66cc68bcda getting rid of the confusing QskAbstractButton::Checkable state 2021-08-04 08:24:36 +02:00
Uwe Rathmann 1b4be3bc23 layout code in QskSwitchButtonSkinlet improved - still some way to go
until the switch is perfectly themable and looks like in the material
specs
2021-08-03 15:02:33 +02:00
Uwe Rathmann 0e334e5fd9 switch button adjustments 2021-08-02 19:17:04 +02:00
Clemens Manert 13faf53495
Add SwitchButton (#121) 2021-08-02 13:22:37 +02:00
Uwe Rathmann 75a9ee305c QskAspect::Primitive cleanup 2021-04-28 09:32:49 +02:00
Uwe Rathmann 5ecec7892e QskSkinHintTableEditor introduced 2020-12-26 12:57:08 +01:00
Uwe Rathmann 95d8d2a6da making QskAspect a class 2020-12-21 16:06:58 +01:00
Uwe Rathmann a90648902e auto/const added 2020-12-18 18:26:32 +01:00
Uwe Rathmann a49ef1daa4 using strutSize 2020-12-17 16:14:56 +01:00
Uwe Rathmann 1f2617fe86 outdated inline comment removed 2020-12-17 08:51:20 +01:00
Uwe Rathmann 58de684902 using StrutSize instead og Minimum/Maximum metric hints 2020-12-16 12:49:24 +01:00
Uwe Rathmann 6c0f0810f1 code cleanup 2020-12-15 18:12:48 +01:00
Uwe Rathmann c1e70a2d9e more convenience methods to access skin hints 2020-12-15 07:21:12 +01:00
Uwe Rathmann f33f38bbbb some preparations for modifications with QskAspect 2020-12-13 14:23:17 +01:00
Uwe Rathmann fbf2a33a9a uncrustified 2020-12-05 15:09:31 +01:00
Uwe Rathmann 5bd66a27a8 QskRgbValue -> QskRgb 2020-08-15 13:29:17 +02:00
Uwe Rathmann 2572409791 vertical tabbars changed 2020-08-11 17:52:28 +02:00
Uwe Rathmann d0b0703551 tabview hints changed 2020-08-10 14:30:29 +02:00
Uwe Rathmann 27a95ee60f QskProgressBar improved 2020-08-06 09:28:18 +02:00
Uwe Rathmann 95d3c6e37b QskProgressBar improved 2020-08-03 08:02:13 +02:00
Uwe Rathmann cad27956e6 QskValueBar -> QskProgressBar 2020-08-01 17:51:45 +02:00
Uwe Rathmann 7cd4b940aa QskValueBar added 2020-07-31 16:57:22 +02:00
Uwe Rathmann 53e924a999 flickable tabbars 2020-03-13 07:39:31 +01:00
Uwe Rathmann f8c04461a3 optional QskTextLabel::Panel added 2019-12-15 13:57:19 +01:00
Uwe Rathmann 9dbf34cea2 unused padding removed 2019-09-02 18:29:45 +02:00
Uwe Rathmann 309106965d QskAnimationHint::UpdateFlag introduced 2019-06-22 16:26:10 +02:00
Uwe Rathmann f8c57f7a7e making gcc4 happy 2019-06-19 13:59:07 +02:00
Uwe Rathmann 9ba37738af tabbars for all edges ( left, right, top, bottom ) 2019-04-17 16:33:17 +02:00
Uwe Rathmann 2373761e2d tabbutton hint fixed 2019-04-17 15:38:43 +02:00
Uwe Rathmann 053fbe1ad2 obsolete assignment removed 2019-04-17 15:36:17 +02:00
Uwe Rathmann 250cce0d76 using feature files 2019-04-02 09:07:09 +02:00
Uwe Rathmann ba95c58aa2 CONFIG+=hide_symbols added 2019-04-01 17:41:21 +02:00
Uwe Rathmann 7cbe60f5fc project file include mechanism based on QMAKEFEATURES 2019-03-31 13:05:25 +02:00
Uwe Rathmann 6a82c9ba22 cleaning up qskLibraryTarget/qskAddLibrary 2019-03-09 16:43:47 +01:00
Uwe Rathmann e1ca897478 uncrustified 2019-01-07 09:13:53 +01:00
Uwe Rathmann 5da92830df QskSubWindow titleBar improvements 2018-10-29 20:11:48 +01:00
Uwe Rathmann adaee2b5ab install rues 2018-10-26 09:04:08 +02:00
Uwe Rathmann 19df7461c0 dllimport/dllexport stuff 2018-10-12 08:03:03 +02:00
Uwe Rathmann 0a92cb82db playing with clang-format 2018-08-03 08:15:28 +02:00
Uwe Rathmann 68bc2f032c dh 2018-07-31 17:32:25 +02:00
Uwe Rathmann e195614654 input panel again 2018-06-12 08:20:48 +02:00
Uwe Rathmann 3ffd9b3a71 input panel improved 2018-04-30 10:03:51 +02:00
Uwe Rathmann 6e2e80d2de QskTextInput/QskInputPanel improvements 2018-04-18 19:41:46 +02:00
Uwe Rathmann 3f8616c084 QskTextInput improved 2018-04-18 10:46:11 +02:00
Uwe Rathmann 34cc82dd70 QskTextInput/QskInputPanel improved 2018-04-13 16:32:48 +02:00
Uwe Rathmann 546044f916 layout code with transformations 2018-04-06 18:07:12 +02:00
Uwe Rathmann 07d28529be QskVirtualKeyboard much simpler now 2018-04-06 17:30:24 +02:00
Uwe Rathmann 80c41c53e0 inputpanel subdir introduced 2018-04-06 11:27:10 +02:00
Uwe Rathmann 26417ed49a initial version of QskTextInput wrapping QQuickTextInput 2018-04-03 10:47:21 +02:00
Peter Hartmann b497b776ae merge changes from downstream (#56)
* keyboard: Rename some classes

* keyboard: adapt some files from downstream
2018-03-28 18:01:25 +02:00
Peter Hartmann b68fc92cc9 keyboard: fix layout calculation 2018-03-28 15:49:45 +02:00
Peter Hartmann c1945a00ec keyboard skins: remove commented lines 2018-03-28 15:14:30 +02:00
Peter Hartmann a28909327b Add subcontrol for input panel 2018-03-27 16:40:53 +02:00
Peter Hartmann 80249f0c30 QskInputPanel: Support margins 2018-03-27 16:39:54 +02:00
Peter Hartmann debd286b4d input panel: Apply style to new input panel 2018-03-27 16:38:42 +02:00
Peter Hartmann e365592457 new input panel code 2018-03-27 16:37:27 +02:00
Uwe Rathmann 1d086d9051 project file fixed 2018-02-27 08:27:03 +01:00
Uwe Rathmann 4f6bf75426 some auto scrolling modes added 2018-01-16 12:13:38 +01:00
Uwe Rathmann 6813d643d3 skins factories can be loaded as plugins 2018-01-03 11:57:05 +01:00