rotate toolbar texture along with toolbar
This commit is contained in:
parent
d77de67332
commit
8c53e8861e
2 changed files with 13 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
(Format: Year/Month/Day)
|
||||
Changes for 1.0.0:
|
||||
*07/08/07:
|
||||
* Rotate toolbar background texture along with toolbar, bug #1694959 (Mark)
|
||||
Toolbar.cc
|
||||
*07/08/06:
|
||||
* Fix KDE Dockapps on restart (dont unmap), and some minor tweaks (Simon)
|
||||
SystemTray.hh/cc
|
||||
|
|
|
@ -466,8 +466,16 @@ void Toolbar::reconfigure() {
|
|||
m_window_pm = 0;
|
||||
frame.window.setBackgroundColor(theme().toolbar().color());
|
||||
} else {
|
||||
m_window_pm = screen().imageControl().renderImage(frame.window.width(), frame.window.height(),
|
||||
theme().toolbar());
|
||||
FbTk::Orientation orient = FbTk::ROT0;
|
||||
Toolbar::Placement where = *m_rc_placement;
|
||||
if (where == LEFTCENTER || where == LEFTTOP || where == LEFTBOTTOM)
|
||||
orient = FbTk::ROT270;
|
||||
if (where == RIGHTCENTER || where == RIGHTTOP || where == RIGHTBOTTOM)
|
||||
orient = FbTk::ROT90;
|
||||
|
||||
m_window_pm = screen().imageControl().renderImage(
|
||||
frame.window.width(), frame.window.height(),
|
||||
theme().toolbar(), orient);
|
||||
frame.window.setBackgroundPixmap(m_window_pm);
|
||||
}
|
||||
if (tmp)
|
||||
|
|
Loading…
Reference in a new issue