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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
42ecf61546
Better rounded corners of our windows
...
svn path=/trunk/KDE/kdebase/workspace/; revision=723510
2007-10-09 21:01:18 +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
Casper Boemann
d9557f50d1
make the resize dots smaller
...
svn path=/trunk/KDE/kdebase/workspace/; revision=717923
2007-09-27 18:30:17 +00:00
Casper Boemann
a717c047a3
respect colorsetting for window title
...
svn path=/trunk/KDE/kdebase/workspace/; revision=715938
2007-09-23 14:30:37 +00:00
Casper Boemann
f5c53e76d6
change windec to inherit kcommondecoration, which brings us several
...
pleasenties
svn path=/trunk/KDE/kdebase/workspace/; revision=713524
2007-09-17 18:16:26 +00:00
Matthew Woehlke
9fc9231483
Set palette's currentColorGroup since apparently kwin doesn't give us one with the right color group. This fixes the bug where the oxygen windeco always uses the inactive colors.
...
Is this something that can be fixed in kwin?
CCMAIL: kwin@kde.org
svn path=/trunk/KDE/kdebase/workspace/; revision=710741
2007-09-10 19:09:39 +00:00
Luciano Montanaro
a1e92ce714
Make the titlebar height depend on the title font -- like all other shipped
...
decorations
svn path=/trunk/KDE/kdebase/workspace/; revision=708669
2007-09-05 10:55:05 +00:00
Pino Toscano
44bab7a4eb
set the autoFillBackground for the preview widget, so it's painted correctly clearing the garbage below
...
svn path=/trunk/KDE/kdebase/workspace/; revision=707412
2007-09-01 20:04:10 +00:00
Matthew Woehlke
1cfffc602e
move oxygen code that will be shared by the style into its own .cpp/.h
...
svn path=/trunk/KDE/kdebase/workspace/; revision=689747
2007-07-19 01:32:16 +00:00
Matthew Woehlke
ca0838643d
fix lower color, thanks for keeping me honest boemann :-)
...
svn path=/trunk/KDE/kdebase/workspace/; revision=689245
2007-07-17 23:50:33 +00:00
Matthew Woehlke
1768ac296c
fix windeco to use KColorScheme also, see r689219
...
TODO: share this code so it doesn't need to be fixed twice :-)
svn path=/trunk/KDE/kdebase/workspace/; revision=689244
2007-07-17 23:35:44 +00:00
Casper Boemann
3e024ce5e6
fix small visual error in upper right corner
...
svn path=/trunk/KDE/kdebase/workspace/; revision=688743
2007-07-16 18:52:40 +00:00
Casper Boemann
f153aad996
change the background as nuno wants
...
svn path=/trunk/KDE/kdebase/workspace/; revision=688728
2007-07-16 18:01:27 +00:00
Casper Boemann
fb78c8f6ad
update windec to have same background as new style
...
get rid of xrender stuff
did this to get smooth painting:
widget()->setAttribute( Qt::WA_PaintOnScreen, false);
svn path=/trunk/KDE/kdebase/workspace/; revision=688425
2007-07-16 02:12:45 +00:00
Casper Boemann
994a11916c
Move it correctly this time
...
svn path=/trunk/KDE/kdebase/workspace/; revision=676058
2007-06-15 20:48:52 +00:00