Skip to content

Commit 1ef7caa

Browse files
committed
Muted Speaker Icon update
1 parent 6d6247f commit 1ef7caa

5 files changed

Lines changed: 9 additions & 5 deletions

File tree

Jamulus.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,7 @@ DISTFILES += ChangeLog \
749749
src/res/fronticonserver.png \
750750
src/res/mixerboardbackground.png \
751751
src/res/transparent1x1.png \
752+
src/res/mutediconorange.png \
752753
src/res/instruments/accordeon.png \
753754
src/res/instruments/aguitar.png \
754755
src/res/instruments/bassguitar.png \

src/audiomixerboard.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
* CChanneFader *
3030
\******************************************************************************/
3131
CChannelFader::CChannelFader ( QWidget* pNW ) :
32-
eDesign ( GD_STANDARD )
32+
eDesign ( GD_STANDARD ),
33+
BitmapMutedIcon( QString::fromUtf8 ( ":/png/fader/res/mutediconorange.png" ) )
3334
{
3435
// create new GUI control objects and store pointers to them (note that
3536
// QWidget takes the ownership of the pMainGrid so that this only has
@@ -86,7 +87,7 @@ CChannelFader::CChannelFader ( QWidget* pNW ) :
8687
pPan->setRange ( 0, AUD_MIX_PAN_MAX );
8788
pPan->setValue ( AUD_MIX_PAN_MAX / 2 );
8889
pPan->setNotchesVisible ( true );
89-
pInfoLabel->setMinimumHeight ( pPanLabel->height() ); // prevents jitter when muting/unmuting (#811)
90+
pInfoLabel->setMinimumHeight ( 14 ); // prevents jitter when muting/unmuting (#811)
9091
pInfoLabel->setAlignment ( Qt::AlignTop );
9192
pPanInfoGrid->addWidget ( pPanLabel, 0, Qt::AlignLeft | Qt::AlignTop );
9293
pPanInfoGrid->addWidget ( pInfoLabel, 0, Qt::AlignHCenter | Qt::AlignTop );
@@ -490,12 +491,12 @@ void CChannelFader::SetRemoteFaderIsMute ( const bool bIsMute )
490491
{
491492
if ( bIsMute )
492493
{
493-
// show orange utf8 SPEAKER WITH CANCELLATION STROKE (U+1F507)
494-
pInfoLabel->setText ( "<font color=\"orange\">&#128263;</font>" );
494+
// show muted icon orange
495+
pInfoLabel->setPixmap( BitmapMutedIcon );
495496
}
496497
else
497498
{
498-
pInfoLabel->setText ( "" );
499+
pInfoLabel->setPixmap( QPixmap() );
499500
}
500501
}
501502

src/audiomixerboard.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ class CChannelFader : public QObject
127127
int iRunningNewClientCnt;
128128
int iInstrPicMaxWidth;
129129
EGUIDesign eDesign;
130+
QPixmap BitmapMutedIcon;
130131

131132
public slots:
132133
void OnLevelValueChanged ( int value ) { SendFaderLevelToServer ( value, QGuiApplication::keyboardModifiers() == Qt::ShiftModifier ); /* isolate a channel from the group temporarily with shift-click-drag (#695) */ }

src/res/mutediconorange.png

536 Bytes
Loading

src/resources.qrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
<file>res/ledbuttonpressed.png</file>
5555
<file>res/mixerboardbackground.png</file>
5656
<file>res/transparent1x1.png</file>
57+
<file>res/mutediconorange.png</file>
5758
</qresource>
5859
<qresource prefix="/png/instr">
5960
<file>res/instruments/none.png</file>

0 commit comments

Comments
 (0)