~unity-2d-team/unity-2d/window-focus-fixes

« back to all changes in this revision

Viewing changes to libunity-2d-private/src/panelstyle.cpp

  • Committer: Tarmac
  • Author(s): Gerry Boland, Michał Sawicz
  • Date: 2012-02-28 11:30:52 UTC
  • mfrom: (915.1.61 hud-qml)
  • Revision ID: tarmac-20120228113052-ko3v4z076cq2aanr
Add HUD to Unity 2D

Known issue:
- on switching between Dash & Hud (tap Alt, then Super, then Alt...) blurred background image will contain Hud/Dash.. Fixes: https://bugs.launchpad.net/bugs/942045. Approved by Albert Astals Cid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        gtk_style_context_get(context, GTK_STATE_FLAG_NORMAL, NULL);
70
70
 
71
71
        QPalette pal;
72
 
        if (DashClient::instance()->active()) {
 
72
        if (DashClient::instance()->active() || DashClient::instance()->hudActive()) {
73
73
            pal.setBrush(QPalette::Window, QColor(0, 0, 0, 168));
74
74
        } else {
75
75
            pal.setBrush(QPalette::Window, generateBackgroundBrush());
180
180
        G_CALLBACK(PanelStylePrivate::onThemeChanged), d);
181
181
 
182
182
    QObject::connect(DashClient::instance(), SIGNAL(activeChanged(bool)), this, SLOT(onDashActiveChanged(bool)));
 
183
    QObject::connect(DashClient::instance(), SIGNAL(hudActiveChanged(bool)), this, SLOT(onDashActiveChanged(bool)));
183
184
    d->updatePalette();
184
185
}
185
186