1 diff -Naur unity-2d-4.12.0.orig/libunity-2d-private/src/panelstyle.cpp unity-2d-4.12.0/libunity-2d-private/src/panelstyle.cpp
2 --- unity-2d-4.12.0.orig/libunity-2d-private/src/panelstyle.cpp 2011-09-15 10:48:41.000000000 +0200
3 +++ unity-2d-4.12.0/libunity-2d-private/src/panelstyle.cpp 2011-11-27 10:53:34.804302928 +0100
7 static const char* METACITY_THEME_DIR = "/usr/share/themes/%1/metacity-1";
8 +static const char* UNITY_THEME_DIR = "/usr/share/unity/4";
10 class PanelStylePrivate
16 + QPixmap windowButtonPixmapFromDashTheme(PanelStyle::WindowButtonType type, PanelStyle::WindowButtonState state)
18 + QString dir = QString(UNITY_THEME_DIR);
20 + QString typeString, stateString;
22 + case PanelStyle::CloseWindowButton:
23 + typeString = "close_dash";
25 + case PanelStyle::MinimizeWindowButton:
26 + typeString = "minimize_dash";
28 + case PanelStyle::UnmaximizeWindowButton:
29 + typeString = "unmaximize_dash";
34 + case PanelStyle::NormalState:
37 + case PanelStyle::PrelightState:
38 + stateString = "_prelight";
40 + case PanelStyle::PressedState:
41 + stateString = "_pressed";
45 + QString path = QString("%1/%2%3.png")
49 + return QPixmap(path);
52 QPixmap genericWindowButtonPixmap(PanelStyle::WindowButtonType type, PanelStyle::WindowButtonState state)
54 QStyle::StandardPixmap standardIcon;
56 // fallback to generic button pixmaps.
57 if (d->m_themeName == "Ambiance" || d->m_themeName == "Radiance") {
58 return d->windowButtonPixmapFromWMTheme(type, state);
59 + } else if (d->m_themeName == "Adwaita") {
60 + return d->windowButtonPixmapFromDashTheme(type, state);
62 return d->genericWindowButtonPixmap(type, state);