UI: Add 'mute' checkbox style hint
This commit is contained in:
parent
53a98ecbe5
commit
399eb6d330
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
BIN
obs/data/themes/Dark/mute.png
Normal file
BIN
obs/data/themes/Dark/mute.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 347 B |
BIN
obs/data/themes/Dark/unmute.png
Normal file
BIN
obs/data/themes/Dark/unmute.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 346 B |
@ -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
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
BIN
obs/forms/images/unmute.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 346 B |
@ -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
7
obs/mute-checkbox.hpp
Normal file
@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <QCheckBox>
|
||||
|
||||
class MuteCheckBox : public QCheckBox {
|
||||
Q_OBJECT
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user