Vlad Zagorodniy
f632fdc8c4
modernize: delete redundant void args
...
Summary:
Redundant void args are deleted with clang-tidy.
See https://clang.llvm.org/extra/clang-tidy/checks/modernize-redundant-void-arg.html
Reviewers: #breeze, mart
Reviewed By: mart
Subscribers: plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D11636
8 years ago
Hugo Pereira Da Costa
610b6f13c3
Q_DECL_OVERRIDE -> override
...
Rationale is that breeze decoration depends on libkdecoration, which uses override directly already.
9 years ago
Hugo Pereira Da Costa
9a63b05a24
pass iconSize as button's parameter rather than trying to calculate it from geometry and offset
...
Past calculation was wrong anyway
11 years ago
Hugo Pereira Da Costa
331f9b6ceb
properly update button's animation duration on reconfiguration
11 years ago
Hugo Pereira Da Costa
d2ccf2df45
overall cleanup to align with oxygen code
11 years ago
Hugo Pereira Da Costa
fd8f6f22b2
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
ab80e3880f
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
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
4a2a5c483a
cleanup directory structure
...
removed old breeze decoration svg
11 years ago
Hugo Pereira Da Costa
77f2667336
fancy in-class initialization :)
11 years ago
Hugo Pereira Da Costa
9280f25d74
added copyright
11 years ago
Hugo Pereira Da Costa
453ad537cb
moved all button rendering to breezebutton, without caching
...
removed breezeimageprovider
adjust painter window to have more spacing around button
11 years ago
Hugo Pereira Da Costa
1ad9fc23c0
implemented animations for buttons
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
7a6328a2de
moved image provider to own class
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
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
671287706a
ImageProvider uses Breeze::Button* instead of KDecoration2::DecorationButton*
12 years ago
Martin Gräßlin
712885f112
Use gridUnit based layouting of all elements
...
All paddings and sizes are derived from the grid unit and make the UI
scalable with DPI settings depending on the font size.
12 years ago
Martin Gräßlin
1dec5cb5db
Pass creation of DecorationButtons to DecorationButtonGroup
...
This way it follows the global settings.
12 years ago
Martin Gräßlin
906baf6609
Initial import of new KDecoration2 based window decoration
...
This new decoration plugin requires the new API which needs to
be built from:
kde:kdecoration
To view the decoration use the tool available in
kde:kdecoration-viewer
It is not yet integrated into KWin. One cannot use the decoration yet.
12 years ago