Commit graph

2076 commits

Author SHA1 Message Date
Martin Gräßlin
30d8f2c1ea Don't load FrameSvg in AuroraeTheme
This allows to remove Plasma compile dependency from Aurorae and
the KCM.
2012-01-13 18:08:44 +01:00
Martin Gräßlin
8a4a8b3903 Drop GraphicsScene based Aurorae 2012-01-13 18:08:44 +01:00
Martin Gräßlin
a0efa6453e Adding a slot to load an AuroraeTheme.
Can be used from the decoration module to load the theme for each
decoration.
2012-01-13 18:08:44 +01:00
Martin Gräßlin
b44efd3c22 Use one declarative engine for all decortions
Each decoration gets a graphicsview and scene instead and a declarative
item is created for each decoration.

There's probably still room for improvments. E.g. never render the
scene onto the widget but directly into the textures?
2012-01-13 18:08:43 +01:00
Martin Gräßlin
c2b23a3772 Aurorae supports all buttons
Not really correct, but we can hardly check it.
2012-01-13 18:08:43 +01:00
Martin Gräßlin
acfdc9765e Disable window tabbing in Aurorae 2012-01-13 18:08:43 +01:00
Martin Gräßlin
459794f65a Send mouse events to support window resizing 2012-01-13 18:08:43 +01:00
Martin Gräßlin
a8f47b6a4a Reload Aurorae theme when settings changed. 2012-01-13 18:08:43 +01:00
Martin Gräßlin
f96f5c979e Better Maximized/Restore button
Use just one button with the two variants embedded. Makes the state
transitions more robust.
2012-01-13 18:08:42 +01:00
Martin Gräßlin
fee9a52fd5 No longer updating the window shape
We don't have the mask for the opaque version anyway, so it does
not make any sense as for composited no mask was set.
2012-01-13 18:08:42 +01:00
Martin Gräßlin
d5021ca956 Don't read properties if compiling the script failed 2012-01-13 18:08:42 +01:00
Martin Gräßlin
5ba3f0356b Use parallel animations for button group 2012-01-13 18:08:42 +01:00
Martin Gräßlin
41dc4f35d1 Add inner-border support 2012-01-13 18:08:42 +01:00
Martin Gräßlin
90c882161c Export titleHeight for caption element 2012-01-13 18:08:42 +01:00
Martin Gräßlin
9b5f5a49cc Proper maximized support in Aurorae (QML)
Switches to the explicit maximized decoration element and animates
the button groups and caption.

Legacy support for just the centered element is still missing. Unsure
if it should be added or if it makes sense to break compatibility here.
2012-01-13 18:08:42 +01:00
Martin Gräßlin
d78320fa65 Support for Maximized/Restore buttons 2012-01-13 18:08:41 +01:00
Martin Gräßlin
5c36fcac36 Aurorae goes QML
What's working:
* background for active and inactive decorations inclusive transitions
* all buttons get loaded
* transition between button states
* all borders, paddings etc is working
* mouse interaction with buttons and title area

What's not yet working:
* special maximize mode
* mouse wheel on title area
* window tabs
* changing themes
* crash resistence (currently a not compiling QML file crashes KWin badly)
* window/blur mask (tricky - we need the alpha mask of the background SVG)

