diff --git a/src/audiomixerboard.cpp b/src/audiomixerboard.cpp
index e4eecb4e..54bd522a 100755
--- a/src/audiomixerboard.cpp
+++ b/src/audiomixerboard.cpp
@@ -50,6 +50,14 @@ CChannelFader::CChannelFader ( QWidget* pNW,
pcbSolo->setEnabled ( false );
+ // setup fader tag label (use white background of label)
+ QPalette newPalette = pLabel->palette();
+ newPalette.setColor ( QPalette::Active, QPalette::Window,
+ newPalette.color ( QPalette::Active, QPalette::Base ) );
+
+ pLabel->setPalette ( newPalette );
+ pLabel->setAutoFillBackground ( true );
+
// add user controls to grid
pMainGrid->addWidget( pFader, 0, Qt::AlignHCenter );
pMainGrid->addWidget( pcbMute, 0, Qt::AlignHCenter );
@@ -127,24 +135,27 @@ void CChannelFader::SetText ( const QString sText )
{
const int iBreakPos = 7;
+ // make sure we insert an HTML space (" ") at each beginning and end
+ // of line for nicer look
+
// break text at predefined position, if text is too short, break anyway to
// make sure we have two lines for fader tag
QString sModText = sText;
if ( sModText.length() > iBreakPos )
{
- sModText.insert ( iBreakPos, QString ( "
" ) );
+ sModText.insert ( iBreakPos, QString ( "
" ) );
}
else
{
// insert line break at the beginning of the string -> make sure
// if we only have one line that the text appears at the bottom line
- sModText.insert ( 0, QString ( "
" ) );
+ sModText.insert ( 0, QString ( "
" ) );
}
- // use bold text
- sModText.prepend ( "" );
- sModText.append ( "" );
+ // use bold centered text
+ sModText.prepend ( "