Hugo Pereira Da Costa
72ebe28e12
Really disable caching when caching is disabled (hehe)
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1171078
2010-09-02 16:34:20 +00:00
Hugo Pereira Da Costa
289e6f5f74
Added cache to clip away center region of shadows, in order no to overlap with the decoration painting.
...
Changed mask for the decoration painting.
This is needed for proper implementation of decoration translucency.
svn path=/trunk/KDE/kdebase/workspace/; revision=1151956
2010-07-20 01:39:15 +00:00
Hugo Pereira Da Costa
24e01d0e7b
Removed dependency of Oxygen::ShadowCache upon Oxygen::Client.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1126021
2010-05-12 23:34:31 +00:00
Hugo Pereira Da Costa
6367003af5
added more points to the outer gradient, so that it is smoother
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1125709
2010-05-12 01:43:52 +00:00
Hugo Pereira Da Costa
6d6c7a9810
Nicer implementation of shadow functions.
...
Should allow easier tweaking to truncate tails if needed.
svn path=/trunk/KDE/kdebase/workspace/; revision=1125530
2010-05-11 16:56:00 +00:00
Hugo Pereira Da Costa
da8593d092
Improved glow, using analytical formula and number of points on gradient adjusted to
...
gradient size.
svn path=/trunk/KDE/kdebase/workspace/; revision=1125246
2010-05-11 02:06:20 +00:00
Hugo Pereira Da Costa
fbabe1a0cf
Improved decoration shadows:
...
- the number of points on the gradient depends on the shadow size
- analytical functions (fitted to previous hard-coded values) are used to calculate the
gradients. Inner gradient is parabolic; mid and outer gradients are gaussian.
svn path=/trunk/KDE/kdebase/workspace/; revision=1125232
2010-05-11 01:18:29 +00:00
Hugo Pereira Da Costa
f6d60a9524
re-added window mask when drawing non-oxygen shadows. This makes poorer corners, but better shadows (can't have everything at the same time right now)
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1124748
2010-05-10 01:56:24 +00:00
Hugo Pereira Da Costa
0f6f610265
Fixed decoration shadows and glow for large-size settings.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1124726
2010-05-10 00:28:38 +00:00
Hugo Pereira Da Costa
56095681ed
changed helper.h/.cpp into oxygendecohelper.h/.cpp for consistency with classname.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1121943
2010-05-02 18:50:01 +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
99a0cddd77
Reduce cache size and truncate opacity settings for shadow focus transition, based on the
...
animation durations. For default duration (200msec), this reduces the size of the cache by about a
factor 10, and still corresponds to a 120Hz frame rate.
BUG: 234187
svn path=/trunk/KDE/kdebase/workspace/; revision=1114935
2010-04-14 22:21:08 +00:00
Hugo Pereira Da Costa
e3aefe524a
fixed gradient ranges to avoid warning from Qt at runtime
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1107187
2010-03-25 01:02:05 +00:00
Hugo Pereira Da Costa
49411bcda5
Added checkbox to disable shadow drawing (as a replacement to setting shadow size to zero), consistently with the checkbox used to
...
disable the active window glow.
svn path=/trunk/KDE/kdebase/workspace/; revision=1107183
2010-03-25 00:51:27 +00:00
Hugo Pereira Da Costa
6f788c9fdd
fixed use of oxygendecohelper
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1099040
2010-03-04 22:57:33 +00:00
Aaron J. Seigo
bfbe44dacc
* move kstyles from runtime into workspace
...
* make a proper library out of the oxygen helper lib
* make the oxygen widget and kwin style link against it
svn path=/trunk/KDE/kdebase/workspace/; revision=1097791
2010-03-02 03:40:34 +00:00
Hugo Pereira Da Costa
ffdadc4844
Fixed corner color for shaded windows
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1054385
2009-11-25 23:16:56 +00:00
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
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
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
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
9044453b35
fixed (tiny) glitch for bottom corners in 'no side border' mode
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1034926
2009-10-13 23:21:34 +00:00
Hugo Pereira Da Costa
7f6ff0dd02
removed usage of static global variables (static is bad afaik). Everything is controled by the factory.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1034554
2009-10-13 01:45:01 +00:00
Hugo Pereira Da Costa
3d531bf4b2
redesign active window glow following Nuno's SVG; Changed default shadow parameters accordingly; and Changed scale of shadowSize in config dialog to physical scale.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1033963
2009-10-11 17:10:08 +00:00
Hugo Pereira Da Costa
a6db3e0b09
more subtle changes to drawFloatFrame
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1032457
2009-10-07 21:24:23 +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
4e0f2a4d08
code cleanup: moved singletons from oxigenclient.cpp to oxygen.cpp; added relevant prototypes to oxygen.h and removed from .cpp files
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1028170
2009-09-26 04:23:27 +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
81174a9301
oops. Missing parenthesis
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1025936
2009-09-20 06:54:09 +00:00
Hugo Pereira Da Costa
38a10045bc
More shadow issues fixed: removed unnecessary clipping. Fixed "square" corners when non-zero offsets. Fixed corner
...
bevel to handle rounding errors.
svn path=/trunk/KDE/kdebase/workspace/; revision=1025935
2009-09-20 06:50:42 +00:00
Hugo Pereira Da Costa
f5945d0bbb
oops. Fixed one glitch when using very-large shadows
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1025902
2009-09-20 00:56:52 +00:00
Hugo Pereira Da Costa
2968cb9ce8
More work on shadows. This time both active and inactive shadows should be handled right for
...
borderless windows.
svn path=/trunk/KDE/kdebase/workspace/; revision=1025901
2009-09-20 00:50:33 +00:00
Hugo Pereira Da Costa
52daec1668
re-added 'index' setting for animated shadow (oops)
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1025569
2009-09-19 06:05:43 +00:00
Hugo Pereira Da Costa
9f4eea2a5f
moved all hash key inline; fixed glow for borderless windows; improved corner bevel
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1025568
2009-09-19 05:51:31 +00:00
Hugo Pereira Da Costa
bc7425512a
added necessary additional bit to cache hash key for frameBorder, and relevant enum (in place of bool), accordingly. Also used ::Key to get shadow rather than Client, to make sure this does not happen again, and moved 'simpleShadowPixmap' to public.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1025527
2009-09-18 23:55:18 +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
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