What's going to be dropped:
* special opaque mode
* decoration position at left/right/bottom instead of top
Why? Because nobody uses these features
2012-01-13 18:08:41 +01:00
Martin Gräßlin
e8e4029a79 Prepare Aurorae for a QML based theme 2012-01-13 18:08:41 +01:00
Martin Gräßlin
ee882624e4 Make AuroraeTheme config available through properties
Some minor aspects are still missing. Will be added if needed.
2012-01-13 18:08:41 +01:00
Martin Gräßlin
e801c12c69 Create a DeclarativeView instead of GraphicsView
Now we cannot see anything any more, but hey it compiles :-)
2012-01-13 18:08:41 +01:00
Martin Gräßlin
d8ce81d241 First set of properties and signals added to Aurorae 2012-01-13 18:08:40 +01:00
Hugo Pereira Da Costa
49d44ee2a5 removed other instances of QSharedPointer (damn Qt)
CCBUG: 290965
2012-01-09 09:50:35 +01:00
Hugo Pereira Da Costa
0f8e0545f5 Changed QSharedPointer -> QPointer
CCBUG: 290965
2012-01-09 09:44:01 +01:00
Script Kiddy
3dc974f3bb SVN_SILENT made messages (.desktop file) 2012-01-09 08:36:30 +01:00
Script Kiddy
ea20b79d70 SVN_SILENT made messages (.desktop file) 2011-12-22 11:48:21 +01:00
Script Kiddy
59a6dd3156 SVN_SILENT made messages (.desktop file) 2011-12-21 09:55:39 +01:00
Script Kiddy
2a7a4bb74d SVN_SILENT made messages (.desktop file) 2011-12-20 16:29:23 +01:00
Script Kiddy
61053eb8d0 SVN_SILENT made messages (.desktop file) 2011-12-19 15:33:20 +01:00
Script Kiddy
8979af0a5f SVN_SILENT made messages (.desktop file) 2011-12-18 09:55:30 +01:00
Thomas Lübking
4040b1ae2f queue aurorae decoration button events to prevent them from
destroying the scene in the same event cycle

BUG: 242116
REVIEW: 103336
2011-12-05 18:28:35 +01:00
Hugo Pereira Da Costa
12bcd08871 do not fade separator when it is drawn for both active and inactive windows. 2011-11-08 19:01:02 +01:00
Christophe Giboudeaux
f76c40c424 Fix the -Wmissing-include-dirs warnings 2011-10-19 23:53:13 +02:00
Martin Gräßlin
eda72d6475 Don't react on mouse release events in Aurorae if mouse is outside button
HAPPY BIRTHDAY KDE. One bug fix as a present.

BUG: 283236
FIXED-IN: 4.7.3
2011-10-14 20:45:07 +02:00
Hugo Pereira Da Costa
885e42142f Fixed glow animation for outlined windows. 2011-10-05 23:01:13 +02:00
Hugo Pereira Da Costa
066927ebfb More fine tuning of window borders in outline mode. 2011-10-05 19:56:00 +02:00
Hugo Pereira Da Costa
e8addb2596 Turn off antialiasing when rendering window outline borders.
CCBUG: 283398
2011-10-05 18:55:45 +02:00
Luboš Luňák
2f1bb4f4a3 do not access possibly deleted memory 2011-09-30 19:24:42 +02:00
Hugo Pereira Da Costa
f435f716b8 do not paint buttons (from parent) if hidden. 2011-09-23 15:46:29 +02:00
Hugo Pereira Da Costa
c9ed76be6f set bottom border to zero when shading windows. This makes buttons and title vertically
centered.
2011-09-22 22:28:24 +02:00
Hugo Pereira Da Costa
acf1ba4717 keep button hover state even when pressed. 2011-09-22 22:22:37 +02:00
Hugo Pereira Da Costa
f931cd22f9 Use Client::layoutMetric to access shadowSize instead of shadowCache. This fixes some painting issues for maximized
windows.
2011-09-20 14:08:34 +02:00
Hugo Pereira Da Costa
f2e93e1b73 Revert "fine tune button shadows."
This reverts commit 8c2841a58f75466c5ad87aff35bad8859f9c6822.
2011-09-20 09:14:24 +02:00
Hugo Pereira Da Costa
c62bd64896 fine tune button shadows. 2011-09-20 09:10:09 +02:00
Hugo Pereira Da Costa
2ced9ec941 added comments in ::paintEvent. 2011-09-20 09:09:42 +02:00
Hugo Pereira Da Costa
58e2393d56 re-ordered button.
No "parentUpdate" in non-compositing mode (cause unneeded)
2011-09-19 16:23:29 +02:00
Hugo Pereira Da Costa
e22573e586 buttons 2011-09-19 15:31:18 +02:00
Hugo Pereira Da Costa
b8a767e3cf properly update parent when button state is changed. 2011-09-19 15:20:07 +02:00
Hugo Pereira Da Costa
01da5bb015 moved all button painting to client. 2011-09-19 15:16:43 +02:00
Hugo Pereira Da Costa
3f8b4de381 try install better glow. 2011-09-16 18:31:12 +02:00
Hugo Pereira Da Costa
4732070efa only define Shadow in scope where it is used. 2011-09-16 18:26:30 +02:00
Hugo Pereira Da Costa
a05eecf4f0 improved and simplified window decoration buttons. 2011-09-16 17:49:45 +02:00
Hugo Pereira Da Costa
0393983755 use QPainter::setWindow to actually perform scaling. 2011-09-16 17:19:02 +02:00
Hugo Pereira Da Costa
bd6653ef59 Moved painting of windeco buttons to own cache in Style and deco helper;
Simplified decoration windeco buttons painting to use only one cache;
Renamed windeco button painting to dockWidgetButton painting for style.
2011-09-15 23:22:45 +02:00
Hugo Pereira Da Costa
c5365e287a fixed indentation. 2011-09-13 14:19:47 +02:00
Script Kiddy
4cbbf921d4 SVN_SILENT made messages (.desktop file) 2011-09-09 09:21:44 +02:00
Script Kiddy
157f51ce85 SVN_SILENT made messages (.desktop file) 2011-09-08 09:04:13 +02:00
Script Kiddy
74792cff83 SVN_SILENT made messages (.desktop file) 2011-09-02 09:01:06 +02:00
Melchior FRANZ
0b1dbed749 tabstrip: make outline color configurable 2011-08-27 18:52:40 +02:00
Montel Laurent
62c5a5e276 normalize signal/slots 2011-08-17 23:51:55 +02:00
Hugo Pereira Da Costa
ce0862d726 Merge branch 'master' of git.kde.org:kde-workspace 2011-08-05 17:02:41 +02:00
Script Kiddy
857a61e30f SVN_SILENT made messages (.desktop file) 2011-08-04 10:39:45 +02:00
Jaime Torres
664aaa1b60 ++ prefix for non-trivial data-types
change suffix ++ to prefix ++ to speed up a little bit not-trivial
data-types. discovered by cppcheck

