Commit graph

996 commits

Author SHA1 Message Date
Luboš Luňák
daf1fbd23e Add spacers before the close button to make it stand alone,
but don't alter the layout otherwise.


svn path=/trunk/KDE/kdebase/workspace/; revision=743055
2007-11-29 19:28:07 +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
3efc18c3b9 use new AbilityColor* in all kdebase windecos (except kwmtheme which doesn't seem to have a supports() even, and reportedly is not built)
svn path=/trunk/KDE/kdebase/workspace/; revision=743029
2007-11-29 18:02:20 +00:00
Matthew Woehlke
36850bd14a use new AbilityAnnounceColor
svn path=/trunk/KDE/kdebase/workspace/; revision=743016
2007-11-29 17:14:26 +00:00
Matthew Woehlke
529611c662 Add AbilityAnnounceColors and AbilityColor* abilities to kwin decorations; this way clients can say what colors they support for the benifit of the color kcm (and anyone else that might need to know?)
svn path=/trunk/KDE/kdebase/workspace/; revision=743015
2007-11-29 17:13:15 +00:00
Luboš Luňák
fc23037d3a Add missing license headers. Some files mentioned only copyright
but not explicitly the license, there I assumed they're licensed
under the same license as the rest of KWin, which is GPLv2+ as of now.
CC-ing all people mentioned as copyright holders just in case
somebody wants some other license, e.g. the X11 license KWin used
to be licensed under until KDE3.2. Please check with other relevant
contributors and change accordingly in such case.
CCMAIL: Karol Szwed <gallium@kde.org>
CCMAIL: Luciano Montanaro <mikelima@cirulla.net>
CCMAIL: Sandro Giessl <sandro@giessl.com>
CCMAIL: Daniel M. Duley <mosfet@kde.org>
CCMAIL: Chris Lee <clee@kde.org>


svn path=/trunk/KDE/kdebase/workspace/; revision=742990
2007-11-29 15:32:50 +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
74b89e491d Revert r741298 - this time the right fix for -Woverloaded-virtual is fixing
the base class.
CCMAIL: montel@kde.org


svn path=/trunk/KDE/kdebase/workspace/; revision=741860
2007-11-26 16:00:21 +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
Laurent Montel
d663800ddd defaultButtonsLeft and defaultButtonsRight is not const now.
I think that it will not create problem, but it fixes warning

svn path=/trunk/KDE/kdebase/workspace/; revision=741298
2007-11-25 11:24:28 +00:00
Script Kiddy
35efdf2ba2 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=741240

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

M	wallpapers/plasma-default.png.desktop
2007-11-25 07:47:58 +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
Luciano Montanaro
97d274b7c3 - Fix the titlebar height for the rest of the shipped decorations.
- Fix the "sticky" button rendering in the quartz decoration.

svn path=/trunk/KDE/kdebase/workspace/; revision=740254
2007-11-22 21:18:09 +00:00
Luciano Montanaro
a951008c1e - Fix titlebar too tall problem
- Fix sticky button painting

svn path=/trunk/KDE/kdebase/workspace/; revision=740026
2007-11-22 11:17:05 +00:00
Luciano Montanaro
f30d4c31af - Fix the sticky button look like it was intended to look. This required
painting on a QImage instead of on a QPixmap. Qt bug?
- Disable custom drawbounds code for now, so that KWin can at least draw its
  own.

svn path=/trunk/KDE/kdebase/workspace/; revision=739999
2007-11-22 09:36:14 +00:00
Script Kiddy
f0fb54200f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=739529

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

M	wallpapers/Totally-New-Product-1.jpg.desktop
M	wallpapers/blue-bend.jpg.desktop
M	wallpapers/celtic.svgz.desktop
M	wallpapers/default_blue.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/lineart.svgz.desktop
M	wallpapers/moon.svgz.desktop
M	wallpapers/plasma-default.png.desktop
M	wallpapers/soft-green.jpg.desktop
M	wallpapers/sunshine-after-the-rain.jpg.desktop
2007-11-21 07:59:36 +00:00
Luboš Luňák
7bfa13af32 Remove old 3.1->3.2 porting guide.
svn path=/trunk/KDE/kdebase/workspace/; revision=739139
2007-11-20 16:03:27 +00:00
Luboš Luňák
ab70575d1f Make the outline for moving/resizing work with Qt4, which bothers
to support XOR painting only when XRender is available. Given that
outline should be mainly used with older systems, go for a DIY Xlib-based
solution. Needs changes in decorations using it.
BUG: 149997


svn path=/trunk/KDE/kdebase/workspace/; revision=739136
2007-11-20 16:00:58 +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
Luciano Montanaro
9937a60893 Fix Bug 152343 for the laptopclient case.
svn path=/trunk/KDE/kdebase/workspace/; revision=737217
2007-11-15 20:24:01 +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
Sandro Giessl
0b28be3447 Fix a little off-by-one pixel error (titlebar color drawn over window
border when there is no left kwin button configured), described on
http://www.michielovertoom.com/kwin-web-fix/


svn path=/trunk/KDE/kdebase/workspace/; revision=728221
2007-10-22 18:51: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
Luciano Montanaro
0fb2ba30e2 - Fix paint on null bitmap
- Fix ClientFactory::supprts() to report only supported buttons.

svn path=/trunk/KDE/kdebase/workspace/; revision=726597
2007-10-18 07:37:43 +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
Luciano Montanaro
65fabe9b98 The close bits are not used anymore.
svn path=/trunk/KDE/kdebase/workspace/; revision=726206
2007-10-17 07:55:55 +00:00
Luciano Montanaro
bb593de8fc - Fix rendering of the close button on composite screens.
As a side effect, the x now resizes to match the button size.
- Render the help "?" character slightly larger.

svn path=/trunk/KDE/kdebase/workspace/; revision=725374
2007-10-15 07:52:06 +00:00
Luciano Montanaro
1f42aba1de Replace the help button "?" bitmap with code to render the "?" using
drawText. This means the help button has better scalability, and it
actually draws correctly on composited displays.

Redone the button height calculation to better match the 3.x version.
TODO: the sticky and close buttons

svn path=/trunk/KDE/kdebase/workspace/; revision=724399
2007-10-12 08:03:19 +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