Commit graph

406 commits

Author SHA1 Message Date
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
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
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
c5641a3827 modified activeChange animation so that it seems to start earlier (e.g. with first step being a non-zero fraction of the final glow)
svn path=/trunk/KDE/kdebase/workspace/; revision=1034229
2009-10-12 07:26:07 +00:00
Hugo Pereira Da Costa
3c3d093d2b set local reference to client as const. Safer
svn path=/trunk/KDE/kdebase/workspace/; revision=1034053
2009-10-11 20:30:38 +00:00
Hugo Pereira Da Costa
d736178bb5 fixed drawFloatFrame issue in titleoutline mode
svn path=/trunk/KDE/kdebase/workspace/; revision=1034042
2009-10-11 20:00:14 +00:00
Hugo Pereira Da Costa
00e9cbd9a9 changed 'default' button size from 22 to 20
svn path=/trunk/KDE/kdebase/workspace/; revision=1034014
2009-10-11 19:03:47 +00:00
Hugo Pereira Da Costa
7bfdee649b changed default glow configuration to have larger glow and lighter colors
svn path=/trunk/KDE/kdebase/workspace/; revision=1034011
2009-10-11 19:02:39 +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
Hugo Pereira Da Costa
a528f0e7ac made 'on all desktops' button appear 'pressed' when checked, to be more visible
svn path=/trunk/KDE/kdebase/workspace/; revision=1034009
2009-10-11 18:56:30 +00:00
Hugo Pereira Da Costa
09364cdac0 removed unnecessary block braces
svn path=/trunk/KDE/kdebase/workspace/; revision=1033971
2009-10-11 17:13:50 +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
Andrew Coles
bc10bae07e More proof-reading in recent strings (have been out the loop for a while).
svn path=/trunk/KDE/kdebase/workspace/; revision=1033231
2009-10-09 19:15:18 +00:00
Hugo Pereira Da Costa
3a155c8f8c do not translate buttons up for maximized windows, because it collides with screen border otherwise
svn path=/trunk/KDE/kdebase/workspace/; revision=1032967
2009-10-09 00:26:57 +00:00
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
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
6532a7445c re-enabled shadow transitions (disabled due to a bug in logics)
svn path=/trunk/KDE/kdebase/workspace/; revision=1032348
2009-10-07 15:38:18 +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
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
Burkhard Lück
4d4c8d91e7 typo fix reported by marce <mvillarino@gmail.com> on kde-i18n-doc
svn path=/trunk/KDE/kdebase/workspace/; revision=1032056
2009-10-06 18:44:40 +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
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
36e2deba85 fixed upper/lower case mismatch
svn path=/trunk/KDE/kdebase/workspace/; revision=1031797
2009-10-06 05:40:12 +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
67f1fa6451 removed useless kdebug
svn path=/trunk/KDE/kdebase/workspace/; revision=1030275
2009-10-02 02:49:31 +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
01e5f22553 fixed (harmless) compilation warnings
svn path=/trunk/KDE/kdebase/workspace/; revision=1027373
2009-09-23 22:53:01 +00:00
Hugo Pereira Da Costa
955f04ae8e simplified x11util::isSupported( Atom ) code, needed for the size grip, so that it calls XGetWindowProperty only once, in a way that is similar to what netwm.cpp does.
svn path=/trunk/KDE/kdebase/workspace/; revision=1027369
2009-09-23 22:44:35 +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
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
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
d581847b47 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=1025845
2009-09-19 21:11:28 +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
1852c87178 invalidate shadow caches when color-scheme is changed. This fixes some issues with corner bevel
svn path=/trunk/KDE/kdebase/workspace/; revision=1025835
2009-09-19 20:32:23 +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
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
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
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
ac90c3aef5 added missing flags to decide whether or not active/inactive transition should be animated
svn path=/trunk/KDE/kdebase/workspace/; revision=1025117
2009-09-18 02:20:43 +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
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
Script Kiddy
c2049a9875 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=1024781

The following changes were in SVN, but were removed from git:

