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
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
388d2c8b16
uses small size QRect for floatframe in no-side-border and no-border mode
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1032145
2009-10-07 01:52:36 +00:00
Hugo Pereira Da Costa
ee9a1c1e0a
re-added the 1 pixel contrast on the top and sides of the titlebar, for 'no-border' and 'no-side-border' window border sizes. This requires svn external update of lib/helper.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1032139
2009-10-07 00:54:15 +00:00
Hugo Pereira Da Costa
967720ecbe
fixed regression concerning title vertical alignment
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1031812
2009-10-06 07:33:44 +00:00
Hugo Pereira Da Costa
3e7a0f9fce
fixed bug on title alignment when left/right centered, and put titleRect calculation in separate method for clean-up
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1031796
2009-10-06 05:35:24 +00:00
Hugo Pereira Da Costa
e03269be68
moved title text bounding rect calculation to separate dedicated method
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1031121
2009-10-04 01:36:14 +00:00
Hugo Pereira Da Costa
e7cdbe7e0d
added 'use animations' and 'animations duration' to configuration (although not shown in configuration dialog). added smooth fading of window title when changed
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1030276
2009-10-02 02:52:41 +00:00
Hugo Pereira Da Costa
3856909aab
fixed bug with shaded|maximized window and sizeGrip (reported on kde-look)
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1028753
2009-09-28 05:04: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
edf8167f3c
improved animated transition in title-outline mode, by using mixed color rather than painter opacity
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1028173
2009-09-26 04:57:27 +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
aedaa73dc4
Fixed painting of maximized shaded window to show bottom border and shadow.
...
BUG: 207926
svn path=/trunk/KDE/kdebase/workspace/; revision=1026061
2009-09-20 17:51:06 +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
8c6b8cde28
always enable 'smooth' transitions except for 'preview'. This allows to have smooth title bar text color transition even if everything (compositing, glow, separator, etc.) is disabled
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1025844
2009-09-19 21:10:15 +00:00
Hugo Pereira Da Costa
c955d16574
added smooth transition for title bar text color when switching between active and inactive state (previously available for 'outline' mode only)
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1025447
2009-09-18 19:47:53 +00:00
Hugo Pereira Da Costa
40ab147f81
moved more functions inline and use reference to pass configuration around.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1025142
2009-09-18 06:54:42 +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
Hugo Pereira Da Costa
d58e7b7812
fixed (again) issue with shadow and mask for 'no-border' shaded windows, to cope with commit r1023615
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1024918
2009-09-17 15:24:44 +00:00
Hugo Pereira Da Costa
c5c7cd79d6
used OxygenShadowConfigration rather than shadowTileOption to detect if shadowTiles are to be recreated, because the latter was both incomplete and redundant with the former.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1024657
2009-09-17 05:07:43 +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
1a0eb644f1
Fixed shadow description to 1/ better match old oxygen and ozone default shadow (when using default settings) 2/ avoid 'transparent' line around window when shadow is too small 3/ avoid flatness of inner shadow when shadow is too large. Also made vertical (and horizontal) offsets scale with shadow size, to keep top over bottom shadow size ratio constant.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1024115
2009-09-16 03:19:36 +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
Huynh Huu Long
cf86b3fc65
Revert r1009021 and r1009001 (which extend the clickable area of the
...
window borders), because they interfere with window snapping.
svn path=/trunk/KDE/kdebase/workspace/; revision=1016482
2009-08-27 21:46:51 +00:00
Huynh Huu Long
1457d3ba32
Don't enlarge the clickable area in non-composited environments with no shadows
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1009021
2009-08-08 22:49:31 +00:00
Huynh Huu Long
345d6f7a7c
Increase the clickable area without changing the visible border
...
(which essentially means that the shadow can be used to resize the window)
svn path=/trunk/KDE/kdebase/workspace/; revision=1009001
2009-08-08 21:53:34 +00:00
Andrew Lake
eb7566eeb7
Reduce minimum bottom border size to look proportional to sides when size >= Normal. Bottom corner rounding is unaffected.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=1008893
2009-08-08 15:36:40 +00:00
Martin Gräßlin
dc702e2e3c
Delete the old tileset whenever a new one is created. That prevents that kwin eats more and more pixmaps.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=995379
2009-07-12 15:20:07 +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
c054eac3f7
Prevent shadows from being drawn when windows are maximized which causes some visual problems on multi monitor settings.
...
Also clean up some code duplication.
svn path=/trunk/KDE/kdebase/workspace/; revision=984209
2009-06-20 13:28:55 +00:00
Huynh Huu Long
dcb3f28590
Also clear the window mask if compositing is activated
...
svn path=/trunk/KDE/kdebase/workspace/; revision=982638
2009-06-16 14:06:41 +00:00
Huynh Huu Long
f9cbed1c1a
Ensure that the TileSet gets initialized (thanks to mgraesslin for pointing this out)
...
CCBUG: 196124
svn path=/trunk/KDE/kdebase/workspace/; revision=982620
2009-06-16 13:19:03 +00:00
Huynh Huu Long
18660b90eb
Update shadow/glow tiles when any option changes
...
Fix window mask for non-composited windows
svn path=/trunk/KDE/kdebase/workspace/; revision=980471
2009-06-11 20:09:36 +00:00
Martin Gräßlin
e3f3b0386f
Invalidate the shadow cache when active client changes.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=980341
2009-06-11 14:27:28 +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
Fredrik Höglund
9ed7360157
Don't call updateButtons() from paintEvent().
...
svn path=/trunk/KDE/kdebase/workspace/; revision=957684
2009-04-22 17:33:26 +00:00
Huynh Huu Long
e1870fd8bb
Rename scratch to stripes which is also used for the config dialog
...
Prevent stripes to go beyond the title area. We might need a replacement
for these cases
BUG: 182832
svn path=/trunk/KDE/kdebase/workspace/; revision=937674
2009-03-10 10:46:02 +00:00
Huynh Huu Long
62f7201f41
Use the stardard method to adjust the border width
...
svn path=/trunk/KDE/kdebase/workspace/; revision=937562
2009-03-09 22:36:39 +00:00
Huynh Huu Long
b49c213e59
Add option "Use thin borders"
...
svn path=/trunk/KDE/kdebase/workspace/; revision=926623
2009-02-15 21:16:10 +00:00
Huynh Huu Long
37f938b841
Reduce border thickness
...
svn path=/trunk/KDE/kdebase/workspace/; revision=926586
2009-02-15 19:14:44 +00:00
Lucas Murray
d8f46c3974
Add 4px padding between the title text and the stripes so that it
...
doesn't look so cramped.
svn path=/trunk/KDE/kdebase/workspace/; revision=911207
2009-01-15 02:03:50 +00:00
Huynh Huu Long
22cb8f8764
Adjust the window mask so that the window can actually touch the screen edge.
...
BUG: 178466
svn path=/trunk/KDE/kdebase/workspace/; revision=900436
2008-12-22 21:13:49 +00:00
Casper Boemann
d2fd031544
Try to do the same fix for kwin
...
Please svn up and test this out
CCBUG:163538
svn path=/trunk/KDE/kdebase/workspace/; revision=899162
2008-12-20 04:39:14 +00:00
Huynh Huu Long
ab49ed37e6
Improve the windowshape for antialiased window corners. This prevents accidently clicking the "Destroy my harddrive" button below them.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=875191
2008-10-23 15:42:44 +00:00
Lucas Murray
154c19b0e7
Make the client shadowOpacity() return a relative opacity instead of absolute.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=873440
2008-10-19 13:43:16 +00:00
Casper Boemann
48c1eee79a
Improved Oxygen window decoration
...
- in composite it takes advantage of the new shadow api in kwin
- in non-composite a thin colored frame is added to active window
For both the intention is that inactive windows have shadow and active window have
a glow. Naturally this looks much more realistic with composite
svn path=/trunk/KDE/kdebase/workspace/; revision=873293
2008-10-19 10:31:32 +00:00
Lucas Murray
af1b639a9d
Rename the new decoration API and mark it as unstable. Supporting a hacked API is suicide.
...
Will correctly handle this in KDE 4.3 by using ARGB decorations, even if it's not pretty.
svn path=/trunk/KDE/kdebase/workspace/; revision=872795
2008-10-18 08:10:37 +00:00
Lucas Murray
899d578c49
Merge Libkdecoration2 Git branch.
...
WARNING: Breaks shadow effect. I don't think it causes anything to crash anymore but it is VERY ugly visually.
Contains:
- New decoration API that allows decorations to change the way shadows look.
- Shadows now wobble.
- API example code in the Oxygen decoration.
- Added buildQuads() effect plugin hook.
- Work on the shadow effect to use the new decoration shadow API as well.
- Added IDs to WindowQuads.
- Added public accessors to texture coords in WindowVertex.
Would like all this to be reviewed.
CCMAIL: kwin@kde.org
svn path=/trunk/KDE/kdebase/workspace/; revision=872473
2008-10-17 10:30:43 +00:00