Changeset 59bd6842


Ignore:
Timestamp:
04/22/14 06:07:25 (12 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
48d1b398
Parents:
08aeae3
Message:

Update the panel color options so that it can be controlled through the settings file, and set a nicer default for the panel (closer to white instead of the dark grey)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lumina/lumina-desktop/LPanel.cpp

    r307712c r59bd6842  
    2525  this->setAttribute(Qt::WA_X11NetWmWindowTypeDock); 
    2626  this->setAttribute(Qt::WA_AlwaysShowToolTips); 
     27  this->setObjectName("LuminaPanelWidget"); 
    2728  //LX11::SetAsPanel(this->winId()); //set proper type of window for a panel since Qt can't do it 
    2829  LX11::SetAsSticky(this->winId()); 
     
    6263    LX11::ReservePanelLocation(this->winId(), xoffset, screen->screenGeometry(screennum).height()-ht, this->width(), ht+2); 
    6364  } 
     65  //Now update the appearance of the toolbar 
     66  QString color = settings->value(PPREFIX+"color", "rgb(255,250,250)").toString(); 
     67  QString style = "QWidget#LuminaPanelWidget{ background: %1; }"; 
     68  style = style.arg(color); 
     69  this->setStyleSheet(style); 
    6470  //Then go through the plugins and create them as necessary 
    6571  QStringList plugins = settings->value(PPREFIX+"pluginlist", QStringList()).toStringList(); 
Note: See TracChangeset for help on using the changeset viewer.