M	wallpapers/Aghi/metadata.desktop
M	wallpapers/Air/metadata.desktop
M	wallpapers/Atra_Dot/metadata.desktop
M	wallpapers/Code_Poets_Dream/metadata.desktop
M	wallpapers/Curls_on_Green/metadata.desktop
M	wallpapers/EOS/metadata.desktop
M	wallpapers/Evening/metadata.desktop
M	wallpapers/Fields_of_Peace/metadata.desktop
M	wallpapers/Finally_Summer_in_Germany/metadata.desktop
M	wallpapers/Fresh_Morning/metadata.desktop
M	wallpapers/Plasmalicious/metadata.desktop
M	wallpapers/Red_Leaf/metadata.desktop
M	wallpapers/Spring_Sunray/metadata.desktop
M	wallpapers/The_Rings_of_Saturn/metadata.desktop
M	wallpapers/There_is_Rain_on_the_Table/metadata.desktop
2009-09-17 09:29:41 +00:00
Lucas Murray
02909b5713 Make the default decoration settings even awesomer. Center aligned title
and no separator line.

svn path=/trunk/KDE/kdebase/workspace/; revision=1024689
2009-09-17 08:16:46 +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
2f5512e00e put equal to operator inline, and fixed logic in order to disable check on outerColor, if the latter is not used
svn path=/trunk/KDE/kdebase/workspace/; revision=1024656
2009-09-17 05:05:45 +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
Script Kiddy
f28d0ef21e SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=1024263

The following changes were in SVN, but were removed from git:

M	wallpapers/Evening/metadata.desktop
2009-09-16 09:54:02 +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
8eecf6375c Moved Nitrogen to Oxygen deco, and removed Nitrogen.
It is believed that Nitrogen is versatile enough to satisfy most users, and that it is 
good-looking enough to make Nuno happy.

CCMAIL: kwin@kde.org
BUG: 160627

svn path=/trunk/KDE/kdebase/workspace/; revision=1023636
2009-09-15 06:25:06 +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
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
Script Kiddy
76ea5e9987 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=1014621

The following changes were in SVN, but were removed from git:

M	wallpapers/Air/metadata.desktop
M	wallpapers/Code_Poets_Dream/metadata.desktop
M	wallpapers/Curls_on_Green/metadata.desktop
M	wallpapers/Evening/metadata.desktop
M	wallpapers/Fields_of_Peace/metadata.desktop
M	wallpapers/Finally_Summer_in_Germany/metadata.desktop
M	wallpapers/Fresh_Morning/metadata.desktop
M	wallpapers/Red_Leaf/metadata.desktop
M	wallpapers/The_Rings_of_Saturn/metadata.desktop
M	wallpapers/There_is_Rain_on_the_Table/metadata.desktop
2009-08-23 12:06:49 +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
Script Kiddy
fb96229d06 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=997899

The following changes were in SVN, but were removed from git:

M	wallpapers/Aghi/metadata.desktop
M	wallpapers/Evening/metadata.desktop
M	wallpapers/Spring_Sunray/metadata.desktop
M	wallpapers/The_Rings_of_Saturn/metadata.desktop
2009-07-16 15:58:49 +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
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
Hugo Pereira Da Costa
57ec9fea9a FEATURE: added option to enable/disable the horizontal bar between decoration title bar
and window contents.

svn path=/trunk/KDE/kdebase/workspace/; revision=987095
2009-06-25 15:12:55 +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
Lucas Murray
8d09ed341a Remove old decoration shadow API, rename AbilityProvidesShadow and add
support for the new decoration shadow API in the shadow effect.

svn path=/trunk/KDE/kdebase/workspace/; revision=980130
2009-06-11 08:11:13 +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
Christoph Feck
3068e52b1f SVN_SILENT Cleanup .ui files
This removes (as discussed on k-c-d)
* obsolete <pixmapfunction>
* deprecated <layoutdefault>
* empty <author>, <comment>, <exportmacro>


svn path=/trunk/KDE/kdebase/workspace/; revision=957373
2009-04-21 21:50:34 +00:00
Laurent Montel
9012589cb0 not necessary
svn path=/trunk/KDE/kdebase/workspace/; revision=938056
2009-03-11 07:52:06 +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
Script Kiddy
9d33d771dc SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=936838

The following changes were in SVN, but were removed from git:

