Commit Graph

382 Commits

Author SHA1 Message Date
laserpants 84c3ce96b4 make Text Field pimpl class 2016-06-14 18:30:46 +03:00
laserpants c9908a41c4 more boilerplate 2016-06-14 10:50:52 +03:00
laserpants 3f73d9140b remove old files 2016-06-14 02:29:05 +03:00
laserpants fcde226168 refactor checkbox and radiobutton code 2016-06-14 02:27:37 +03:00
laserpants 54028ac4d5 implement checkbox 2016-06-13 14:49:43 +03:00
laserpants ed66ccc0f0 make Radio Button inherit from QAbstractButton instead of QRadioButton 2016-06-13 11:32:27 +03:00
laserpants 26ca77281c fix disabled checked appearance 2016-06-13 09:09:14 +03:00
laserpants 3493507c12 implement Radio Button 2016-06-13 02:19:14 +03:00
laserpants 309e9eb5a8 make state machine member pointer type 2016-06-13 00:17:46 +03:00
laserpants 57e77ecc04 use switch in event handlers instead of if-then-else clause 2016-06-12 22:57:31 +03:00
laserpants a7a4ad9e81 implement basic Radio Button functionality 2016-06-12 22:36:51 +03:00
laserpants fbcc7b2bf7 create separate class for radiobutton icon 2016-06-12 22:36:12 +03:00
laserpants 07ce6b642f make Radio Button pimpl class 2016-06-12 19:02:45 +03:00
laserpants 798aeea5f7 remove unnecessary include 2016-06-12 18:53:04 +03:00
laserpants 09405ad0be add clipping to FAB ripple 2016-06-12 18:17:27 +03:00
laserpants 065a2c6304 style FAB and Raised Button for disabled mode 2016-06-12 17:40:56 +03:00
laserpants 49f9937545 implement basic FAB style and functionality 2016-06-12 16:37:46 +03:00
laserpants 7f8c9312d9 add basic FAB painting 2016-06-12 14:05:31 +03:00
laserpants 1ed5df9999 remove unnecessary Q_D macro 2016-06-12 14:05:17 +03:00
laserpants 0934f7bb01 add reminder that checkable behavior is not implemented 2016-06-12 14:03:59 +03:00
laserpants 04d861e8ff make tabs ripple centered 2016-06-12 13:53:41 +03:00
laserpants e5a4da2d16 add more FAB boilerplate 2016-06-12 13:26:38 +03:00
laserpants 144479cf7b remove constructor default argument in implementation 2016-06-12 12:03:29 +03:00
laserpants 82e8023637 boilerplate for new components 2016-06-12 11:21:58 +03:00
laserpants 7e6fae019e adjust hover bg opacity 2016-06-12 04:01:32 +03:00
laserpants e8d4374bd3 tweak ripple animation parameters 2016-06-12 03:56:37 +03:00
laserpants b450e57b3b add showHalo property to Flat Button 2016-06-11 19:44:16 +03:00
laserpants 9ddb4d6fb0 shade inactive tabs 2016-06-11 18:43:33 +03:00
laserpants 2a7f9cdd56 paint tab icon 2016-06-11 15:10:59 +03:00
laserpants 4cfd16485c refactor tabs to support centered icons 2016-06-11 15:01:48 +03:00
laserpants 0229ce9891 avoid code duplication 2016-06-11 15:01:32 +03:00
laserpants 46105dceae add appearance properties to Slider 2016-06-10 19:12:10 +03:00
laserpants 2394ed0be8 adjust ripple animation duration 2016-06-10 14:33:44 +03:00
laserpants 0fc3fe683e draw slider thumb as outline when disabled and value is min. 2016-06-10 14:33:17 +03:00
laserpants a54da52665 fix Flat Button focus animation 2016-06-09 11:02:57 +03:00
laserpants 0d270024b8 add toggle color properties 2016-06-05 22:23:16 +03:00
laserpants 6bfbc342b0 fix weird toggle behavior 2016-06-05 16:28:01 +03:00
laserpants ead266b05a refactor component color properties 2016-06-05 15:07:56 +03:00
laserpants c500b3c218 tweak flat button animations 2016-06-01 09:12:25 +03:00
laserpants 364873565c set opaque mode for tabs 2016-05-31 10:08:10 +03:00
laserpants adfcfdc398 refactor theming code 2016-05-31 02:08:52 +03:00
laserpants e3517e11d1 refactor theme hooks 2016-05-30 19:03:41 +03:00
laserpants 0a79208ab4 add various Qt properties to Flat Button 2016-05-30 16:10:15 +03:00
laserpants da41a3d2d4 remove extra blank line 2016-05-30 15:04:52 +03:00
laserpants b86555ff0c remove old tab sources 2016-05-30 11:36:32 +03:00
laserpants 3aad4ce323 remove old commented out code 2016-05-30 11:26:12 +03:00
laserpants f422cd2106 pimplify Tabs component 2016-05-30 11:25:02 +03:00
laserpants 83ff691c6a reimplement Tabs component as pimpl class 2016-05-30 09:51:46 +03:00
laserpants d2002ad5e5 introduce corner radius property for flat button 2016-05-30 01:25:17 +03:00
laserpants 0ec35cbd70 re-implement icon button as pimpl class 2016-05-30 00:26:42 +03:00
laserpants 76817345c1 adjust opacity on disabled toggle background 2016-05-29 22:25:43 +03:00
laserpants a6bef3d327 implement toggle animations 2016-05-29 22:12:02 +03:00
laserpants e51251408b remove old commented code 2016-05-29 16:59:44 +03:00
laserpants 00662865f5 add toggle animations 2016-05-29 16:42:13 +03:00
laserpants e97d88b5a9 implement toggle state machine 2016-05-29 14:58:20 +03:00
laserpants 1e77ac42a2 reimplement Toggle using pimpl idiom 2016-05-29 13:25:14 +03:00
laserpants 26072c8373 make toggle pimpl class 2016-05-29 13:08:55 +03:00
laserpants 72162066b4 Merge branch 'master' into toggle 2016-05-29 12:34:26 +03:00
laserpants c527c1796d fix incorret slider include 2016-05-29 12:17:06 +03:00
laserpants 608c7defa5 implement Toggle class from scratch 2016-05-29 11:05:08 +03:00
laserpants 0b393ced08 add private Toggle class 2016-05-29 10:58:27 +03:00
laserpants 023f28610f pimplify toggle class 2016-05-29 00:01:24 +03:00
laserpants 20db7569f3 implement raised button disabled look 2016-05-28 17:08:05 +03:00
laserpants f541a86301 make halo animation use float precision 2016-05-28 16:58:29 +03:00
laserpants 7a70648dda fix raised button focus halo animation 2016-05-28 15:59:44 +03:00
laserpants 921bc2aff4 make it possible to center ripple in flat button 2016-05-28 11:22:43 +03:00
laserpants 078c3699cc add focus halo animation to buttons 2016-05-28 10:52:03 +03:00
laserpants a9d0d1cc1e experiment with focus animation 2016-05-27 17:12:16 +03:00
laserpants 37b4c3c531 adjust RaisedButton colors 2016-05-25 00:13:01 +03:00
FarmRadio Hangar 18fdf9c03c animate Raised Button 2016-05-18 15:08:11 +03:00
FarmRadio Hangar 6a27b85924 re-implement Raised Button animations as state machine 2016-05-17 16:58:46 +03:00
FarmRadio Hangar c2cc1af580 re-implement Raised Button as pimpl class 2016-05-17 16:43:46 +03:00
FarmRadio Hangar 7c39d083bb clean up pimpl code 2016-05-17 15:39:20 +03:00
FarmRadio Hangar 0f4020d193 fix pimpl inheritance for Raised Button class 2016-05-17 15:26:50 +03:00
laserpants eea9f4a90d remove unused textColor accessor in FlatButtonPrivate 2016-05-15 23:04:21 +03:00
laserpants d4ed0ea51a align flat button background colors with button role 2016-05-15 22:51:01 +03:00
laserpants 2870ca75a3 add rounded corners to flat button background 2016-05-15 21:41:19 +03:00
laserpants 32272b05eb minor adjustments on Slider animation params 2016-05-15 21:35:50 +03:00
laserpants 1974fef9e8 remove unused track width property 2016-05-15 12:28:34 +03:00
laserpants 6dfd0ab83d tweak flat button animation parameters 2016-05-15 12:17:07 +03:00
laserpants e646cc0332 add flat button internal class 2016-05-15 10:08:23 +03:00
laserpants 80d5e0acb6 adjust flat button colors according to button role 2016-05-15 09:19:45 +03:00
laserpants 3d2084d99e simplify setRole method 2016-05-14 20:13:32 +03:00
laserpants c86dee02f3 set palette for flat button 2016-05-14 20:00:31 +03:00
laserpants a7da6ce162 implement flat button color roles 2016-05-14 15:18:57 +03:00
laserpants 4bc4d6aa92 make FlatButton pimpl 2016-05-14 14:06:20 +03:00
laserpants c4a17f9dfa refactor flat button 2016-05-14 13:41:40 +03:00
laserpants 51cf801c88 handle overlay geometry 2016-05-14 12:42:15 +03:00
laserpants cdd16e1230 rename valueChanged signal to changed 2016-05-14 12:10:30 +03:00
laserpants e0dd848eb6 refactor flat button code 2016-05-14 11:59:08 +03:00
laserpants d39db592a8 refactor flat button code 2016-05-14 11:52:28 +03:00
laserpants b0d2a56905 simplify slider state machine code 2016-05-14 11:31:54 +03:00
laserpants 0c7920188b move internal slider classes to new file 2016-05-13 22:35:51 +03:00
FarmRadio Hangar 62dc4ada9f move #endif directive again 2016-05-13 17:35:04 +03:00
FarmRadio Hangar 1b79a94f26 tweak slider animations 2016-05-13 09:44:40 +03:00
laserpants d0959864e7 move #endif directive in private header files 2016-05-12 23:55:19 +03:00
laserpants 58f157db4b make slider behave nicely 2016-05-12 23:13:45 +03:00
laserpants 66084f8e4a clean up slider track painter code 2016-05-12 19:59:18 +03:00
FarmRadio Hangar 2b50f65438 snapshot 2016-05-12 17:34:06 +03:00
FarmRadio Hangar 40f311bdb7 move Slider track to separate class 2016-05-12 14:19:59 +03:00
FarmRadio Hangar 699bc77faa remove unnecessary friend declarations 2016-05-12 12:53:05 +03:00
FarmRadio Hangar 360b3023ec move SLIDER_MARGIN macro 2016-05-12 12:49:46 +03:00
FarmRadio Hangar af2cb36068 rename trackGeometry and thumbGeometry to *BoundingRect 2016-05-12 12:19:00 +03:00
FarmRadio Hangar 2b99ca9f90 fix weird bug when changing Slider from minValue to maxValue 2016-05-12 12:00:19 +03:00
FarmRadio Hangar 9d9a91cda6 move SliderPrivate::init() code to constructor 2016-05-12 11:53:33 +03:00
FarmRadio Hangar 2d2a4bc31f move Slider state machine to separate class 2016-05-12 11:39:17 +03:00
FarmRadio Hangar 41646d069c get rid of misleading trackColor property 2016-05-12 10:17:45 +03:00
laserpants 5a76f719b9 refactor slider a bit 2016-05-12 09:37:30 +03:00
laserpants 7a9acce2d1 add theme class 2016-05-12 01:18:09 +03:00
laserpants e17b6367b1 add property to change track width 2016-05-11 20:26:19 +03:00
laserpants be270caa5a add comment 2016-05-11 18:44:43 +03:00
laserpants 61c2364fbb move initialization code to private class 2016-05-11 18:34:17 +03:00
FarmRadio Hangar 4ef57f8d3a fix slider state machine issue 2016-05-11 17:23:17 +03:00
laserpants c17500ff37 tweak the slider even more 2016-05-11 09:09:19 +03:00
FarmRadio Hangar 0ef2d96318 make pageStepMode default false 2016-05-10 17:29:50 +03:00
FarmRadio Hangar d388183f84 tweak various slider settings 2016-05-10 17:17:51 +03:00
laserpants e19f8b4fa4 snapshot 2016-05-10 09:25:44 +03:00
laserpants d881c4c898 snapshot 2016-05-09 23:32:16 +03:00
laserpants eb7b7dfda1 animate halo 2016-05-05 01:34:16 +03:00
laserpants 24461cddd5 add halo 2016-05-04 23:44:33 +03:00
laserpants 55ee28ff97 implement QAbstractSlider behavior 2016-05-04 22:26:19 +03:00
laserpants 6b354ecd04 implement most of slider functionality 2016-05-04 01:40:34 +03:00
laserpants 0f1ad9ad85 fix tracking behavior 2016-05-03 08:53:21 +03:00
laserpants 6fb7183006 implement drag behavior 2016-05-03 08:48:43 +03:00
laserpants fc253ecd11 implement mouse release handler 2016-05-02 23:57:57 +03:00
laserpants 07720c5f66 set correct slider thumb position from current value 2016-05-02 23:35:04 +03:00
laserpants d68dd2e6cf draw additional debug information 2016-05-02 22:13:45 +03:00
laserpants 227e269820 implement hover event handlers 2016-05-02 02:22:43 +03:00
laserpants 764b1a6a64 draw basic thumb geometry 2016-05-02 00:44:38 +03:00
laserpants 97cd0651d6 draw basic Slider track geometry 2016-05-02 00:10:31 +03:00
laserpants b533ae5e91 paint Slider debug geometry 2016-05-01 23:21:48 +03:00
laserpants af95350a37 re-implement Slider using Pimpl 2016-05-01 22:56:39 +03:00
laserpants 4410730f22 keep working on the Slider 2016-05-01 20:07:21 +03:00
laserpants 1d47c85c49 clean up Toggle implementation 2016-05-01 20:05:12 +03:00
laserpants 5eac1af474 avoid short variable names 2016-05-01 16:34:44 +03:00
laserpants 6f1b058ccd animate slider handle when value goes to minimum 2016-05-01 16:29:33 +03:00
laserpants 9c15f89a17 draw Slider handle as outline when value = minimum 2016-05-01 15:54:37 +03:00
laserpants 5ccf1370c7 remove unused member _eventPosition 2016-05-01 15:20:26 +03:00
laserpants f31d8adddc use floating point precision in halo animation 2016-05-01 15:19:28 +03:00
laserpants 48f5055d4e implement Slider halo animation 2016-05-01 15:13:37 +03:00
laserpants 9b47d76d02 refactor slider code 2016-05-01 12:10:24 +03:00
laserpants 401b394fcd adjust App Bar font size 2016-05-01 12:10:13 +03:00
laserpants f246459c5d remove geometry rect from slider 2016-04-30 20:30:55 +03:00
laserpants 9300275ae5 compensate space around slider for scaling of handle 2016-04-30 20:27:55 +03:00
laserpants 955edc2f6a zoom slider handle on mouse press 2016-04-30 13:54:59 +03:00
laserpants f6c8b74ddd mess around with slider thumb style 2016-04-30 13:44:45 +03:00
laserpants 6440b937db make slider pretty 2016-04-30 13:22:49 +03:00
laserpants d92292e302 scrap old style file 2016-04-30 12:53:58 +03:00
laserpants 630440b50b set drop shadow opacity 2016-04-29 08:33:20 +03:00
laserpants b9d65c07d8 set drop shadow opacity 2016-04-29 08:32:47 +03:00
laserpants 67b4805d28 adjust Flat Button font style 2016-04-29 06:37:25 +03:00
laserpants 4eccafcd01 adjust Menu Item style 2016-04-29 06:37:05 +03:00
laserpants 8192532db5 change easing curve 2016-04-28 11:10:22 +03:00
laserpants e8c1b06aa4 tweak menu animation 2016-04-28 10:34:25 +03:00
laserpants 15c970ff51 tweak menu animation 2016-04-28 03:48:08 +03:00
laserpants 1395f1c1eb adjust menu geometry on animation progress instead of zoom effect 2016-04-28 00:28:23 +03:00
laserpants 61049f2944 add drop shadow to menu 2016-04-28 00:01:27 +03:00
laserpants d2add935b0 make animation in Raised Button consistent with Material style 2016-04-27 17:44:40 +03:00
laserpants 9271838d70 implement icon menu zoom effect 2016-04-27 02:57:16 +03:00
laserpants 8a0daa0c8f implement toggle action for icon menu 2016-04-27 02:14:39 +03:00
laserpants bb2f00bab1 set checkable property for icon menu 2016-04-26 22:51:31 +03:00
laserpants e4b675d821 remove TransparentForMouseEvents attribute from icon menu 2016-04-26 22:45:28 +03:00
laserpants 267cceb4e7 fix weird overlay behavior in Icon Menu example widget 2016-04-26 22:30:07 +03:00
laserpants 75d4dd7194 implement Icon Menu 2016-04-25 09:16:54 +03:00
laserpants 7e7f78bc13 implement Icon Menu and examples 2016-04-25 02:37:59 +03:00
laserpants 81a1afea6f add examples for IconMenu 2016-04-25 01:26:28 +03:00
laserpants 82b5b900f4 clean up Menu item size rules 2016-04-25 01:19:13 +03:00
laserpants 535200118b keep list of pointers to MenuItems in Menu class 2016-04-24 14:38:58 +03:00
laserpants e2d4ebd560 Merge branch 'master' of https://github.com/laserpants/qt-material-widgets 2016-04-24 12:30:35 +03:00
laserpants 5463f5e729 update slider value 2016-04-22 23:31:55 +03:00
laserpants fb58d275c1 add Scrollbar stub 2016-04-18 16:08:45 +03:00
laserpants 685ff75c7c simplify IconButton code 2016-04-18 13:15:57 +03:00
laserpants bce8535b16 implement Checkbox paintEvent 2016-04-18 11:36:30 +03:00
laserpants d2e33cc17e implement addMenuItem method 2016-04-18 10:36:40 +03:00
laserpants 52930a6132 implement Menu layout 2016-04-18 10:11:09 +03:00
laserpants 96360a2310 add menu component stub 2016-04-18 09:55:52 +03:00
laserpants 16129e7243 Merge branch 'master' of https://github.com/laserpants/qt-material-widgets 2016-04-17 13:59:15 +03:00
laserpants da03788d6c decrease tab underline width 2016-04-15 11:21:28 +03:00
laserpants a6038ff9f2 create animation on TextField 2016-04-14 18:15:17 +03:00
laserpants 800f5d4d33 set Avatar radius to 20 2016-04-14 17:33:33 +03:00
laserpants 2b1556d2a3 draw Avatar circle 2016-04-14 17:31:09 +03:00
laserpants 0f6d9f6aa9 add boilerplate for Avatar component 2016-04-14 17:21:28 +03:00
laserpants bde2125000 make TextField inherit QLineEdit 2016-04-14 17:11:41 +03:00
laserpants 5d8cc368fc add more boilerplate code 2016-04-14 16:47:27 +03:00
laserpants 51673cee1b make Slider inherit QAbstractSlider 2016-04-03 20:08:26 +03:00
laserpants a8ffb45ac0 fix (hopefully) weird Toggle animation behavior 2016-03-30 23:42:31 +03:00
laserpants 414b799bc1 import QDebug 2016-03-30 23:30:34 +03:00
laserpants db3439f604 log isChecked status to figure out weird Toggle animation behavior 2016-03-30 23:30:10 +03:00
laserpants 7c2c6c56d0 give sensible names to slots 2016-03-29 23:46:50 +03:00
laserpants 99ff858ced clean up Toggle component code 2016-03-29 23:28:40 +03:00
laserpants 6b57dd87dd paint progress using different color in slider 2016-03-28 17:09:40 +03:00
laserpants 82865e9e0f mess around with widget sizing 2016-03-28 11:51:24 +03:00
laserpants 19a090fd15 tweak Toggle animation 2016-03-27 22:48:32 +03:00
laserpants 3ba4032d44 adjust switch drop shadow to look smoother 2016-03-27 19:07:51 +03:00
laserpants 98308e72be simplify Slider code 2016-03-27 17:12:57 +03:00
laserpants ac314b024d implement slider handle painter 2016-03-27 17:12:35 +03:00
laserpants 5ef410e492 animate Toggle 2016-03-27 17:06:22 +03:00
laserpants 17b49b58fb add drop shadow to Toggle thumb 2016-03-27 11:02:58 +03:00
laserpants 58a54c50fb put Q_DECL_OVERRIDE pragma in correct place 2016-03-27 10:11:32 +03:00
laserpants 2229b86053 implement basic Toggle and Thumb painters 2016-03-26 19:26:39 +03:00