UI: Add 'mute' checkbox style hint

This commit is contained in:
jp9000 2015-03-22 14:54:50 -07:00
parent 53a98ecbe5
commit 399eb6d330
9 changed files with 37 additions and 0 deletions

View File

@ -134,6 +134,7 @@ set(obs_HEADERS
properties-view.hpp
display-helpers.hpp
double-slider.hpp
mute-checkbox.hpp
volume-control.hpp
adv-audio-control.hpp
visibility-checkbox.hpp

View File

@ -471,3 +471,18 @@ VolumeMeter {
QStatusBar::item {
border: none;
}
/* Mute CheckBox */
MuteCheckBox {
outline: none;
}
MuteCheckBox::indicator:checked {
image: url(./Dark/mute.png);
}
MuteCheckBox::indicator:unchecked {
image: url(./Dark/unmute.png);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 B

View File

@ -35,6 +35,18 @@
qproperty-icon: url(:/res/images/down.png);
}
MuteCheckBox {
outline: none;
}
MuteCheckBox::indicator:checked {
image: url(:/res/images/mute.png);
}
MuteCheckBox::indicator:unchecked {
image: url(:/res/images/unmute.png);
}
/* Volume Control */

BIN
obs/forms/images/mute.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

BIN
obs/forms/images/unmute.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 B

View File

@ -1,5 +1,7 @@
<RCC>
<qresource prefix="/res">
<file>images/mute.png</file>
<file>images/unmute.png</file>
<file>images/configuration21_16.png</file>
<file>images/invisible_mask.png</file>
<file>images/visible_mask.png</file>

7
obs/mute-checkbox.hpp Normal file
View File

@ -0,0 +1,7 @@
#pragma once
#include <QCheckBox>
class MuteCheckBox : public QCheckBox {
Q_OBJECT
};