Skip to content

Commit

Permalink
Merge pull request #1093 from dcorson-ticino-com/master
Browse files Browse the repository at this point in the history
Simpler Recording Indication
  • Loading branch information
softins authored Feb 25, 2021
2 parents 8976c71 + 4328c34 commit 41be42d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/audiomixerboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,9 @@ void CAudioMixerBoard::HideAll()
// use original order of channel (by server ID)
ChangeFaderOrder ( ST_NO_SORT );

// Reset recording indication styleSheet
setStyleSheet( "" );

// emit status of connected clients
emit NumClientsChanged ( 0 ); // -> no clients connected
}
Expand Down Expand Up @@ -1099,6 +1102,11 @@ void CAudioMixerBoard::UpdateTitle()
if ( eRecorderState == RS_RECORDING )
{
strTitlePrefix = "[" + tr ( "RECORDING ACTIVE" ) + "] ";
setStyleSheet ( AM_RECORDING_STYLE );
}
else
{
setStyleSheet ( "" );
}

setTitle ( strTitlePrefix + tr ( "Personal Mix at: " ) + strServerName );
Expand Down
5 changes: 5 additions & 0 deletions src/audiomixerboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ class CAudioMixerBoardSlots : public CAudioMixerBoardSlots<slotId - 1>
template<>
class CAudioMixerBoardSlots<0> {};

#define AM_RECORDING_STYLE "QGroupBox::title { subcontrol-origin: margin; \
subcontrol-position: left top; \
left: 7px; \
color: rgb(255,255,255); \
background-color: rgb(255,0,0); }"

class CAudioMixerBoard :
public QGroupBox,
Expand Down

0 comments on commit 41be42d

Please sign in to comment.