define the GUI RGB colors for each skill level

This commit is contained in:
Volker Fischer 2015-02-04 16:07:21 +00:00
parent f1b7d3c478
commit ff901be7fa
2 changed files with 30 additions and 4 deletions

View file

@ -171,19 +171,31 @@ void CChannelFader::SetupFaderTag ( const ESkillLevel eSkillLevel )
switch ( eSkillLevel )
{
case SL_BEGINNER:
strStile += "background-color: rgb(225, 225, 255); }";
strStile += QString ( "background-color: rgb(%1, %2, %3); }" ).
arg ( RGBCOL_R_SL_BEGINNER ).
arg ( RGBCOL_G_SL_BEGINNER ).
arg ( RGBCOL_B_SL_BEGINNER );
break;
case SL_INTERMEDIATE:
strStile += "background-color: rgb(225, 255, 225); }";
strStile += QString ( "background-color: rgb(%1, %2, %3); }" ).
arg ( RGBCOL_R_SL_INTERMEDIATE ).
arg ( RGBCOL_G_SL_INTERMEDIATE ).
arg ( RGBCOL_B_SL_INTERMEDIATE );
break;
case SL_PROFESSIONAL:
strStile += "background-color: rgb(255, 225, 225); }";
strStile += QString ( "background-color: rgb(%1, %2, %3); }" ).
arg ( RGBCOL_R_SL_SL_PROFESSIONAL ).
arg ( RGBCOL_G_SL_SL_PROFESSIONAL ).
arg ( RGBCOL_B_SL_SL_PROFESSIONAL );
break;
default:
strStile += "background-color: white; }";
strStile += QString ( "background-color: rgb(%1, %2, %3); }" ).
arg ( RGBCOL_R_SL_NOT_SET ).
arg ( RGBCOL_G_SL_NOT_SET ).
arg ( RGBCOL_B_SL_NOT_SET );
break;
}

View file

@ -551,6 +551,20 @@ enum ESkillLevel
SL_PROFESSIONAL = 3
};
// define the GUI RGB colors for each skill level
#define RGBCOL_R_SL_NOT_SET 255
#define RGBCOL_G_SL_NOT_SET 255
#define RGBCOL_B_SL_NOT_SET 255
#define RGBCOL_R_SL_BEGINNER 225
#define RGBCOL_G_SL_BEGINNER 225
#define RGBCOL_B_SL_BEGINNER 255
#define RGBCOL_R_SL_INTERMEDIATE 225
#define RGBCOL_G_SL_INTERMEDIATE 255
#define RGBCOL_B_SL_INTERMEDIATE 225
#define RGBCOL_R_SL_SL_PROFESSIONAL 255
#define RGBCOL_G_SL_SL_PROFESSIONAL 225
#define RGBCOL_B_SL_SL_PROFESSIONAL 225
// Stereo signal level meter ---------------------------------------------------
class CStereoSignalLevelMeter