Hugo Pereira Da Costa
2b2a21e4d4
manually reduce shadow size in preview for better rendering.
2012-01-16 10:16:29 +01:00
Martin Gräßlin
2fce5db7cf
Fix button sizes in Aurorae
...
Maximize/Restore, Menu and spacers did not honor button size factor.
2012-01-13 18:08:45 +01:00
Martin Gräßlin
de72df5a90
Proper resetting of Aurorae on changes
...
Most settings don't require a reload of the decorations.
2012-01-13 18:08:45 +01:00
Martin Gräßlin
5f5499a74f
Reload Aurorae buttons when the button settings changed
2012-01-13 18:08:45 +01:00
Martin Gräßlin
a1bee6f8a7
Proper button handling in Aurorae QML
...
Buttons are exported as a global "options" in the factory.
Additionally the theme's buttons are also exported. The thme decided
based on the custom button positions property which one to use.
In the kcm the button options are also exported.
2012-01-13 18:08:45 +01:00
Martin Gräßlin
4e07ced451
Drop unused code
2012-01-13 18:08:45 +01:00
Martin Gräßlin
0df0266602
Makes two methods private which are no longer accessed from outside
2012-01-13 18:08:45 +01:00
Martin Gräßlin
beba190f8f
Correctly update decoration width/height on theme change
2012-01-13 18:08:45 +01:00
Martin Gräßlin
12ca69deda
Ensure that borders have at least a size of 0
...
Prevents cropping of windows with tiny borders.
BUG: 257428
2012-01-13 18:08:45 +01:00
Martin Gräßlin
cb47db887c
Fix c'n'p error
2012-01-13 18:08:44 +01:00
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