M	wallpapers/Blue_Curl/metadata.desktop
M	wallpapers/Code_Poets_Dream/metadata.desktop
M	wallpapers/Curls_on_Green/metadata.desktop
M	wallpapers/EOS/metadata.desktop
M	wallpapers/Fields_of_Peace/metadata.desktop
M	wallpapers/Finally_Summer_in_Germany/metadata.desktop
M	wallpapers/Flower_drops/metadata.desktop
M	wallpapers/Fresh_Morning/metadata.desktop
M	wallpapers/Ladybuggin/metadata.desktop
M	wallpapers/Red_Leaf/metadata.desktop
M	wallpapers/There_is_Rain_on_the_Table/metadata.desktop
M	wallpapers/Vector_Sunset/metadata.desktop
2009-03-08 14:36:22 +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
Script Kiddy
de4dca3940 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=917787

The following changes were in SVN, but were removed from git:

M	wallpapers/Air/metadata.desktop
M	wallpapers/Blue_Curl/metadata.desktop
M	wallpapers/Flower_drops/metadata.desktop
M	wallpapers/Fresh_Morning/metadata.desktop
M	wallpapers/HighTide/metadata.desktop
M	wallpapers/Plasmalicious/metadata.desktop
M	wallpapers/Vector_Sunset/metadata.desktop
2009-01-28 15:01:35 +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
91145d2ec8 Add another redo of windeco buttons
svn path=/trunk/KDE/kdebase/workspace/; revision=908463
2009-01-09 18:51:22 +00:00
Script Kiddy
65796cc45e SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=904551

The following changes were in SVN, but were removed from git:

M	wallpapers/Air/metadata.desktop
M	wallpapers/Blue_Curl/metadata.desktop
M	wallpapers/Fields_of_Peace/metadata.desktop
M	wallpapers/Finally_Summer_in_Germany/metadata.desktop
M	wallpapers/Flower_drops/metadata.desktop
M	wallpapers/Fresh_Morning/metadata.desktop
M	wallpapers/Plasmalicious/metadata.desktop
M	wallpapers/There_is_Rain_on_the_Table/metadata.desktop
M	wallpapers/Vector_Sunset/metadata.desktop
2009-01-02 13:30:12 +00:00
Laurent Montel
569e6589a5 Remove QT3_SUPPORT
svn path=/trunk/KDE/kdebase/workspace/; revision=902437
2008-12-28 12:53:45 +00:00
Script Kiddy
d145cce159 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=901125

The following changes were in SVN, but were removed from git:

M	wallpapers/Air/metadata.desktop
M	wallpapers/Plasmalicious/metadata.desktop
2008-12-24 13:32:45 +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
Lucas Murray
14b6d36634 A slightly better, less aggressive window shadow cutout.
svn path=/trunk/KDE/kdebase/workspace/; revision=889943
2008-11-28 04:05:26 +00:00
Lucas Murray
2385ed545b Make parts of the shadow texture that are under windows transparent.
Fixes translucent windows graphical glitch.

svn path=/trunk/KDE/kdebase/workspace/; revision=889744
2008-11-27 14:25:59 +00:00
Script Kiddy
5198cc2536 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=886894

The following changes were in SVN, but were removed from git:

M	wallpapers/Blue_Curl/metadata.desktop
M	wallpapers/Code_Poets_Dream/metadata.desktop
M	wallpapers/Colorado_Farm/metadata.desktop
M	wallpapers/Curls_on_Green/metadata.desktop
M	wallpapers/Emotion/metadata.desktop
M	wallpapers/Fields_of_Peace/metadata.desktop
M	wallpapers/Finally_Summer_in_Germany/metadata.desktop
M	wallpapers/Flower_drops/metadata.desktop
M	wallpapers/Fresh_Morning/metadata.desktop
M	wallpapers/Golden_Ripples/metadata.desktop
M	wallpapers/Green_Concentration/metadata.desktop
M	wallpapers/Ladybuggin/metadata.desktop
M	wallpapers/Leafs_Labyrinth/metadata.desktop
M	wallpapers/Red_Leaf/metadata.desktop
M	wallpapers/Skeeter_Hawk/metadata.desktop
M	wallpapers/There_is_Rain_on_the_Table/metadata.desktop
M	wallpapers/Vector_Sunset/metadata.desktop
2008-11-20 13:51:52 +00:00
Lucas Murray
a7d883cc5d Make Oxygen not advertise support for shadow types that it does not yet.
Fallback to default shadows if the decoration doesn't support a certain type.

