Hugo Pereira Da Costa
ba3b445231
fixed hotspot.
2012-05-01 17:32:28 +02:00
Hugo Pereira Da Costa
27f1f45391
implemented (partially) shadows for drag pixmaps.
2012-05-01 17:32:28 +02:00
Hugo Pereira Da Costa
06820d7c77
fixed active item detection when rendering drag pixmap.
2012-05-01 17:32:28 +02:00
Hugo Pereira Da Costa
f76b087b33
mark title transition as dirty when resizing client, to avoid flicker.
...
CCBUG: 298428
2012-04-23 11:48:30 +02:00
Hugo Pereira Da Costa
0b1f4fc1d6
cosmetics.
2012-02-29 17:17:25 +01:00
Hugo Pereira Da Costa
2eb4b96a8c
Fixed warning when rendering text on invalid rectangle;
...
Fixed painting of buttons in preview.
(thanks Martin :) )
2012-02-29 17:10:23 +01:00
Hugo Pereira Da Costa
0a7195fe22
removed unneeded check.
2012-02-29 16:54:52 +01:00
Thomas Lübking
85635dd485
fix tabbing
...
BUG: 290959
BUG: 265160
BUG: 229292
BUG: 238279
BUG: 290758
BUG: 222831
BUG: 278275
BUG: 245747
BUG: 230000
BUG: 253697
BUG: 230570
BUG: 265977
BUG: 225337
BUG: 225339
REVIEW: 103855
2012-02-11 16:30:22 +01:00
Thomas Lübking
bf88ec09ac
Revert "fix tabbing"
...
pushed out of branch, not master - leading to absent revision, found hash collision??
This reverts commit 94b2ad7b85801e37e2df4671cdc4f26b6d7e5506.
2012-02-11 16:29:14 +01:00
Thomas Lübking
d245035a17
fix tabbing
...
BUG: 290959
BUG: 265160
BUG: 229292
BUG: 238279
BUG: 290758
BUG: 222831
BUG: 278275
BUG: 245747
BUG: 230000
BUG: 253697
BUG: 230570
BUG: 265977
BUG: 225337
BUG: 225339
REVIEW: 103855
2012-02-11 16:01:41 +01:00
Hugo Pereira Da Costa
2b2a21e4d4
manually reduce shadow size in preview for better rendering.
2012-01-16 10:16:29 +01:00
Hugo Pereira Da Costa
12bcd08871
do not fade separator when it is drawn for both active and inactive windows.
2011-11-08 19:01:02 +01:00
Hugo Pereira Da Costa
885e42142f
Fixed glow animation for outlined windows.
2011-10-05 23:01:13 +02:00
Hugo Pereira Da Costa
066927ebfb
More fine tuning of window borders in outline mode.
2011-10-05 19:56:00 +02:00
Hugo Pereira Da Costa
e8addb2596
Turn off antialiasing when rendering window outline borders.
...
CCBUG: 283398
2011-10-05 18:55:45 +02:00
Luboš Luňák
2f1bb4f4a3
do not access possibly deleted memory
2011-09-30 19:24:42 +02:00
Hugo Pereira Da Costa
f435f716b8
do not paint buttons (from parent) if hidden.
2011-09-23 15:46:29 +02:00
Hugo Pereira Da Costa
c9ed76be6f
set bottom border to zero when shading windows. This makes buttons and title vertically
...
centered.
2011-09-22 22:28:24 +02:00
Hugo Pereira Da Costa
f931cd22f9
Use Client::layoutMetric to access shadowSize instead of shadowCache. This fixes some painting issues for maximized
...
windows.
2011-09-20 14:08:34 +02:00
Hugo Pereira Da Costa
01da5bb015
moved all button painting to client.
2011-09-19 15:16:43 +02:00
Montel Laurent
62c5a5e276
normalize signal/slots
2011-08-17 23:51:55 +02:00
Hugo Pereira Da Costa
c21122c863
added necessary options to configure all type of animations individually.
2011-07-18 07:36:44 +02:00
Hugo Pereira Da Costa
0ae4d9489f
always enable window grouping, when available.
...
removed corresponding config option.
2011-07-17 16:12:30 +02:00
Hugo Pereira Da Costa
05fc073439
draw background overlay pixmap manually in preview.
2011-06-30 11:43:34 +02:00
Hugo Pereira Da Costa
dfcab17585
use backing store pixmap for buttons when compositing is not active.
...
Copy parent backgronud from backing store pixmap when rendering buttons.
2011-06-28 09:24:02 +02:00
Hugo Pereira Da Costa
8361b13de9
added double buffering to oxygen-client when compositing is off;
...
force update of buttons in client->paintEvent();
call _client->paint() from Button, instead of parentWidget()->render();
2011-06-28 01:27:58 +02:00
Hugo Pereira Da Costa
c7f87d49d7
Set padding to 0 when client is maximized.
...
CCBUG: 274177
2011-05-30 17:56:50 +02:00
Hugo Pereira Da Costa
8c7585e500
do not render shadows when maximized.
...
CCBUG: 274177
2011-05-30 16:51:25 +02:00
Hugo Pereira Da Costa
c5766a5e3a
removed "shadowMode" option, since it has been obsoleted by kwin's new shadow system.
2011-05-01 11:52:22 +02:00
Hugo Pereira Da Costa
685d5b2a4b
cleanup
2011-04-21 19:14:28 +02:00
Hugo Pereira Da Costa
5a29c0b21b
added dedicated hint so that widget style can tell the decoration whether to
...
use a window pixmap or not.
2011-04-20 12:01:38 +02:00
Hugo Pereira Da Costa
d84f048b6a
moved pixmap rendering to separate method.
...
It is called independently from window background in decoration code;
It is called together with window background in style.
2011-04-20 11:28:45 +02:00
Hugo Pereira Da Costa
77dd014d8a
fixed horizontal positionning of background pixmap.
2011-04-20 10:57:40 +02:00
Hugo Pereira Da Costa
e213b3ca9f
fix gradient positionning for maximized windows
2011-04-16 13:18:45 +02:00
Hugo Pereira Da Costa
275cf05184
make sure Shadow X11 property is not set on decorated windows, since it is handled by
...
the decoration itself (and therefore should not be by kwin).
2011-04-04 09:42:11 +02:00
Hugo Pereira Da Costa
0960942f4e
cleanup variable names for consistency
2011-02-24 17:37:04 +01:00
Hugo Pereira Da Costa
488b3644d5
Changed handling of shadow overlap with window content
...
Oxygen::ShadowCache::shadowSize() now returns the shadow extend outside of the window body (the extend)
Overlab between the actual shadow pixmap and the window body is dealt with internally (by creating larger pixmaps)
This allows notably Oxygen::Client to not attempt to draw shadow when shadowSize == 0 (which was never the case
before)
2011-02-02 17:23:08 +01:00
Hugo Pereira Da Costa
92bea91686
- moved rendering of antialiased corners from Oxygen::ShadowCache to Oxygen::Client.
...
- simplified caching of ShadowCache accordingly. Notably, it should make it easier to pass the shadows to kwin.
- removed unnecessary QPainter::save()/restore() calls
- set painter AntiAliasing render hint earlier in Client::paintEvent
- modified drawing of drop target rect accordingly.
- oh. And fixed krazy warnings.
svn path=/trunk/KDE/kdebase/workspace/; revision=1217439
2011-01-27 09:40:48 +00:00
Hugo Pereira Da Costa
469ec8e686
Fixed logic for left/right bounding of titleRect.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1210067
2010-12-29 10:40:17 +00:00
Hugo Pereira Da Costa
a6425b78e2
properly set title position for "Center (Full Width)" configuration.
...
Simplified title centering logic.
svn path=/trunk/KDE/kdebase/workspace/; revision=1210060
2010-12-29 10:26:54 +00:00
Hugo Pereira Da Costa
e43eff9792
Added "Follow Style Hint" setting to the "fine tuning->background style" option
...
When selected, the decoration looks for a WM Hint set by the style, to decide whether or not it
should draw a gradient in the background.
svn path=/trunk/KDE/kdebase/workspace/; revision=1208665
2010-12-22 19:23:46 +00:00
Hugo Pereira Da Costa
796e7ff92a
Properly account for window's shaded state, and number of clients in groups when deciding whether or
...
not the titlebar should be hidden. This is half the job, cause the above does not work (yet) when
grouping windows among which one has hidden titlebar. Shading works well now, though.
CCBUG: 260815
svn path=/trunk/KDE/kdebase/workspace/; revision=1208187
2010-12-20 22:18:52 +00:00
Hugo Pereira Da Costa
1adaf8c8ea
remove use of QWeakPointer for the itemAnimationData_ object as it is unnecessary: the object is never used outside of the class
...
and is a child of the client, deleted in the client destructor, by Qt.
svn path=/trunk/KDE/kdebase/workspace/; revision=1170328
2010-08-31 14:30:17 +00:00
Hugo Pereira Da Costa
6309ac1928
OxygenClient: remove use of QWeakPointer for the glowAnimation_ as it is unnecessary: the object is never used outside of the class
...
and is a child of the client, deleted in the client destructor, by Qt.
Client, Button: removed useless acessor to the glowAnimation pointer.
svn path=/trunk/KDE/kdebase/workspace/; revision=1170327
2010-08-31 14:24:01 +00:00
Hugo Pereira Da Costa
b8137a7671
Reverted r1170209
...
because it causes crash when playing with shade and maximize (likely due to a lower-level bug in kwin)
svn path=/trunk/KDE/kdebase/workspace/; revision=1170211
2010-08-31 05:44:19 +00:00
Hugo Pereira Da Costa
943154f255
Always set bottom border to zero when window is shaded. This ensures that window title and buttons are
...
centered vertically when shading windows.
svn path=/trunk/KDE/kdebase/workspace/; revision=1170209
2010-08-31 05:16:02 +00:00
Hugo Pereira Da Costa
2947ec516b
- Simplified titleBar title color handling, moved to oxygenHelper, and cached.
...
- added some missing consts in Client.
svn path=/trunk/KDE/kdebase/workspace/; revision=1169247
2010-08-28 19:58:22 +00:00
Hugo Pereira Da Costa
18042bba95
removed all connections to QPropertyAnimation::valueChanged() and call relevant update in the 'setValue' method directly, instead
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1168989
2010-08-28 02:52:26 +00:00
Hugo Pereira Da Costa
393e2b86bc
Removed superfluous connections to animation 'finished' signal.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1168969
2010-08-28 02:02:50 +00:00
Hugo Pereira Da Costa
c709f1163f
use QPoint instead of QPointF for rendering dots.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1168961
2010-08-28 01:01:59 +00:00