Changend Uploads columns order

Changend Uploads Progressbar color

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1425 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-07-24 22:39:34 +00:00
parent 313d25e559
commit c3cc5c22ce
5 changed files with 98 additions and 60 deletions

View file

@ -7,21 +7,21 @@
* v1.0:
* -----
* - First release
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
****************************************************************/
#include "xprogressbar.h"
@ -143,6 +143,32 @@ void xProgressBar::setColor()
gradColor2.setRgb(248, 170, 59);
// ok
break;
/* clean schema */
case 8:
// background
backgroundBorderColor.setRgb(143, 180, 219);
backgroundColor.setRgb(198, 209, 221);
// progress
gradBorderColor.setRgb(209, 128, 24);
gradColor1.setRgb(246, 199, 138);
gradColor2.setRgb(255, 227, 190);
// ok
break;
/* light gray */
case 9:
// background
backgroundBorderColor.setRgb(194, 194, 194);
backgroundColor.setRgb(232, 233, 233);
// progress
gradBorderColor.setRgb(176, 176, 176);
gradColor1.setRgb(201, 201, 201);
gradColor2.setRgb(223, 223, 223);
// set text color (white is not a good option)
textColor = QColor(58, 58, 58);
// ok
break;
}
}
@ -179,6 +205,13 @@ void xProgressBar::paint()
}
}
void xProgressBar::setColorSchema(const int value)
{
schemaIndex = value;
// set the progress bar colors
setColor();
}
void xProgressBar::setValue(const float value)
{
progressValue = value < 0 ? 0 : value > 100 ? 100 : value;