REVIEW: 102057
2011-08-02 17:21:56 +02:00
Hugo Pereira Da Costa
f256f62ad0 Merge branch 'master' of git.kde.org:kde-workspace 2011-07-27 09:48:42 -04:00
Script Kiddy
ff5707c91b SVN_SILENT made messages (.desktop file) 2011-07-27 09:34:28 +02:00
Hugo Pereira Da Costa
cfdfe9251c git pull Revert "use QWeakPointer (and explicit deletion, if needed)
instead of QSharedPointer"

This reverts commit 73da3a77f2041ac3de44842a162243c036fd32f9.
CCBUG: 277925
2011-07-25 17:04:28 +02:00
Hugo Pereira Da Costa
6d96696898 Merge branch 'master' of git.kde.org:kde-workspace 2011-07-21 16:07:31 +02:00
Hugo Pereira Da Costa
14e876e4b6 changed animation text, for clarity. 2011-07-21 16:06:58 +02:00
Script Kiddy
9b8404279b SVN_SILENT made messages (.desktop file) 2011-07-21 09:27:01 +02:00
Hugo Pereira Da Costa
bb769a9eb6 moved method from private to protected. 2011-07-18 12:20:58 +02:00
Hugo Pereira Da Costa
3637caf68c minor code cleanup. 2011-07-18 10:21:17 +02:00
Hugo Pereira Da Costa
43cae07762 fixed saving of animations configuration based on expertMode(). 2011-07-18 10:09:22 +02:00
Hugo Pereira Da Costa
9f12ecd91d fix updateChanged() method. 2011-07-18 10:06:13 +02:00
Hugo Pereira Da Costa
4e7364d9df nothing. 2011-07-18 10:06:05 +02:00
Hugo Pereira Da Costa
a6ffa920e4 implemented individual animations configuration. 2011-07-18 09:49:15 +02:00
Hugo Pereira Da Costa
92f9181db9 tabulations. 2011-07-18 07:55:17 +02:00
Hugo Pereira Da Costa
f75111622b added animation config widget to allow individual animation configuration. 2011-07-18 07:53:41 +02:00
Hugo Pereira Da Costa
c21122c863 added necessary options to configure all type of animations individually. 2011-07-18 07:36:44 +02:00
Hugo Pereira Da Costa
6c235bbe1e removed unused header. 2011-07-17 17:55:28 +02:00
Hugo Pereira Da Costa
31d6f0e7ac tabulations. 2011-07-17 16:27:51 +02:00
Hugo Pereira Da Costa
0ae4d9489f always enable window grouping, when available.
removed corresponding config option.
2011-07-17 16:12:30 +02:00
Hugo Pereira Da Costa
7ca4d15919 use QWeakPointer (and explicit deletion, if needed) instead of QSharedPointer
CCBUG: 277925
2011-07-17 15:49:16 +02:00
Hugo Pereira Da Costa
5c95478e56 removed shadowCacheMode option.
Default mode (variable) is what's kept.
2011-07-17 13:13:44 +02:00
Script Kiddy
1eb1c85289 SVN_SILENT made messages (.desktop file) 2011-07-13 09:17:45 +02:00
Script Kiddy
d414f57c8d SVN_SILENT made messages (.desktop file) 2011-07-07 10:20:05 +02:00
Script Kiddy
976f396fc7 SVN_SILENT made messages (.desktop file) 2011-07-06 10:41:48 +02:00
Hugo Pereira Da Costa
db297dee87 fixed unbalanced save/restore 2011-07-02 13:13:58 +02:00
Hugo Pereira Da Costa
05fc073439 draw background overlay pixmap manually in preview. 2011-06-30 11:43:34 +02:00
Hugo Pereira Da Costa
18cdb220d7 Added "show advanced options" button. 2011-06-30 11:20:50 +02:00
Hugo Pereira Da Costa
dfcab17585 use backing store pixmap for buttons when compositing is not active.
Copy parent backgronud from backing store pixmap when rendering buttons.
2011-06-28 09:24:02 +02:00
Hugo Pereira Da Costa
d3d5d9b9d3 Merge branch 'master' into master-no-composite 2011-06-28 09:09:50 +02:00
Hugo Pereira Da Costa
f6a12ad1cf coding style. 2011-06-28 09:09:31 +02:00
Hugo Pereira Da Costa
8361b13de9 added double buffering to oxygen-client when compositing is off;
force update of buttons in client->paintEvent();
call _client->paint() from Button, instead of parentWidget()->render();
2011-06-28 01:27:58 +02:00
Hugo Pereira Da Costa
6e0733e0de fixed button rendering when compositing is disabled. 2011-06-28 01:09:22 +02:00
Script Kiddy
163824af85 SVN_SILENT made messages (.desktop file) 2011-06-22 09:44:08 +02:00
Script Kiddy
538e9d1467 SVN_SILENT made messages (.desktop file) 2011-06-21 11:01:53 +02:00
Hugo Pereira Da Costa
5194705e30 fixed detection of pressed state for decoration's 'toggle like' buttons. 2011-06-14 18:49:46 +02:00
Pino Toscano
339990dbae i18n: do not extract placeholder strings 2011-06-08 21:00:49 +02:00
Script Kiddy
b0e3b23c25 SVN_SILENT made messages (.desktop file) 2011-06-08 09:23:45 +02:00
Script Kiddy
01e64e9039 SVN_SILENT made messages (.desktop file) 2011-06-03 09:06:45 +02:00
Hugo Pereira Da Costa
c7f87d49d7 Set padding to 0 when client is maximized.
CCBUG: 274177
2011-05-30 17:56:50 +02:00
Hugo Pereira Da Costa
8c7585e500 do not render shadows when maximized.
CCBUG: 274177
2011-05-30 16:51:25 +02:00
Script Kiddy
a7dc64e5b8 SVN_SILENT made messages (.desktop file) 2011-05-29 10:09:53 +02:00
Script Kiddy
3d0c81f121 SVN_SILENT made messages (.desktop file) 2011-05-17 10:49:34 +02:00
Hugo Pereira Da Costa
810a750d25 removed some unneeded empty lines. 2011-05-11 10:23:36 +02:00
Script Kiddy
9d7c88d288 SVN_SILENT made messages (.desktop file) 2011-05-11 09:17:09 +02:00
Script Kiddy
cb2597dcaf SVN_SILENT made messages (.desktop file) 2011-05-09 09:32:40 +02:00
Hugo Pereira Da Costa
b602ce9d52 fixed default tab. 2011-05-05 23:43:11 +02:00
Hugo Pereira Da Costa
c5766a5e3a removed "shadowMode" option, since it has been obsoleted by kwin's new shadow system. 2011-05-01 11:52:22 +02:00
Hugo Pereira Da Costa
8d7455cfaf sanitize color handling in button rendering. 2011-04-28 18:09:09 +02:00
Hugo Pereira Da Costa
24543ebbb9 Use QPalette::Button colors for button (!) rendering. 2011-04-28 17:28:46 +02:00
Hugo Pereira Da Costa
685d5b2a4b cleanup 2011-04-21 19:14:28 +02:00
Hugo Pereira Da Costa
5a29c0b21b added dedicated hint so that widget style can tell the decoration whether to
use a window pixmap or not.
2011-04-20 12:01:38 +02:00
Hugo Pereira Da Costa
d84f048b6a moved pixmap rendering to separate method.
It is called independently from window background in decoration code;
It is called together with window background in style.
2011-04-20 11:28:45 +02:00
Hugo Pereira Da Costa
77dd014d8a fixed horizontal positionning of background pixmap. 2011-04-20 10:57:40 +02:00
Hugo Pereira Da Costa
82d3524353 Merge branch 'master' into oxygen/background-pixmap 2011-04-20 10:21:37 +02:00
Hugo Pereira Da Costa
e213b3ca9f fix gradient positionning for maximized windows 2011-04-16 13:18:45 +02:00
Hugo Pereira Da Costa
38f5c5d055 nothing. 2011-04-16 11:48:44 +02:00
Martin Gräßlin
320de6abc6 Merge branch 'master' into oxygen-shadows
Conflicts:
	kwin/atoms.cpp
	kwin/atoms.h