svn path=/trunk/KDE/kdebase/workspace/; revision=878627
2008-11-01 14:24:20 +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
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
5cb4d3f0ec Swap bottom and top shadow textures to match the texture coords.
svn path=/trunk/KDE/kdebase/workspace/; revision=872817
2008-10-18 09:37: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
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
5b9067fb84 Add an option to change the alignment of the window title
BUG: 172076

svn path=/trunk/KDE/kdebase/workspace/; revision=869205
2008-10-08 13:42:24 +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
Script Kiddy
a6c023ee84 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=865874

The following changes were in SVN, but were removed from git:

M	wallpapers/Blue_Curl/metadata.desktop
M	wallpapers/Code_Poets_Dream/metadata.desktop
M	wallpapers/Colorado_Farm/metadata.desktop
M	wallpapers/Curls_on_Green/metadata.desktop
M	wallpapers/Emotion/metadata.desktop
M	wallpapers/Fields_of_Peace/metadata.desktop
M	wallpapers/Finally_Summer_in_Germany/metadata.desktop
M	wallpapers/Flower_drops/metadata.desktop
M	wallpapers/Fresh_Morning/metadata.desktop
M	wallpapers/Golden_Ripples/metadata.desktop
M	wallpapers/Green_Concentration/metadata.desktop
M	wallpapers/Ladybuggin/metadata.desktop
M	wallpapers/Leafs_Labyrinth/metadata.desktop
M	wallpapers/Red_Leaf/metadata.desktop
M	wallpapers/Skeeter_Hawk/metadata.desktop
M	wallpapers/There_is_Rain_on_the_Table/metadata.desktop
M	wallpapers/Vector_Sunset/metadata.desktop
2008-09-29 11:19:40 +00:00
Huynh Huu Long
cbc55bf9a1 Draw the same separator in the windeco as in the rest of oxygen. This also adds more contrast.
svn path=/trunk/KDE/kdebase/workspace/; revision=865738
2008-09-28 20:30:19 +00:00
Script Kiddy
6c03d59ae1 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=839172

The following changes were in SVN, but were removed from git:

M	wallpapers/Blue_Curl/metadata.desktop
M	wallpapers/Code_Poets_Dream/metadata.desktop
M	wallpapers/Colorado_Farm/metadata.desktop
M	wallpapers/Curls_on_Green/metadata.desktop
M	wallpapers/EOS/metadata.desktop
M	wallpapers/Emotion/metadata.desktop
M	wallpapers/Fields_of_Peace/metadata.desktop
M	wallpapers/Finally_Summer_in_Germany/metadata.desktop
M	wallpapers/Flower_drops/metadata.desktop
M	wallpapers/Fresh_Morning/metadata.desktop
M	wallpapers/Golden_Ripples/metadata.desktop
M	wallpapers/Green_Concentration/metadata.desktop
M	wallpapers/Ladybuggin/metadata.desktop
M	wallpapers/Leafs_Labyrinth/metadata.desktop
M	wallpapers/Red_Leaf/metadata.desktop
M	wallpapers/Skeeter_Hawk/metadata.desktop
M	wallpapers/There_is_Rain_on_the_Table/metadata.desktop
M	wallpapers/Vector_Sunset/metadata.desktop
2008-07-29 13:26:35 +00:00
Huynh Huu Long
bba38cb5e9 Redraw buttons when redrawing the whole decoration
svn path=/trunk/KDE/kdebase/workspace/; revision=835483
2008-07-20 17:15:48 +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
Script Kiddy
de22f6b69b SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=829587

The following changes were in SVN, but were removed from git:

