Commit graph

307 commits

Author SHA1 Message Date
Hugo Pereira Da Costa
3d99880d86 fixed corner rendering to match stronger main window backgrounds
svn path=/trunk/KDE/kdebase/workspace/; revision=1050773
2009-11-18 07:31:34 +00:00
Hugo Pereira Da Costa
4b6c98b7ac use bias to set window state glow intensity and have emulate faster responding animations
svn path=/trunk/KDE/kdebase/workspace/; revision=1050705
2009-11-17 22:26:36 +00:00
Hugo Pereira Da Costa
045daadccb used external lib/oxygenanimation class to handle animations in place of QTimeLine. This will make transition to Qt Kinetic easier
svn path=/trunk/KDE/kdebase/workspace/; revision=1050690
2009-11-17 21:56:04 +00:00
Lucas Murray
00e131a1a5 Allow window tabbing titlebar actions to be configurable; Set default
middle-click titlebar action to tab drag; Fix KCM config file corruption
caused by r1015273.
BUG: 214898

svn path=/trunk/KDE/kdebase/workspace/; revision=1050309
2009-11-17 07:17:49 +00:00
Hugo Pereira Da Costa
f11a5ad36f added Q_DECLARE_OPERATORS_FOR_FLAGS for AnimationTypes and simplified calls to enum in OxygenClient accordingly
svn path=/trunk/KDE/kdebase/workspace/; revision=1050095
2009-11-16 16:11:45 +00:00
Lucas Murray
27d13ea5fb Fix compile on 64-bit systems.
svn path=/trunk/KDE/kdebase/workspace/; revision=1049438
2009-11-15 09:39:50 +00:00
Hugo Pereira Da Costa
8fb19a44e7 make sure separators are properly drawn when dragging out one tab
svn path=/trunk/KDE/kdebase/workspace/; revision=1049387
2009-11-15 09:14:43 +00:00
Hugo Pereira Da Costa
14ffab1aa5 more tab glitches fixed. Use full-width, and hide buttons and separator when there is only one tab left at drag-leave
svn path=/trunk/KDE/kdebase/workspace/; revision=1049363
2009-11-15 07:27:49 +00:00
Hugo Pereira Da Costa
592606b79c first move, then leave, when forcing dragLeave animation. This avoids glitch at shrinking active tab
svn path=/trunk/KDE/kdebase/workspace/; revision=1049359
2009-11-15 06:32:34 +00:00
Hugo Pereira Da Costa
51374ce5db added a 50ms timer when creating drag to force animation when dragMove and dragLeave events are lost
svn path=/trunk/KDE/kdebase/workspace/; revision=1049358
2009-11-15 06:28:40 +00:00
Hugo Pereira Da Costa
d5cf53c828 revert back to not starting animation in mouseMoveEvent: it creates more glitches
svn path=/trunk/KDE/kdebase/workspace/; revision=1049354
2009-11-15 05:11:58 +00:00
Hugo Pereira Da Costa
4f49140a94 start drag animation immediately in mouseMoveEvent, rather than waiting for dragMove/dragLeave event. Removed some obsolete commented lines. Removed useless Oxygen:: namespace prefix
svn path=/trunk/KDE/kdebase/workspace/; revision=1049351
2009-11-15 04:49:23 +00:00
Lucas Murray
a0d07d12a2 Merged r970865:1049322 from /branches/work/kwin-tabbing
Adds window tabbing support to KWin.
FEATURE: 42023

svn path=/trunk/KDE/kdebase/workspace/; revision=1049334
2009-11-15 03:24:04 +00:00
Hugo Pereira Da Costa
3c63918fd5 removed useless active flag from 'titlebarcontrastcolor'
svn path=/trunk/KDE/kdebase/workspace/; revision=1048900
2009-11-14 05:19:40 +00:00
Hugo Pereira Da Costa
9ff89e1768 Added contrast pixel on titlebar text. This creates 'carved-in' font, as a possible replacement to bold.
Implemented after discussion with pinheiro.

svn path=/trunk/KDE/kdebase/workspace/; revision=1048886
2009-11-14 04:19:09 +00:00
Hugo Pereira Da Costa
f08d982b15 - made distance between window border and first button smaller by 2 pixels
- set default spacing between buttons to 3 pixels
- added 'hidden' option to disable the above
- removed extra spacing before close button in default button layout, since the 3 
pixels above should be enough

