Hugo Pereira Da Costa
b1244feb7c
use Flag enumeration to describe button position
...
add horizontal offset for rendering
properly extend horizontal hit area for buttons in maximize mode, padding is preserved, but Fitts law is fullfilled.
11 years ago
Hugo Pereira Da Costa
4dd75758dc
Moved buttons geometry handling to Breeze::decoration
...
Do not change size of titlebar when maximizing.
Expend buttons hit area to satisfy Fitts law in maximize mode
BUG: 342824
BUG: 342864
11 years ago
Hugo Pereira Da Costa
570a833afd
Do not draw separator in active windows if titlebar color match window background color
11 years ago
Hugo Pereira Da Costa
65d743c94e
animate size grip colouring
11 years ago
Hugo Pereira Da Costa
ceb577eac6
recalculate borders on shade change, in order to have 0 bottom border.
11 years ago
Hugo Pereira Da Costa
d4bf677dcb
fixed titlebar area
11 years ago
Hugo Pereira Da Costa
43820c6295
never return border size smaller than the minimum value needed for comfortable resize
11 years ago
Hugo Pereira Da Costa
4a2a5c483a
cleanup directory structure
...
removed old breeze decoration svg
11 years ago
Hugo Pereira Da Costa
1cf4494eaf
removed breezehelper
...
use QX11Info::isPlatformX11 instead of Helper::isX11
11 years ago
Hugo Pereira Da Costa
c30d0f591a
removed 'VerySmall' button size
11 years ago
Hugo Pereira Da Costa
1f65ada948
Made settings provider a QObject
...
properly re-read when settings are reconfigured
11 years ago
Hugo Pereira Da Costa
f084153ef6
Properly implement exception border size
11 years ago
Hugo Pereira Da Costa
2ff32c5435
Moved shared pointer typedef to breeze for larger use
...
Use shared pointer for handling InternalSettings inside decoration
11 years ago
Hugo Pereira Da Costa
cc94dd9886
implemented drawSizeGrip and drawBorderOnMaximizedWindows options
11 years ago
Hugo Pereira Da Costa
67e1dcfa2a
cleanup shadow rendering
11 years ago
Hugo Pereira Da Costa
efadfc24d4
Implement size grip for borderless windows
...
- implemented resize using xcb
- use xcb to move sizeGrip on resize because Qt move seems broken after widget is reparented
- use xcb to get sizegrip' root coordinate, because Qt MapTo methods are broken after widget is reparented
- protect all XCB calls behind typedef and runtime check
- disable sizeGrip if not in X11
11 years ago
Hugo Pereira Da Costa
f0768422c3
fixed outline color fading
11 years ago
Hugo Pereira Da Costa
0b5a35af30
fixed padding between buttons and text
11 years ago
Hugo Pereira Da Costa
80c437f61d
Moved configuration to the same library as the decoration plugin
...
added kcmodule keyword
removed unnecessary code
11 years ago
Hugo Pereira Da Costa
c6e35208c6
Fixed update rect on caption changed
...
Fixed too tight bounding rectangles
Fixed text alignment into bounding rect to avoid jitter
11 years ago
Hugo Pereira Da Costa
b62adbe3b5
reordered methods
...
improved rendering of shaded windows
11 years ago
Hugo Pereira Da Costa
540179d686
fixed shadow rendering in the corner
11 years ago
Hugo Pereira Da Costa
ff5c32f9f2
added active state change animation
11 years ago
Hugo Pereira Da Costa
cc61aa262c
Added configuration widget
...
Not (yet) loaded inside kwin decoration kcm
11 years ago
Hugo Pereira Da Costa
0b0f104444
proper text alignment
11 years ago
Hugo Pereira Da Costa
9fbc898b4c
added internal settings
...
adjusted button sizes
11 years ago
Hugo Pereira Da Costa
04c2e8edef
simplified shadow rendering
11 years ago
Hugo Pereira Da Costa
f58e76cceb
adjusted button sizes
11 years ago
Hugo Pereira Da Costa
8a322486e5
increased decoration margins
...
increased button spacing
introduced button size
11 years ago
Hugo Pereira Da Costa
aef1bff69e
renamed breezedeco to breezedecoration to be in par with class name
...
fixed vertical positionning of buttons
11 years ago
Hugo Pereira Da Costa
15efa2284c
renamed file consistently to class
11 years ago
Hugo Pereira Da Costa
fa5a7928e9
removed comment
11 years ago
Hugo Pereira Da Costa
e1067fdfa8
removed 'grey' spacing between active window outline and window body
...
reduced top size accordingly.
11 years ago
Hugo Pereira Da Costa
7667260904
moved color settings class to own file
...
some code formatting
11 years ago
Martin Gräßlin
50b64c987c
[kdecoration] Share the DecorationShadow with all Decorations
11 years ago
Martin Gräßlin
f93eed20bb
[kdecoration] DecorationShadow is a QSharedPointer
11 years ago
Martin Gräßlin
4ad71b575d
Decoration::client returns a QWeakPointer
11 years ago
Martin Gräßlin
48aa1f73c7
[kdecoration] paint takes QRect instead of QRegion
11 years ago
Martin Gräßlin
7409c956f0
[kdecoration] DecorationShadow uses QRect to describe element sizes
11 years ago
Martin Gräßlin
b104042249
[kdecoration] DecorationShadow uses QMargins for padding
11 years ago
Martin Gräßlin
c9e9aa54cf
[kdecoration] Rename DecoratedClient::borderingScreenEdges to adjacentScreenEdges
11 years ago
Martin Gräßlin
21149ac6da
[kdecoration] Decoration::titleRect renamed to ::titleBar
11 years ago
Martin Gräßlin
4c965144b4
[kdecoration] ExtendedBorders renamed to ResizeOnlyBorders
...
And is also a QMargins.
11 years ago
Martin Gräßlin
db4318156d
[kdecoration] Decoration uses QMargins for borders
11 years ago
Martin Gräßlin
3ca6751a07
[kdecoration] Paint methods take repaint region
11 years ago
Martin Gräßlin
e33fa37b47
Add a Preview mode to the Decoration Button
...
The plugin allows to create a KDecoration2::DecorationButton by
registering the keyword "button". If such a button is created the
rendering is slightly adjusted to always have the normal background,
so that it works as in a Preview.
12 years ago
Martin Gräßlin
02fced3418
[kdecoration2] Pass QVariantList argument to parent Decoration
12 years ago
Martin Gräßlin
ddb58c21bf
[kdecoration2] DecorationSettings is no longer a singleton
...
It's provided by Decoration::settings() instead and not valid before
::init was invoked. Thus init is implemented and all the initialization
code is moved to init.
12 years ago
Hugo Pereira Da Costa
38e10d77e4
Fixed compilation with gcc 4.8.2 by adding relevant .data() calls
12 years ago
Martin Gräßlin
1f7a1f8e9b
Hide borders which border a screen edge
12 years ago