M	wallpapers/Blue_Curl/metadata.desktop
M	wallpapers/Code_Poets_Dream/metadata.desktop
M	wallpapers/Colorado_Farm/metadata.desktop
M	wallpapers/Curls_on_Green/metadata.desktop
M	wallpapers/EOS/metadata.desktop
M	wallpapers/Emotion/metadata.desktop
M	wallpapers/Fields_of_Peace/metadata.desktop
M	wallpapers/Finally_Summer_in_Germany/metadata.desktop
M	wallpapers/Flower_drops/metadata.desktop
M	wallpapers/Fresh_Morning/metadata.desktop
M	wallpapers/Golden_Ripples/metadata.desktop
M	wallpapers/Green_Concentration/metadata.desktop
M	wallpapers/Ladybuggin/metadata.desktop
M	wallpapers/Leafs_Labyrinth/metadata.desktop
M	wallpapers/Red_Leaf/metadata.desktop
M	wallpapers/Skeeter_Hawk/metadata.desktop
M	wallpapers/There_is_Rain_on_the_Table/metadata.desktop
M	wallpapers/Vector_Sunset/metadata.desktop
2008-07-08 17:29:47 +00:00
Stefan Monov
42af09e89f use the proper color for the deco scratches. maybe will use a "detail
color" in the future.

svn path=/trunk/KDE/kdebase/workspace/; revision=822883
2008-06-21 20:53:52 +00:00
Huynh Huu Long
ecfa8aa80f add configuration option for stripes
svn path=/trunk/KDE/kdebase/workspace/; revision=818156
2008-06-07 23:06:31 +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
d0d1369a1a adjust the scratches for maximized windows
svn path=/trunk/KDE/kdebase/workspace/; revision=812950
2008-05-26 18:01:53 +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
Script Kiddy
e110315896 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=802307

The following changes were in SVN, but were removed from git:

M	wallpapers/Leafs_Labyrinth/metadata.desktop
2008-04-29 05:57:03 +00:00
Luboš Luňák
21bedeeadc Make the decoration double-buffered again to avoid drawing problems,
until a better solution for the wasted memory is found.


svn path=/trunk/KDE/kdebase/workspace/; revision=800572
2008-04-24 12:16:40 +00:00
Script Kiddy
0370c195d0 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=795059
2008-04-09 03:58:49 +00:00
Luboš Luňák
0256c3bc14 Not using WA_PaintOnScreen leads to double-buffering whole decorations,
wasting a large amount of pixmap memory for almost nothing. Please
double-buffer manually in paintEvent() if the flicker is serious.
CCMAIL: cbr@boemann.dk


svn path=/trunk/KDE/kdebase/workspace/; revision=793641
2008-04-04 17:43:46 +00:00
Luboš Luňák
90240a5d61 Forgot this when comitting r787165.
svn path=/trunk/KDE/kdebase/workspace/; revision=788488
2008-03-21 17:10:51 +00:00
Luboš Luňák
eb5672ed3b Why should one enable in sources something that apparently works just fine?
CCMAIL: tpr@d5k.net


svn path=/trunk/KDE/kdebase/workspace/; revision=787165
2008-03-18 17:50:07 +00:00
Luboš Luňák
9fcd3ad674 Fix shaping - KCommonDecoration has a function where to do it,
and I don't see the point in resetting the shape every time in paintEvent().
Partially fixes resizing problems with Qt4.4.


svn path=/trunk/KDE/kdebase/workspace/; revision=782673
2008-03-05 17:48:45 +00:00
Script Kiddy
b384a27e45 SVN_SILENT made messages (.desktop file, second try)
svn path=/trunk/KDE/kdebase/workspace/; revision=774169
2008-02-12 16:54:30 +00:00
Adriaan de Groot
214d575aa3 Qt3 -> Qt4 style includes.
qdrawutil.h doesn't seem to have a purely Qt4-style equivalent, so including the directory there disambiguates it from the Qt3 header.

svn path=/trunk/KDE/kdebase/workspace/; revision=770116
2008-02-02 20:54:19 +00:00
Casper Boemann
80342f99da don't say we suppport Above and below others when we don't
This might solve a crash but since i couldn't confirm the crash in the 
first place i cannot say for sure.

svn path=/trunk/KDE/kdebase/workspace/; revision=765464
2008-01-24 02:46:43 +00:00
Urs Wolfer
6e87d16cec * enable deprecated warnings
* less Q3 support