2011-04-04 18:09:59 +02:00
Hugo Pereira Da Costa
275cf05184 make sure Shadow X11 property is not set on decorated windows, since it is handled by
the decoration itself (and therefore should not be by kwin).
2011-04-04 09:42:11 +02:00
Script Kiddy
25fd8bd0d3 SVN_SILENT made messages (.desktop file) 2011-03-31 07:42:47 +02:00
Hugo Pereira Da Costa
258bc024a4 Removed unnecessary compilation of oxygendecohelper. 2011-03-16 17:53:39 +01:00
Script Kiddy
5c0a54f89d SVN_SILENT made messages (.desktop file) 2011-03-12 08:34:39 +01:00
Hugo Pereira Da Costa
e5956f2e9a Decoration: read background pixmap from oxygenrc 2011-03-03 10:52:35 +01:00
Hugo Pereira Da Costa
96c7dedacb Added background pixmap offset to properly align decoration background and style background. 2011-03-03 10:35:56 +01:00
Hugo Pereira Da Costa
9918437a71 play with the idea of painting an overlay pixmap on top of window background. 2011-03-02 17:01:45 +01:00
Hugo Pereira Da Costa
a190d65790 more variable names cleanup 2011-02-24 19:11:12 +01:00
Hugo Pereira Da Costa
3c290e07cd cleanup variable names. 2011-02-24 17:47:38 +01:00
Hugo Pereira Da Costa
0960942f4e cleanup variable names for consistency 2011-02-24 17:37:04 +01:00
Hugo Pereira Da Costa
1aeb5fedcc ::(Style/Deco/)Helper - variable names cleanup
moved all caches to Private; added protected accessor, and updated daughter classes
accordingly. Also renamed variables for consistency with other classes
2011-02-24 17:08:41 +01:00
Hugo Pereira Da Costa
3c5c517220 Oxygen::Config - fixed writting of shadowMode. 2011-02-24 08:24:00 +01:00
Hugo Pereira Da Costa
98b415db93 Oxygen::Config - Fixed saving of ShadowCacheMode. 2011-02-24 08:22:49 +01:00
Hugo Pereira Da Costa
cf7f1a378a Factory: properly account for shadow configuration change when return changed status. 2011-02-23 11:21:46 +01:00
Hugo Pereira Da Costa
4abee2e112 perform all shadow configuration in ShadowCache::readConfig.
This will avoid code duplication between style and decoration.
2011-02-23 11:14:21 +01:00
Hugo Pereira Da Costa
2099e9dab0 moved Oxygen::ShadowCache and Oxygen::ShadowConfiguration from kwin/clients/oxygen to libs/oxygen
This is necessary to implement client-side shadows (for menus and drop-down lists)
2011-02-23 10:04:00 +01:00
Hugo Pereira Da Costa
c9899372ba use Oxygen::Helper rather than Oxygen::DecoHelper. 2011-02-23 09:59:31 +01:00
Hugo Pereira Da Costa
b35d3c7b65 clean-up headers to make shadow cache and configuration decoration independent. 2011-02-23 09:46:17 +01:00
Martin Gräßlin
4f12f43d5d Clean up documentation in KWin
* COMPOSITE_TODO lists many tasks already implemented or not valid any more,
  it's easier to just write a new document with concrete tasks in the wiki
