Hugo Pereira Da Costa
48321e81f7
Properly mask out the inner part of the shadows (that overlaps with e.g. menus), to prevent artifacts when translucency is enabled.
...
BUG: 355695
10 years ago
Hugo Pereira Da Costa
d0ddfe88ff
also use shadow color in Breeze style
11 years ago
Hugo Pereira Da Costa
73112d92e3
improved rendering of menu and mdi window shadows
11 years ago
Harald Sitter
a78e4592da
fix build without x11
...
previous shadow change twiddled with the commas breaking the initalizer
list if the breeze_have_x11 if evals to nothing, causing the list to
have a trailing comma and breaking the build
11 years ago
David Edmundson
9f752a5010
Create shadows uncondiationally
...
Breeze checks if shadows are supported by checking for a property on the
root window. This is set by kwin at some point after startup.
This leaves a gap for apps/plasmashell to start, determine shadows are
not supported and then never render them for the lifespan of that app.
It also can't handle window managers being replaced.
Not checking solves all the issues with limited drawback
REVIEW: 123284
11 years ago
Hugo Pereira Da Costa
61a2077e91
align shadow rendering to window decoration
11 years ago
Hugo Pereira Da Costa
6e0f9a8cb0
Removed debug (sorry !)
...
CCMAIL: hrvoje.senjan@gmail.com
BUG: 344909
11 years ago
Hugo Pereira Da Costa
ae40502ca0
properly update menu shadows on configuration change
11 years ago
Hugo Pereira Da Costa
9f749faa1e
user shadow configuration for menus, tooltips, etc
11 years ago
Kevin Funk
d827875638
Run convert-to-cmake-automoc.pl over files
...
Fixes warnings from moc
11 years ago
Hugo Pereira Da Costa
5d3323431f
removed 'light source' option since unmaintained, and not in sync with window decoration.
11 years ago
Hugo Pereira Da Costa
67e1dcfa2a
cleanup shadow rendering
11 years ago
Hugo Pereira Da Costa
2d7ae9e8ad
uint32_t -> quint32
12 years ago
Volker Krause
e9988b7e27
Make constants const, saves a few symbols in the .data section.
12 years ago
Hugo Pereira Da Costa
5d615ced89
Added commented code to scale passed sizes by devicePixelRatio, for testing purposes
12 years ago
Hugo Pereira Da Costa
352c814034
add dpi awareness to tileSet and shadows
12 years ago
Hugo Pereira Da Costa
7552f1b63f
push_back -> append
12 years ago
Hugo Pereira Da Costa
d97fa1c6e8
moved shadow property names to breezepropertynames
12 years ago
Hugo Pereira Da Costa
d5dc554463
- removed explicit dependency upon X11 (not needed)
...
- cleanup defines:
USE_KDE4 -> BREEZE_USE_KDE4
HAVE_X11 -> BREEZE_HAVE_X11
- set defines via config files rather than Make definitions
12 years ago
Hugo Pereira Da Costa
00a92a64cf
Fix license
12 years ago
Hugo Pereira Da Costa
f632372636
fixed possibly uninitialized variable
12 years ago
Hugo Pereira Da Costa
22d50e0747
simplified shadow rendering and minimized pixmaps size
12 years ago
Hugo Pereira Da Costa
217ffbba4d
Add source-light offset when positioning the shadows rather than when creating the pixmap
...
Adjusted mdi window shadows and menu shadows (passed to kwin) consequently
12 years ago
Hugo Pereira Da Costa
4b870e7371
reduce shadow tiles size
...
deal with offset when passing to kwin.
12 years ago
Hugo Pereira Da Costa
d63c96c49e
removed unneeded constructor
12 years ago
Hugo Pereira Da Costa
631247fac6
Moved back shadow dimensions to Metrics in breeze.h
...
cleanup shadow rendering code
fix shadow offsets in MDI windows
12 years ago
Hugo Pereira Da Costa
abba357db0
removed debug
12 years ago
Hugo Pereira Da Costa
388d2edda8
use smaller shadows
12 years ago
Hugo Pereira Da Costa
24fcbe92d0
Rewrite shadow code to match better Breeze svg style
...
- move all metrics shadowhelper
- handle light source from option
- make actual shadow size and offsets adjustable
- calculate 'effective' shadow size, and overlap, accordingly.
12 years ago
Hugo Pereira Da Costa
fcfc4e1837
doxygen
12 years ago
Hugo Pereira Da Costa
994f25c8aa
QGuiApplication -> QApplication
12 years ago
Hugo Pereira Da Costa
c903d29e37
made isX11 a static method of Breeze::Helper
...
use everywhere instead of duplicating code
12 years ago
Hugo Pereira Da Costa
03e3d3bfe5
Added utility typedefs for QPointer and QScopedPointer.
...
Moved to breeze.h
Use everywhere instead of QPointer directly
Use "using" syntax for typedefs, instead of "typedef" syntax
12 years ago
Hugo Pereira Da Costa
232e48eea9
use Helper::connection instead of QX11Info::connection
12 years ago
Hugo Pereira Da Costa
c017272992
moved all relevant enumerations to breeze.h
...
moved arrow rendering to helper
implemented empty toolbar handle
12 years ago
Hugo Pereira Da Costa
cb919d5dd3
removed middle shadow
12 years ago
Hugo Pereira Da Costa
a19b1c774d
removed debug messages
12 years ago
Hugo Pereira Da Costa
e7262d17c4
implemented dropdown menus and shadows
12 years ago