svn path=/trunk/KDE/kdebase/workspace/; revision=763174
2008-01-18 20:14:40 +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
Script Kiddy
a6b51a54b2 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=758818
2008-01-09 10:37:34 +00:00
Script Kiddy
662b4a6173 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=756421
2008-01-03 08:33:49 +00:00
Matthew Woehlke
4ed0b4abeb change config file name and group, style will use the same file
svn path=/trunk/KDE/kdebase/workspace/; revision=756053
2008-01-02 17:14:42 +00:00
Casper Boemann
8e3446f89e Remove David Johnson from the copyright list as there isn't a single
line of code left from his original skeleton, and the copyright only 
requires the copyright to be maintained when substantial parts are 
copied - which is no longer the case

svn path=/trunk/KDE/kdebase/workspace/; revision=753433
2007-12-27 13:10:14 +00:00
Casper Boemann
040550d293 Use helper version of frame drawing (shared code with the style)
svn path=/trunk/KDE/kdebase/workspace/; revision=753431
2007-12-27 13:07:12 +00:00
Script Kiddy
700ea2d036 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=752330

The following changes were in SVN, but were removed from git:

M	wallpapers/All-Good-People-1.jpg.desktop
M	wallpapers/plasma-default.png.desktop
2007-12-24 08:00:37 +00:00
Script Kiddy
d08a61bb25 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=751145

The following changes were in SVN, but were removed from git:

M	wallpapers/plasma-default.png.desktop
2007-12-21 07:55:50 +00:00
Script Kiddy
7e830edbeb SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=750401

The following changes were in SVN, but were removed from git:

M	wallpapers/All-Good-People-1.jpg.desktop
M	wallpapers/Chicken-Songs-2.jpg.desktop
M	wallpapers/No-Ones-Laughing-3.jpg.desktop
M	wallpapers/Time-For-Lunch-2.jpg.desktop
M	wallpapers/Totally-New-Product-1.jpg.desktop
M	wallpapers/Won-Ton-Soup-3.jpg.desktop
M	wallpapers/alta-badia.jpg.desktop
M	wallpapers/andes-venezolanos.svgz.desktop
M	wallpapers/aurora.svgz.desktop
M	wallpapers/blue-bend.jpg.desktop
M	wallpapers/celtic.svgz.desktop
M	wallpapers/default_blue.jpg.desktop
M	wallpapers/default_gears.jpg.desktop
M	wallpapers/floating-leaves.jpg.desktop
M	wallpapers/globe.svgz.desktop
M	wallpapers/here-gear.svgz.desktop
M	wallpapers/kde_box.png.desktop
M	wallpapers/konqui.svgz.desktop
M	wallpapers/lineart.svgz.desktop
M	wallpapers/moon.svgz.desktop
M	wallpapers/seaofconero.jpg.desktop
M	wallpapers/soft-green.jpg.desktop
M	wallpapers/stelvio.jpg.desktop
M	wallpapers/sunshine-after-the-rain.jpg.desktop
M	wallpapers/triplegears.jpg.desktop
2007-12-19 08:07:43 +00:00
Casper Boemann
1b6df67bcc Fix the problem of the window bg being drawn wrongly until the window is
redrawn.
Also fix that the background was drawn wrongly at small widths

svn path=/trunk/KDE/kdebase/runtime/kstyles/; revision=750240
2007-12-18 23:44:43 +00:00
Script Kiddy
18a41ac9f1 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=748723

The following changes were in SVN, but were removed from git:

M	wallpapers/kde_box.png.desktop
M	wallpapers/plasma-default.png.desktop
M	wallpapers/seaofconero.jpg.desktop
2007-12-15 08:25:51 +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
Casper Boemann
b09357e1b0 Don't draw resize handles on windows that aren't resizable
svn path=/trunk/KDE/kdebase/workspace/; revision=744065
2007-12-02 16:38:38 +00:00
Luboš Luňák
cefbf62136 I'm quite sure these in fact do support spacers.
svn path=/trunk/KDE/kdebase/workspace/; revision=743036
2007-11-29 18:41:23 +00:00
Luboš Luňák
59e845e4e6 Make width of titlebar spacers default to half width of normal buttons,
not some random tiny sizes or even zero. Maybe could need small tweaking
here or there, but a spacer is supposed to make at least some space.


svn path=/trunk/KDE/kdebase/workspace/; revision=743034
2007-11-29 18:37:52 +00:00
Matthew Woehlke
36850bd14a use new AbilityAnnounceColor
svn path=/trunk/KDE/kdebase/workspace/; revision=743016
2007-11-29 17:14:26 +00:00
Luboš Luňák
9621df24f5 Add missing license headers.
CCMAIL:Casper Boemann <cbr@boemann.dk>
CCMAIL:Riccardo Iaconelli <riccardo@kde.org>


