Commit Graph

343 Commits

Author SHA1 Message Date
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
laserpants 0a637bf140 implement basic Thumb widget painting 2016-03-26 15:58:01 +03:00
laserpants c86ebb1c7d add internal Thumb widget for Toggle 2016-03-26 15:42:21 +03:00
laserpants 72ca134fc1 paint track for toggle component 2016-03-26 15:38:24 +03:00
laserpants 3871deda30 remove debug output 2016-03-26 15:20:23 +03:00
laserpants b6c862e2d5 make mental note that QAbstractButton subclass needs to implement sizeHint 2016-03-26 15:17:46 +03:00
laserpants 401bf7a95a insert boilerplate class definition 2016-03-26 13:37:48 +03:00
laserpants c0ceddafa4 add override compiler macro 2016-03-26 13:37:26 +03:00
laserpants 0271eb0df7 code style 2016-03-26 13:36:59 +03:00
laserpants 6c2665ff6f add override compiler macro 2016-03-26 13:36:44 +03:00
laserpants 902b7d4bd8 add boilerplate code for Toggle class 2016-03-26 00:57:51 +03:00
laserpants ef57d5b79d simplify slider code 2016-03-26 00:27:49 +03:00
laserpants db1c8ddee4 simplify code 2016-03-25 23:37:59 +03:00
laserpants 9440519bc8 fix handle positioning 2016-03-25 23:30:35 +03:00
laserpants b07e24edcc implement correct slider handle positioning 2016-03-24 08:52:27 +03:00
laserpants bd5a9adfea implement slider functionality 2016-03-23 08:35:41 +03:00
laserpants dcef5d8ba5 add slider example for vertical slider 2016-03-22 18:05:02 +03:00
laserpants c8d3d56a96 reverse shadow animation direction for buttons 2016-03-22 17:44:59 +03:00
laserpants d27a7eead8 add Slider component boilerplate 2016-03-22 17:16:49 +03:00
laserpants 04d8f64d2c use custom drop shadow effect in AppBar 2016-03-22 16:51:16 +03:00
laserpants 5ca231cdcb set animation start values to defaults 2016-03-22 12:53:10 +03:00
laserpants bb34b97f74 make getStyleOption protected 2016-03-22 12:50:33 +03:00
laserpants 9e710035f4 make getStyleOption protected 2016-03-22 12:49:50 +03:00
laserpants 28b063e591 animate drop shadow on RaisedButton 2016-03-22 12:48:59 +03:00
laserpants db345d5735 fill button background 2016-03-22 11:54:01 +03:00
laserpants 7dc4fcca89 implement RaisedButton 2016-03-22 11:50:48 +03:00
laserpants afc1389112 add RaisedButton component 2016-03-22 11:50:12 +03:00
laserpants 64fa985928 make Style class singleton 2016-03-20 19:43:05 +03:00
laserpants fc933ae16c set table column resize mode to strech 2016-03-20 12:17:59 +03:00
laserpants a24c010be1 implement basic Table component 2016-03-20 11:56:51 +03:00
laserpants e3d64f989a make icon button geometry behave nicely 2016-03-19 23:31:22 +03:00
laserpants e1a44b78db update ripple references 2016-03-19 14:12:14 +03:00
laserpants 709aa9e58b move components to separate directory 2016-03-19 14:07:25 +03:00