Hugo Pereira Da Costa
458ded5de1
moved title and buttons one pixel up, adjusted title outline and window border (in outline mode) accordingly. Also added a 'shadow' pixel on the sides and at the bottom of the active window border outline, and removed an unnecessary 'if( true )'.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1032966
2009-10-09 00:19:32 +00:00
Hugo Pereira Da Costa
90f10f219a
implemented new buttons (from nuno)
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1032950
2009-10-08 23:01:35 +00:00
Hugo Pereira Da Costa
5fdf18e65f
readded '-1' pixel offset; reverted to old CMakeList.txt; removed unecessary ifdef in oxygen.h (should not have been commited in the first place.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1032315
2009-10-07 14:26:52 +00:00
Hugo Pereira Da Costa
f957a7b7cd
fixed drawFloatFrame for shaded maximized windows
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1032310
2009-10-07 14:23:14 +00:00
Hugo Pereira Da Costa
8df96b21ba
removed unused light/dark colors; moved painter translation before drawing of menu icon for consistency with other buttons
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1031800
2009-10-06 06:36:52 +00:00
Hugo Pereira Da Costa
89453d5147
removed use of QPainter::setOpacity to render transitions. This makes the code faster
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1028374
2009-09-26 21:21:39 +00:00
Hugo Pereira Da Costa
b4f63cb440
fixed Qt headers; removed WX11 defines; removed 'using namespace std'
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1025937
2009-09-20 07:42:03 +00:00
Hugo Pereira Da Costa
99c012ab33
Changed inactive button shape to match active button; moved more methods inline; added smooth transition between active and inactive button
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1025846
2009-09-19 21:12:57 +00:00
Hugo Pereira Da Costa
29cfa52c0a
disabled glow animation when a button is pressed -e.g. with right click, released, then left, because it was causing a glitch.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1025378
2009-09-18 15:03:59 +00:00
Hugo Pereira Da Costa
635c93bc5b
Added smooth transition between active and inactive state. This affects (when enabled) the window shadow,
...
the horizontal separator line, the titlebar text color and the title+border window outline.
svn path=/trunk/KDE/kdebase/workspace/; revision=1025111
2009-09-18 01:32:27 +00:00
Hugo Pereira Da Costa
7813c45245
simplified button animation code
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1025073
2009-09-17 23:08:49 +00:00
Hugo Pereira Da Costa
9eec5543bf
Moved all shadow handling into global cache oxygenShadowCache. This allows to share same
...
shadow tilesets between clients, thus reducing the memory usage; to simplify the oxygenclient
class; and leave room for optimizing active/inactive shadow transitions. The global class is
declared using K_GLOBAL_STATIC_WITH_ARGS.
Also cleaned-up unnecessary headers.
svn path=/trunk/KDE/kdebase/workspace/; revision=1025063
2009-09-17 22:40:06 +00:00
Hugo Pereira Da Costa
1495f281c2
fixed animation glitch when leaving button while pressed
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1024652
2009-09-17 04:23:38 +00:00
Hugo Pereira Da Costa
45f5f00f9f
Removed oxygentimeline (was not working). Use qtimeline directly, to handle animations. It is simpler, and it is actually working. Also changed 'repaint' into 'update' for the slot connected to the timeLine FrameChanged signal. More efficient.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1024648
2009-09-17 03:43:55 +00:00
Hugo Pereira Da Costa
45717eeae9
Fixed glitch between glow pixmap and icon color when animating glow
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1024491
2009-09-16 17:16:55 +00:00
Hugo Pereira Da Costa
e679d07b93
Added animated button glow.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1024489
2009-09-16 17:09:33 +00:00
Hugo Pereira Da Costa
363986a030
fixed Krazy stuff (headers, K classes in place of Q classes, and use of pointers to modal dialogs)
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1024127
2009-09-16 06:09:31 +00:00
Hugo Pereira Da Costa
8244e7644f
Changed nitrogen class names and file names into oxygen; adding Oxygen namespace where missing; updated CMakeFiles.txt accordingly
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1023654
2009-09-15 07:12:54 +00:00
Hugo Pereira Da Costa
c7f4edf5e1
Removed oxygen decoration
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1023633
2009-09-15 05:36:30 +00:00
Hugo Pereira Da Costa
786a000d49
apply additional horizontal button offset only in 'Full' maximized mode, and when maximized window are not move/resizable
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1020596
2009-09-06 17:41:34 +00:00
Lucas Murray
2aa56602db
Raise window icon by a single pixel.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=988406
2009-06-28 03:20:03 +00:00
Hugo Pereira Da Costa
dbb4b8ffca
FEATURE: added option to enable/disable the horizontal bar between decoration title bar
...
and window contents.
svn path=/trunk/KDE/kdebase/workspace/; revision=987096
2009-06-25 15:14:11 +00:00
Huynh Huu Long
74cb4ddd81
Update the decoration to use KWin´s new API
...
Things to take care of:
* the shadow caching code has to be revised
* shadows sometimes don´t redraw correctly
* error messages like: Couldn't resolve property: linearGradient4203
svn path=/trunk/KDE/kdebase/workspace/; revision=979988
2009-06-10 21:02:50 +00:00
Huynh Huu Long
91145d2ec8
Add another redo of windeco buttons
...
svn path=/trunk/KDE/kdebase/workspace/; revision=908463
2009-01-09 18:51:22 +00:00
Laurent Montel
569e6589a5
Remove QT3_SUPPORT
...
svn path=/trunk/KDE/kdebase/workspace/; revision=902437
2008-12-28 12:53:45 +00:00
Huynh Huu Long
eadf72f60b
Fix the outlined help button.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=875775
2008-10-25 15:00:43 +00:00
Huynh Huu Long
844f815ff8
Add shade and unshade buttons
...
BUG: 166887
svn path=/trunk/KDE/kdebase/workspace/; revision=872210
2008-10-16 16:13:18 +00:00
Huynh Huu Long
1c1c1bb6cc
The separator that is drawn below buttons was still using the old style. ;)
...
svn path=/trunk/KDE/kdebase/workspace/; revision=866059
2008-09-29 21:25:29 +00:00
Huynh Huu Long
8fa675350b
Rrevert quick solution r831040 again
...
Fix gradiented background and draw a separator line onto each button
svn path=/trunk/KDE/kdebase/workspace/; revision=832778
2008-07-15 13:21:15 +00:00
Huynh Huu Long
e4f63dfe29
Fix outlined restore button
...
svn path=/trunk/KDE/kdebase/workspace/; revision=831828
2008-07-13 11:57:48 +00:00
Huynh Huu Long
d29c446e3c
Implement pressed state
...
svn path=/trunk/KDE/kdebase/workspace/; revision=831765
2008-07-13 09:50:51 +00:00
Huynh Huu Long
20ee14550f
revert 803670, because a polished look is prioritized
...
svn path=/trunk/KDE/kdebase/workspace/; revision=831040
2008-07-11 18:42:15 +00:00
Huynh Huu Long
e3721c8751
Enable the on-all-desktops button
...
svn path=/trunk/KDE/kdebase/workspace/; revision=815426
2008-06-01 19:03:09 +00:00
Lukas Kropatschek
8eeddd6c55
some krazy include issue fixes
...
svn path=/trunk/KDE/kdebase/workspace/; revision=814568
2008-05-30 17:47:24 +00:00
Huynh Huu Long
7d0bd3567a
colored lines added to improve visibility of active windows
...
svn path=/trunk/KDE/kdebase/workspace/; revision=812922
2008-05-26 16:21:49 +00:00
Casper Boemann
2826653703
fix so that buttons also have correct bg color when colors are active
...
!=
inactive
svn path=/trunk/KDE/kdebase/workspace/; revision=803685
2008-05-03 21:02:09 +00:00
Casper Boemann
9e6e735c86
save memery by drawing directly onto screen
...
and use the helper routine to correctly draw gradient behind buttons
svn path=/trunk/KDE/kdebase/workspace/; revision=803670
2008-05-03 19:41:10 +00:00
Teemu Rytilahti
eefef6df1c
Add ability to add keep above/keep below buttons to the titlebar. To enable, you need to modify oxygenclient.cpp yourself for now.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=759107
2008-01-10 01:09:02 +00:00
Marijn Kruisselbrink
e185ec3c8b
fixes for platforms where qreal is not a double
...
btw, wouldn't it be cleaner if all those qMin(0.0, qMax(1.0, foo)) calls are calls to qBound instead?
svn path=/trunk/KDE/kdebase/workspace/; revision=748283
2007-12-14 01:38:32 +00:00
Matthew Woehlke
b60d4e187a
SVN_SILENT: comment update, since I convinced Lubos kwin should nicely set palette group, but haven't gotten around to fixing kwin yet :-(
...
Bah, should've done at least this a long time ago, sorry Lubos.
svn path=/trunk/KDE/kdebase/workspace/; revision=733209
2007-11-05 21:10:59 +00:00
Riccardo Iaconelli
843839c21d
SVN_SILENT
...
Changing email address from ruphy@fsfe.org to riccardo@kde.org
svn path=/trunk/KDE/kdebase/workspace/; revision=732026
2007-11-02 15:30:53 +00:00
Casper Boemann
0e65033534
Add hover effect to win deco buttons
...
svn path=/trunk/KDE/kdebase/workspace/; revision=727100
2007-10-19 19:56:50 +00:00
Casper Boemann
759cbbb8ff
Add dividing line below titlebar
...
Fiddle with metrics of buttons ad text a bit
We are mostly done with win dec now - Only hover on buttons missing
svn path=/trunk/KDE/kdebase/workspace/; revision=726799
2007-10-18 23:56:46 +00:00
Casper Boemann
a454357d4e
Paint buttons of inactive windows different too
...
Prepare for caching of those colors - doesn't connect to actual KGS
signal yet - so are never invalidated
svn path=/trunk/KDE/kdebase/workspace/; revision=726729
2007-10-18 19:09:41 +00:00
Matthew Woehlke
f80c129100
thinner symbols for windeco buttons, pinheiro, boemann and I agree this is a better look; 2.5 was a bit much
...
svn path=/trunk/KDE/kdebase/workspace/; revision=723761
2007-10-10 17:05:11 +00:00
Matthew Woehlke
865ea8e9d7
use round caps for windeco button symbols... not really visible at width=2.5px, but still more correct
...
svn path=/trunk/KDE/kdebase/workspace/; revision=723570
2007-10-10 01:28:33 +00:00
Matthew Woehlke
5cc9ad5e9e
more windeco button fiddling... reduce need for QPainter::translate, improve the deco gradient (more of that coming shortly), move 'maximize' up a bit so it is symmetrical with minimize (looks better), and make line thickness a little more so it looks closer to the mockups
...
svn path=/trunk/KDE/kdebase/workspace/; revision=723568
2007-10-10 01:12:46 +00:00
Matthew Woehlke
dbb842f9aa
use deco gradient from helper for consistency, also add palette state hack to buttons which need it also
...
svn path=/trunk/KDE/kdebase/workspace/; revision=723561
2007-10-10 00:25:48 +00:00
Matthew Woehlke
cb8d764ba1
Keep around the helper as a reference member of OxygenClient and OxygenButton, instead of having two global statics. Also refer to the client (from the button) as a reference to ensure that it exists (namely, so that we can grab our own reference to its helper).
...
svn path=/trunk/KDE/kdebase/workspace/; revision=723558
2007-10-10 00:05:24 +00:00
Casper Boemann
06137e0518
change normalize button from a - to a diamond
...
do the ? sign for the help button
svn path=/trunk/KDE/kdebase/workspace/; revision=723548
2007-10-09 23:26:29 +00:00