svn path=/trunk/KDE/kdebase/workspace/; revision=742988
2007-11-29 15:22:10 +00:00
Luboš Luňák
0170623a9c Separate KCommonDecoration from KDecoration, in order to allow
greater possibilities in extending KDecoration. KCommonDecoration
now does not inherit KDecoration, only wraps it (i.e. it's source
compatible). Added comments on how to extend KDecoration
in the future by subclassing to KDecoration2, added PORTING
document with all API changes in KDE4.
CCMAIL: kwin@kde.org


svn path=/trunk/KDE/kdebase/workspace/; revision=742976
2007-11-29 14:11:02 +00:00
Matthew Woehlke
650f963bb0 --hardcoded colors in oxygen windeco, now the 'faux-shadow' border is actually darker than the window instead of hard-coded medium gray (which made it appear bright in e.g. Wonton Soup). Also add some 'if (0)' code for a different color choice that can hopefully be made available as an option in the future (I like it better anyway, but for now use boemann's gray).
svn path=/trunk/KDE/kdebase/workspace/; revision=742324
2007-11-27 20:49:03 +00:00
Matthew Woehlke
9c6358396e SVN_SILENT: '.color()' -> get QColor not QBrush (Qt seems to do this implicitly, but let's be explicit), also use stored color instead of doing palette.window().color() many times, especially as we already stored it
svn path=/trunk/KDE/kdebase/workspace/; revision=742003
2007-11-26 22:06:07 +00:00
Luboš Luňák
d6b7ef180d No kde3/qt3 support in kwin core. Saves about 150M of memory in gdb
by not loading the support libraries and the complete kdelibs stack it depends
on. Gdb taking 0.5M and lousy handling of near-OOM in Linux kernel
can be a pretty bad combination :(.


svn path=/trunk/KDE/kdebase/workspace/; revision=741856
2007-11-26 15:42:44 +00:00
Casper Boemann
2f0c893194 Add a more distinctive outline to windows, making it easier to tell two
overlaping windows apart.

svn path=/trunk/KDE/kdebase/workspace/; revision=740761
2007-11-24 03:49:12 +00:00
Script Kiddy
89171c37cd SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=740393

The following changes were in SVN, but were removed from git:

M	wallpapers/plasma-default.png.desktop
2007-11-23 07:39:04 +00:00
Script Kiddy
1aa9a0c3f9 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=739007

The following changes were in SVN, but were removed from git:

M	wallpapers/triplegears.jpg.desktop
2007-11-20 07:43:10 +00:00
Allen Winter
f94a287247 DocPath => X-DocPath
ServiceTypes => X-KDE-ServiceTypes
Keywords => X-KDE-Keywords

svn path=/trunk/KDE/kdebase/workspace/; revision=737278

The following changes were in SVN, but were removed from git:

M	wallpapers/All-Good-People-1.jpg.desktop
M	wallpapers/Chicken-Songs-2.jpg.desktop
M	wallpapers/No-Ones-Laughing-3.jpg.desktop
M	wallpapers/Time-For-Lunch-2.jpg.desktop
M	wallpapers/Totally-New-Product-1.jpg.desktop
M	wallpapers/Won-Ton-Soup-3.jpg.desktop
M	wallpapers/alta-badia.jpg.desktop
M	wallpapers/andes-venezolanos.svgz.desktop
M	wallpapers/aurora.svgz.desktop
M	wallpapers/blue-bend.jpg.desktop
M	wallpapers/celtic.svgz.desktop
M	wallpapers/default_blue.jpg.desktop
M	wallpapers/default_gears.jpg.desktop
M	wallpapers/floating-leaves.jpg.desktop
M	wallpapers/globe.svgz.desktop
M	wallpapers/here-gear.svgz.desktop
M	wallpapers/kde_box.png.desktop
M	wallpapers/konqui.svgz.desktop
M	wallpapers/lineart.svgz.desktop
M	wallpapers/moon.svgz.desktop
M	wallpapers/plasma-default.png.desktop
M	wallpapers/seaofconero.jpg.desktop
M	wallpapers/soft-green.jpg.desktop
M	wallpapers/stelvio.jpg.desktop
M	wallpapers/sunshine-after-the-rain.jpg.desktop
M	wallpapers/triplegears.jpg.desktop
2007-11-15 22:33:12 +00:00
Aaron J. Seigo
9048abe173 take advantage of KDecorationOptions::defaultTitleButtons[Left|Right]
svn path=/trunk/KDE/kdebase/workspace/; revision=737210
2007-11-15 20:14:41 +00:00
Script Kiddy
206dc8a378 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=734544

The following changes were in SVN, but were removed from git:

M	wallpapers/kde_box.png.desktop
M	wallpapers/plasma-default.png.desktop
2007-11-09 07:51:58 +00:00
Luboš Luňák
222d60acf8 Put in changes reverted by r732026 again.
svn path=/trunk/KDE/kdebase/workspace/; revision=733454
2007-11-06 11:13:09 +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
Fathi Boudra
ea2ebe5e62 Rename kwin_oxy to kwin_oxygen.
More consistent with other kwin decoration name.

svn path=/trunk/KDE/kdebase/workspace/; revision=732858
2007-11-04 22:32:55 +00:00
Matthew Woehlke
a7c46120b6 undo (unintentional?) function removal by ruphy that broke the build... ruphy, please check the diff first! :-)
svn path=/trunk/KDE/kdebase/workspace/; revision=732044
2007-11-02 16:28:27 +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
Luboš Luňák
f55b1056a2 Make KDecorationFactory::supports() const, and also pure virtual to force
changing this signature in reimplementations, as -Woverloaded-virtual is
not in default flags :(.


svn path=/trunk/KDE/kdebase/workspace/; revision=731695
2007-11-01 16:07:38 +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
1bd2d4c10f enforce minimum contrast for titlebar fade effect
svn path=/trunk/KDE/kdebase/workspace/; revision=726726
2007-10-18 18:40:06 +00:00
Matthew Woehlke
c8c7e6e04b SVN_SILENT: debug--
svn path=/trunk/KDE/kdebase/workspace/; revision=726719
2007-10-18 18:12:08 +00:00
Matthew Woehlke
3aa0759a24 first crack at intelligently fading out inactive text
svn path=/trunk/KDE/kdebase/workspace/; revision=726717
2007-10-18 18:09:31 +00:00
Casper Boemann
3180c8c0b6 Fix closebutton not being clickable by moving the mouse to the corner in
maximized mode.

svn path=/trunk/KDE/kdebase/workspace/; revision=726270
2007-10-17 11:50:34 +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
Casper Boemann
42ecf61546 Better rounded corners of our windows
svn path=/trunk/KDE/kdebase/workspace/; revision=723510
2007-10-09 21:01:18 +00:00
Script Kiddy
9ba06500ca SVN_SILENT made messages (.desktop file, second try)
svn path=/trunk/KDE/kdebase/workspace/; revision=723243
2007-10-09 05:45:29 +00:00
Casper Boemann
f1ae14343e center signs on buttons a bit more
svn path=/trunk/KDE/kdebase/workspace/; revision=723041
2007-10-08 16:06:16 +00:00
Casper Boemann
fd6cac7877 move signs in windec buttons to correct place
svn path=/trunk/KDE/kdebase/workspace/; revision=722466
2007-10-07 11:55:11 +00:00
Matthew Woehlke
2b6691ce0f make titlebars big enough for buttons
boemann: feel free to revert if you have a better idea

svn path=/trunk/KDE/kdebase/workspace/; revision=721747
2007-10-06 00:39:16 +00:00
Matthew Woehlke
231fa45a2b adapt to new windeco button size stuffs (but glyphs are still 1 px off)
svn path=/trunk/KDE/kdebase/workspace/; revision=721736
2007-10-06 00:06:05 +00:00
Andreas Pakulat
39e322fc83 Merge the KConfig branch. This are the 3 main modules (+kdeadmin), which are
needed now because friday is the last BC day. The rest of the modules will
follow as fast as my laptop allows.

svn path=/trunk/KDE/kdebase/workspace/; revision=721704
2007-10-05 22:21:25 +00:00