Hugo Pereira Da Costa
acf1ba4717
keep button hover state even when pressed.
2011-09-22 22:22:37 +02:00
Hugo Pereira Da Costa
2ced9ec941
added comments in ::paintEvent.
2011-09-20 09:09:42 +02:00
Hugo Pereira Da Costa
58e2393d56
re-ordered button.
...
No "parentUpdate" in non-compositing mode (cause unneeded)
2011-09-19 16:23:29 +02:00
Hugo Pereira Da Costa
e22573e586
buttons
2011-09-19 15:31:18 +02:00
Hugo Pereira Da Costa
b8a767e3cf
properly update parent when button state is changed.
2011-09-19 15:20:07 +02:00
Hugo Pereira Da Costa
01da5bb015
moved all button painting to client.
2011-09-19 15:16:43 +02:00
Hugo Pereira Da Costa
3f8b4de381
try install better glow.
2011-09-16 18:31:12 +02:00
Hugo Pereira Da Costa
4732070efa
only define Shadow in scope where it is used.
2011-09-16 18:26:30 +02:00
Hugo Pereira Da Costa
bd6653ef59
Moved painting of windeco buttons to own cache in Style and deco helper;
...
Simplified decoration windeco buttons painting to use only one cache;
Renamed windeco button painting to dockWidgetButton painting for style.
2011-09-15 23:22:45 +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
db297dee87
fixed unbalanced save/restore
2011-07-02 13:13:58 +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
d3d5d9b9d3
Merge branch 'master' into master-no-composite
2011-06-28 09:09:50 +02:00
Hugo Pereira Da Costa
f6a12ad1cf
coding style.
2011-06-28 09:09:31 +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
6e0733e0de
fixed button rendering when compositing is disabled.
2011-06-28 01:09:22 +02:00
Hugo Pereira Da Costa
5194705e30
fixed detection of pressed state for decoration's 'toggle like' buttons.
2011-06-14 18:49:46 +02:00
Hugo Pereira Da Costa
8d7455cfaf
sanitize color handling in button rendering.
2011-04-28 18:09:09 +02:00
Hugo Pereira Da Costa
24543ebbb9
Use QPalette::Button colors for button (!) rendering.
2011-04-28 17:28:46 +02:00
Hugo Pereira Da Costa
0960942f4e
cleanup variable names for consistency
2011-02-24 17:37:04 +01: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
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
1a1d2b964b
Removed use of a weakPointer for storing the glowAnimation in buttons:
...
it is unnecessary since the object is never accessed outside of the button class, is a child and the button, and thus destroyed
only in the button destructor, by Qt.
svn path=/trunk/KDE/kdebase/workspace/; revision=1170321
2010-08-31 14:18: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
ed8788d3af
- added utility inline functions for readability
...
- cleaned up color handling
- fixed appearance of toggled keep above and keep-below buttons, consistently with the 'on all desktop'
button.
svn path=/trunk/KDE/kdebase/workspace/; revision=1146313
2010-07-05 17:39:25 +00:00
Hugo Pereira Da Costa
15c614b6c9
replace calls to MyClass::myMethod by this->myMethod
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1128994
2010-05-20 22:00:13 +00:00
Hugo Pereira Da Costa
97371a74c2
Moved hover and focus brush from Oxygen::StyleHelper to OxygenHelper so that they can be used in in the decoration, for
...
optimization.
Added "NegativeText" brush, to optimize rendering of close buttons.
Renamed OxygenHelper to Oxygen::Helper for consistency with the other classes. (needs full update of workspace/libs/oxygen,
kstyles/oxygen and kwin/clients/oxygen, but this is already true for the above ...)
svn path=/trunk/KDE/kdebase/workspace/; revision=1125082
2010-05-10 16:36:56 +00:00
Hugo Pereira Da Costa
43d7384663
oxygen.h/.cpp renamed to oxygenfactory.h/.cpp for consistency.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1121941
2010-05-02 18:38:05 +00:00
Hugo Pereira Da Costa
c5bf8d012e
Changed all "Oxygen::OxygenXXX" classnames into "Oxygen::XXX" for consistancy with style class
...
naming scheme. Also made indentation consistent.
svn path=/trunk/KDE/kdebase/workspace/; revision=1121935
2010-05-02 18:34:08 +00:00
Hugo Pereira Da Costa
f0e2ceab7d
reorganized button painting code to avoid code duplication
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1107181
2010-03-25 00:45:33 +00:00
Hugo Pereira Da Costa
84868a37c6
explicitely use oxygendecohelper rather than oxygenhelper
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1099031
2010-03-04 22:51:08 +00:00
Hugo Pereira Da Costa
5a852ac75b
make sure that the (hidden) useAnimation flag also disables button hover animated glow
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1084320
2010-02-02 21:55:56 +00:00
Hugo Pereira Da Costa
e2240a8427
Do not activate button pressed animation when no action is triggered when doing so (e.g right button press on Window-Close)
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1073152
2010-01-11 18:32:56 +00:00
Hugo Pereira Da Costa
e49597ecd3
use QPropertyAnimation instead of QTimeLine to handle transitions
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1069986
2010-01-04 16:42:46 +00:00
Hugo Pereira Da Costa
84e7363aa0
fixed title and button alignment in maximized mode
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1051237
2009-11-19 04:11:21 +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
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
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
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
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
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
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
cef60f90cb
removed useless colorCacheInvalid_ member
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1034964
2009-10-14 02:55:40 +00:00
Hugo Pereira Da Costa
7d7d986428
fixed vertical translation of buttons and title when compositing is disabled; Added an extra pixel to borderTiny when compositing is disabled (otherwise one can't draw the resize 'dots' due to the float frame; and used helper::roundedMask and helper::rounderRegion to minimize code duplication with style
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1034562
2009-10-13 03:38:26 +00:00
Hugo Pereira Da Costa
d614414bac
removed color overwrite for checked sticky button: it conflicts with icon contrast pixel
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1034010
2009-10-11 19:01:07 +00:00