svn path=/trunk/KDE/kdebase/workspace/; revision=1047309
2009-11-10 23:11:08 +00:00
Hugo Pereira Da Costa
92a21a8ee2 fixed bug on bottom border when window is maximized
svn path=/trunk/KDE/kdebase/workspace/; revision=1046964
2009-11-10 02:44:19 +00:00
Hugo Pereira Da Costa
d4344b7bba added the possibility to hide decoration 'titlebar', but not decoration 'border' in window-specific override rules
svn path=/trunk/KDE/kdebase/workspace/; revision=1046005
2009-11-07 03:33:53 +00:00
Laurent Montel
966c616f34 Fix ui files
svn path=/trunk/KDE/kdebase/workspace/; revision=1043304
2009-11-01 10:24:33 +00:00
Lucas Murray
a6e68a5f6f Revert failed Krazy changes.
svn path=/trunk/KDE/kdebase/workspace/; revision=1043205
2009-11-01 03:36:38 +00:00
Hugo Pereira Da Costa
23493a6dee used radiobuttons in place of checkboxes for windo property
svn path=/trunk/KDE/kdebase/workspace/; revision=1042933
2009-10-31 05:33:00 +00:00
Hugo Pereira Da Costa
cbdda06f1d fixed incorrect header
svn path=/trunk/KDE/kdebase/workspace/; revision=1042930
2009-10-31 04:36:42 +00:00
Hugo Pereira Da Costa
83c5c770fa used UI for main config dialog
svn path=/trunk/KDE/kdebase/workspace/; revision=1042928
2009-10-31 04:25:38 +00:00
Hugo Pereira Da Costa
cc91de00aa used UI for exceptionListWidget
svn path=/trunk/KDE/kdebase/workspace/; revision=1042922
2009-10-31 03:54:11 +00:00
Hugo Pereira Da Costa
5d2b90f5d4 use UI file for shadowConfiguration
svn path=/trunk/KDE/kdebase/workspace/; revision=1042919
2009-10-31 03:16:51 +00:00
Hugo Pereira Da Costa
326407d993 use UI for exception dialog
svn path=/trunk/KDE/kdebase/workspace/; revision=1042918
2009-10-31 02:46:37 +00:00
Lucas Murray
8a8428e41c Less Krazy warnings please.
svn path=/trunk/KDE/kdebase/workspace/; revision=1042572
2009-10-30 06:51:59 +00:00
Laurent Montel
5d854c7237 Fix ui files
svn path=/trunk/KDE/kdebase/workspace/; revision=1042106
2009-10-29 08:04:36 +00:00
Hugo Pereira Da Costa
af01b788dc used ui file for detectWidget
svn path=/trunk/KDE/kdebase/workspace/; revision=1042063
2009-10-29 02:55:41 +00:00
Hugo Pereira Da Costa
3e5959d829 fixed filename in comment header
svn path=/trunk/KDE/kdebase/workspace/; revision=1042062
2009-10-29 02:54:06 +00:00
Hugo Pereira Da Costa
4a31a25b40 removed useless oxygen/CVS tags
svn path=/trunk/KDE/kdebase/workspace/; revision=1042061
2009-10-29 02:53:29 +00:00
Hugo Pereira Da Costa
d3f6aca4ee re-enabled sizeGrip in preview mode, with correct handling of parent windowID
svn path=/trunk/KDE/kdebase/workspace/; revision=1037767
2009-10-19 22:51:31 +00:00
Hugo Pereira Da Costa
393b37e211 temporarily disabled painting of size grip in preview widget, cause it crashes systemsettings randomly - due to X11 hack
svn path=/trunk/KDE/kdebase/workspace/; revision=1037743
2009-10-19 21:35:38 +00:00
Hugo Pereira Da Costa
60bf914cee fixed bug on shadow rendering when size < 5 - in which case only the round corner should be rendered
svn path=/trunk/KDE/kdebase/workspace/; revision=1037681
2009-10-19 19:43:59 +00:00
Hugo Pereira Da Costa
64b80fc1fe Fixed background role for button icon. CCBUG: 156518
svn path=/trunk/KDE/kdebase/workspace/; revision=1037374
2009-10-18 21:14:40 +00:00
Hugo Pereira Da Costa
f761aceb8b removed background window rendering from button paintEvent, as transparent background is good enough. Moved all corresponding method in oxygenClient to 'protected'. This allows faster repaint.
svn path=/trunk/KDE/kdebase/workspace/; revision=1036357
2009-10-17 06:57:17 +00:00
Hugo Pereira Da Costa
2d88428b6d removed 'x11util'. Use kdecoration API instead
svn path=/trunk/KDE/kdebase/workspace/; revision=1036345
2009-10-17 03:56:04 +00:00
Hugo Pereira Da Costa
4e1fd9e494 Do not create sizeGrip as a child of KDecoration::Widget since it is reparented. That allows one not to make it a Qt::ToolTip (which for some reason makes kwin use 100% cpu), and prevents it to be registered by paintRedirector
svn path=/trunk/KDE/kdebase/workspace/; revision=1036320
2009-10-17 00:18:40 +00:00
Hugo Pereira Da Costa
07cab1bae9 optimized painting in outline mode (by avoiding unnecessary painting over) and added contrast pixel between window body and outlined border
svn path=/trunk/KDE/kdebase/workspace/; revision=1036214
2009-10-16 20:27:43 +00:00
Hugo Pereira Da Costa
c2706aa181 set Qt::ToolTip flag for QSizeGrip, so that it gets hidden to paintRedirector
svn path=/trunk/KDE/kdebase/workspace/; revision=1036155
2009-10-16 18:01:01 +00:00
Hugo Pereira Da Costa
444427464b removed useless kdebug messages
svn path=/trunk/KDE/kdebase/workspace/; revision=1036118
2009-10-16 16:32:51 +00:00
Hugo Pereira Da Costa
88cfb2df63 changed back 'setDirty' method into 'update' method. kwin/paintRedirector should be fixed though, so that buttons created after the deco is registered for redirection are properly accounted for
svn path=/trunk/KDE/kdebase/workspace/; revision=1036114
2009-10-16 16:25:02 +00:00
Hugo Pereira Da Costa
c0c3189ef2 simplified color handling in renderFloatFrame
svn path=/trunk/KDE/kdebase/workspace/; revision=1035784
2009-10-15 20:59:24 +00:00
Hugo Pereira Da Costa
5286a2f849 fixed colors to use oxygenHelper
svn path=/trunk/KDE/kdebase/workspace/; revision=1035714
2009-10-15 17:47:55 +00:00
Hugo Pereira Da Costa
e26538e368 port design changes from tabbing branch to trunk: new title outline design; simplification of layout metrics; proper handling of text ellision; simplification of shadow cache; addition of to local button types. In oxygen.h also temporarily added missing enumeration to ease compilation against kde4.3
svn path=/trunk/KDE/kdebase/workspace/; revision=1035658
2009-10-15 16:03:30 +00:00
Hugo Pereira Da Costa
253892d5dd More code cleanup: moved declaration of 'reduceContrast' and 'renderDot' global functions to oxygenclient.h. Added 'renderFlags' to control which part of the button is to be drawn. Also added flag to force button as 'inactive' even if belonging to an active window (needed for window tabs)
svn path=/trunk/KDE/kdebase/workspace/; revision=1035245
2009-10-14 15:36:38 +00:00
Hugo Pereira Da Costa
e748b5244b More code cleanup: moved declaration of 'reduceContrast' and 'renderDot' global functions to oxygenclient.h. Added 'renderFlags' to control which part of the button is to be drawn. Also added flag to force button as 'inactive' even if belonging to an active window (needed for window tabs)
svn path=/trunk/KDE/kdebase/workspace/; revision=1035241
2009-10-14 15:36:08 +00:00
Hugo Pereira Da Costa
f898d1193f more cleanup. Made sure methods are declared and implemented in the same order (blush)
svn path=/trunk/KDE/kdebase/workspace/; revision=1035206
2009-10-14 14:37:58 +00:00
Hugo Pereira Da Costa
01ae18d6a7 moved dots and float frame rendering to separate methods (for clean-up and to make merging with tab branch easier)
svn path=/trunk/KDE/kdebase/workspace/; revision=1035200
2009-10-14 14:28:37 +00:00
Hugo Pereira Da Costa
cef60f90cb removed useless colorCacheInvalid_ member
svn path=/trunk/KDE/kdebase/workspace/; revision=1034964
2009-10-14 02:55:40 +00:00