* NEWCOLORSCHEME.README has been unchanged since it's first introduction in 2000.
  Does not sound any "new" to me and lists changes compared to KWM
* clients/PORTING: all important clients have been ported and what is not yet
  ported will probably never get ported. The unported decos have been moved
  to unmaintained some time ago.
* clients/REQUIREMENTS_FOR_CVS: well the requirements are not valid any more.
2011-02-20 18:22:10 +01:00
Script Kiddy
15155326e2 SVN_SILENT made messages (.desktop file) 2011-02-03 07:25:47 +01:00
Hugo Pereira Da Costa
488b3644d5 Changed handling of shadow overlap with window content
Oxygen::ShadowCache::shadowSize() now returns the shadow extend outside of the window body (the extend)
Overlab between the actual shadow pixmap and the window body is dealt with internally (by creating larger pixmaps)
This allows notably Oxygen::Client to not attempt to draw shadow when shadowSize == 0 (which was never the case
before)
2011-02-02 17:23:08 +01:00
Hugo Pereira Da Costa
c1ff9525e3 Removed obsolete ShadowCache::Key::useOxygenShadows flag
The flag has been made obsolete by the fact that window corners are not part of the shadow anymore.
Configuration::useOxygenShadows is now dealt with by setting the active flag directly.
2011-02-02 17:21:12 +01:00
Script Kiddy
b637e9d7ca SVN_SILENT made messages (.desktop file) 2011-02-02 08:26:11 +01:00
Montel Laurent
91bf3ab073 Fix ui files 2011-02-01 13:16:06 +01:00
Kevin Ottens
de2c5b91f1 The demo needs to find the lib oxygen headers. 2011-01-30 17:34:15 +01:00
Hugo Pereira Da Costa
71d4bdd45d added dbus signal+connection to update shadows on fly in demo.
svn path=/trunk/KDE/kdebase/workspace/; revision=1217941
2011-01-29 18:33:01 +00:00
Hugo Pereira Da Costa
fdddfcf9ee Added oxygen-shadow-demo to demonstrate shadow painting, add the possibility to save pixmaps
into files, and for debugging.

