Changeset 4d64bb8


Ignore:
Timestamp:
05/16/14 11:36:31 (11 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1
Children:
51dc66f
Parents:
bfcae6c
Message:

Clean up the default panel/taskbutton appearances. Now they look quite a bit nicer by default (wnet crazy with the designer gradient creation tool)

Location:
lumina
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • lumina/lumina-config/mainUI.cpp

    rbfcae6c r4d64bb8  
    244244  else if(loc=="bottom"){ ui->combo_tb_location->setCurrentIndex(1); } 
    245245  // - background color 
    246   panelcolor = settings->value(pprefix+"color", "rgb(255,250,250)").toString(); 
     246  panelcolor = settings->value(pprefix+"color", "qlineargradient(spread:pad, x1:0.291182, y1:0, x2:0.693, y2:1, stop:0 rgb(255, 253, 250), stop:1 rgb(210, 210, 210))").toString(); 
    247247  // - height 
    248248  ui->spin_tb_height->setValue( settings->value(pprefix+"height",22).toInt() ); 
  • lumina/lumina-desktop/LPanel.cpp

    rb6c1838 r4d64bb8  
    7474  } 
    7575  //Now update the appearance of the toolbar 
    76   QString color = settings->value(PPREFIX+"color", "rgb(255,250,250)").toString(); 
     76  QString color = settings->value(PPREFIX+"color", "qlineargradient(spread:pad, x1:0.291182, y1:0, x2:0.693, y2:1, stop:0 rgb(255, 253, 250), stop:1 rgb(210, 210, 210))").toString(); 
    7777  QString style = "QWidget#LuminaPanelWidget{ background: %1; }"; 
    7878  style = style.arg(color); 
  • lumina/lumina-desktop/images/sample-colorschemes.ui

    rd3ece7b r4d64bb8  
    2424   </property> 
    2525   <property name="styleSheet"> 
    26     <string notr="true">QLabel{ background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(127, 212, 252, 210), stop:0.505682 rgba(197, 231, 255, 150), stop:1 rgba(221, 246, 255, 55)); border: 1px solid grey; border-radius: 5px;}</string> 
     26    <string notr="true">QLabel{ background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(241, 233, 156, 240), stop:0.505682 rgba(255, 243, 127, 180), stop:1 rgba(221, 246, 255, 55)); border: 1px solid grey; border-radius: 5px;}</string> 
    2727   </property> 
    2828   <property name="text"> 
     
    4040   </property> 
    4141   <property name="styleSheet"> 
    42     <string notr="true">QLabel{background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(255, 255, 255, 210), stop:0.505682 rgba(254, 255, 255, 150), stop:1 rgba(221, 246, 255, 55)); border: 1px solid grey; border-radius: 5px;}</string> 
     42    <string notr="true">QLabel{background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(255, 255, 255, 240), stop:0.505682 rgba(240, 240, 240, 180), stop:1 rgba(210, 210, 210, 55)); border: 1px solid grey; border-radius: 5px;}</string> 
    4343   </property> 
    4444   <property name="text"> 
     
    6565   <property name="geometry"> 
    6666    <rect> 
    67      <x>250</x> 
    68      <y>10</y> 
     67     <x>110</x> 
     68     <y>170</y> 
    6969     <width>111</width> 
    7070     <height>31</height> 
     
    8080   </property> 
    8181  </widget> 
     82  <widget class="QLabel" name="label_5"> 
     83   <property name="geometry"> 
     84    <rect> 
     85     <x>10</x> 
     86     <y>100</y> 
     87     <width>221</width> 
     88     <height>51</height> 
     89    </rect> 
     90   </property> 
     91   <property name="styleSheet"> 
     92    <string notr="true">QLabel{ background: qlineargradient(spread:pad, x1:0.291182, y1:0, x2:0.693, y2:1, stop:0 rgb(255, 253, 250), stop:1 rgb(230, 230, 230));}</string> 
     93   </property> 
     94   <property name="text"> 
     95    <string>Taskbar</string> 
     96   </property> 
     97  </widget> 
    8298 </widget> 
    8399 <resources/> 
  • lumina/lumina-desktop/panel-plugins/LTBWidget.h

    rd3ece7b r4d64bb8  
    2323          QString border = "border: 1px solid transparent;"; 
    2424          if(cstate == Lumina::NONE){ } //just use the defaults 
    25           else if(cstate == Lumina::VISIBLE){ background = "background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(255, 255, 255, 240), stop:0.505682 rgba(254, 255, 255, 180), stop:1 rgba(221, 246, 255, 55));"; border="border: 1px solid grey;"; } 
    26           else if(cstate == Lumina::INVISIBLE){background = "background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(215, 215, 215, 240), stop:0.505682 rgba(184, 185, 186, 180), stop:1 rgba(221, 246, 255, 55));"; border="border: 1px solid grey;"; } 
    27           else if(cstate == Lumina::ACTIVE){ background= "background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(127, 212, 252, 240), stop:0.505682 rgba(197, 231, 255, 180), stop:1 rgba(221, 246, 255, 55));"; border ="border: 1px solid grey;"; } 
    28           else if(cstate == Lumina::NOTIFICATION){ background= "background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(252, 187, 127, 240), stop:0.505682 rgba(255, 222, 197, 180), stop:1 rgba(221, 246, 255, 55));"; border="border: 1px solid grey"; } 
     25          else if(cstate == Lumina::VISIBLE){ background = "background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(255, 255, 255, 240), stop:0.505682 rgba(240, 240, 240, 150), stop:1 rgba(210, 210, 210, 55));"; border="border: 1px solid grey;"; } 
     26          else if(cstate == Lumina::INVISIBLE){background = "background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(215, 215, 215, 240), stop:0.505682 rgba(184, 185, 186, 150), stop:1 rgba(221, 246, 255, 55));"; border="border: 1px solid grey;"; } 
     27          else if(cstate == Lumina::ACTIVE){ background= "background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(241, 233, 156, 240), stop:0.355682 rgba(255, 243, 127, 150), stop:1 rgba(221, 246, 255, 55));"; border ="border: 1px solid grey;"; } 
     28          else if(cstate == Lumina::NOTIFICATION){ background= "background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(252, 187, 127, 240), stop:0.505682 rgba(255, 222, 197, 150), stop:1 rgba(221, 246, 255, 55));"; border="border: 1px solid grey"; } 
    2929          QString raw = rawstyle; 
    3030          this->setStyleSheet( raw.replace("%1",background).replace("%2", border) ); 
Note: See TracChangeset for help on using the changeset viewer.