svn path=/trunk/KDE/kdebase/workspace/; revision=1217934
2011-01-29 18:12:23 +00:00
Hugo Pereira Da Costa
025e7a5859 Fixed some coding style.
Changed tileset definition so that all shadow pixmaps have same size.

svn path=/trunk/KDE/kdebase/workspace/; revision=1217933
2011-01-29 18:10:00 +00:00
Hugo Pereira Da Costa
5a41506500 Fixed typo on saving offsets.
svn path=/trunk/KDE/kdebase/workspace/; revision=1217908
2011-01-29 14:55:14 +00:00
Hugo Pereira Da Costa
92bea91686 - moved rendering of antialiased corners from Oxygen::ShadowCache to Oxygen::Client.
- simplified caching of ShadowCache accordingly. Notably, it should make it easier to pass the shadows to kwin.
- removed unnecessary QPainter::save()/restore() calls
- set painter AntiAliasing render hint earlier in Client::paintEvent
- modified drawing of drop target rect accordingly.
- oh. And fixed krazy warnings.

svn path=/trunk/KDE/kdebase/workspace/; revision=1217439
2011-01-27 09:40:48 +00:00
Hugo Pereira Da Costa
37d8ffe6e4 added flag to disable drawing of "corners" in shadows.
svn path=/trunk/KDE/kdebase/workspace/; revision=1217366
2011-01-26 21:28:39 +00:00
Martin Gräßlin
cf553792a9 Forward port 1214767: Honor font settings in Aurorae.
CCBUG: 249681

svn path=/trunk/KDE/kdebase/workspace/; revision=1214768
2011-01-16 10:25:22 +00:00