UI: Add source icons
@@ -142,6 +142,7 @@ SourceTree::item {
|
||||
margin-bottom: 2px;
|
||||
margin-top: 0px;
|
||||
border: 1px solid transparent;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
QListWidget QLineEdit {
|
||||
@@ -200,11 +201,6 @@ SourceTree {
|
||||
border-bottom: 1px solid #2f2f2f;
|
||||
}
|
||||
|
||||
SourceTree QLabel {
|
||||
padding: 2px 0px;
|
||||
margin: -2px 4px -2px;
|
||||
}
|
||||
|
||||
SourceTree QLineEdit {
|
||||
background-color: #0c101e;
|
||||
padding: 2px;
|
||||
@@ -1006,3 +1002,23 @@ QPushButton#extraPanelDelete:hover {
|
||||
QPushButton#extraPanelDelete:pressed {
|
||||
background-color: #161f41;
|
||||
}
|
||||
|
||||
/* Source Icons */
|
||||
|
||||
OBSBasic {
|
||||
qproperty-imageIcon: url(./Dark/sources/image.svg);
|
||||
qproperty-colorIcon: url(./Dark/sources/brush.svg);
|
||||
qproperty-slideshowIcon: url(./Dark/sources/slideshow.svg);
|
||||
qproperty-audioInputIcon: url(./Dark/sources/microphone.svg);
|
||||
qproperty-audioOutputIcon: url(./Dark/settings/audio.svg);
|
||||
qproperty-desktopCapIcon: url(./Dark/settings/video.svg);
|
||||
qproperty-windowCapIcon: url(./Dark/sources/window.svg);
|
||||
qproperty-gameCapIcon: url(./Dark/sources/gamepad.svg);
|
||||
qproperty-cameraIcon: url(./Dark/sources/camera.svg);
|
||||
qproperty-textIcon: url(./Dark/sources/text.svg);
|
||||
qproperty-mediaIcon: url(./Dark/sources/media.svg);
|
||||
qproperty-browserIcon: url(./Dark/sources/globe.svg);
|
||||
qproperty-groupIcon: url(./Dark/sources/group.svg);
|
||||
qproperty-sceneIcon: url(./Dark/sources/scene.svg);
|
||||
qproperty-defaultIcon: url(./Dark/sources/default.svg);
|
||||
}
|
||||
|
@@ -700,6 +700,11 @@ OBSBasicSettings QListWidget::item {
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
QListWidget::item,
|
||||
SourceTree::item {
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
/* Locked CheckBox */
|
||||
|
||||
LockedCheckBox {
|
||||
@@ -749,3 +754,23 @@ QPushButton#extraPanelDelete:hover {
|
||||
QPushButton#extraPanelDelete:pressed {
|
||||
background-color: rgb(31,30,31);
|
||||
}
|
||||
|
||||
/* Source Icons */
|
||||
|
||||
OBSBasic {
|
||||
qproperty-imageIcon: url(./Dark/sources/image.svg);
|
||||
qproperty-colorIcon: url(./Dark/sources/brush.svg);
|
||||
qproperty-slideshowIcon: url(./Dark/sources/slideshow.svg);
|
||||
qproperty-audioInputIcon: url(./Dark/sources/microphone.svg);
|
||||
qproperty-audioOutputIcon: url(./Dark/settings/audio.svg);
|
||||
qproperty-desktopCapIcon: url(./Dark/settings/video.svg);
|
||||
qproperty-windowCapIcon: url(./Dark/sources/window.svg);
|
||||
qproperty-gameCapIcon: url(./Dark/sources/gamepad.svg);
|
||||
qproperty-cameraIcon: url(./Dark/sources/camera.svg);
|
||||
qproperty-textIcon: url(./Dark/sources/text.svg);
|
||||
qproperty-mediaIcon: url(./Dark/sources/media.svg);
|
||||
qproperty-browserIcon: url(./Dark/sources/globe.svg);
|
||||
qproperty-groupIcon: url(./Dark/sources/group.svg);
|
||||
qproperty-sceneIcon: url(./Dark/sources/scene.svg);
|
||||
qproperty-defaultIcon: url(./Dark/sources/default.svg);
|
||||
}
|
||||
|
4
UI/data/themes/Dark/sources/brush.svg
Normal file
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8" fill="#d2d2d2">
|
||||
<path d="M7.44.03c-.03 0-.04.02-.06.03l-3.75 2.66c-.04.03-.1.11-.13.16l-.13.25c.72.23 1.27.78 1.5 1.5l.25-.13c.05-.03.12-.08.16-.13l2.66-3.75c.03-.05.04-.09 0-.13l-.44-.44c-.02-.02-.04-.03-.06-.03zm-4.78 3.97c-.74 0-1.31.61-1.31 1.34 0 .99-.55 1.85-1.34 2.31.39.22.86.34 1.34.34 1.47 0 2.66-1.18 2.66-2.66 0-.74-.61-1.34-1.34-1.34z"
|
||||
/>
|
||||
</svg>
|
After Width: | Height: | Size: 442 B |
1
UI/data/themes/Dark/sources/camera.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="#d2d2d2"><path fill-rule="evenodd" d="M15 3H7c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h14c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1zM6 5H2V4h4v1zm4.5 7C8.56 12 7 10.44 7 8.5S8.56 5 10.5 5 14 6.56 14 8.5 12.44 12 10.5 12zM13 8.5c0 1.38-1.13 2.5-2.5 2.5S8 9.87 8 8.5 9.13 6 10.5 6 13 7.13 13 8.5z"/></svg>
|
After Width: | Height: | Size: 412 B |
1
UI/data/themes/Dark/sources/default.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#d2d2d2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-file"><path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline></svg>
|
After Width: | Height: | Size: 333 B |
1
UI/data/themes/Dark/sources/gamepad.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="gamepad" class="svg-inline--fa fa-gamepad fa-w-20" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" fill="#d2d2d2"><path d="M480 96H160C71.6 96 0 167.6 0 256s71.6 160 160 160c44.8 0 85.2-18.4 114.2-48h91.5c29 29.6 69.5 48 114.2 48 88.4 0 160-71.6 160-160S568.4 96 480 96zM256 276c0 6.6-5.4 12-12 12h-52v52c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-52H76c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h52v-52c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h52c6.6 0 12 5.4 12 12v40zm184 68c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-80c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"></path></svg>
|
After Width: | Height: | Size: 724 B |
1
UI/data/themes/Dark/sources/globe.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="16" viewBox="0 0 14 16" fill="#d2d2d2"><path fill-rule="evenodd" d="M7 1C3.14 1 0 4.14 0 8s3.14 7 7 7c.48 0 .94-.05 1.38-.14-.17-.08-.2-.73-.02-1.09.19-.41.81-1.45.2-1.8-.61-.35-.44-.5-.81-.91-.37-.41-.22-.47-.25-.58-.08-.34.36-.89.39-.94.02-.06.02-.27 0-.33 0-.08-.27-.22-.34-.23-.06 0-.11.11-.2.13-.09.02-.5-.25-.59-.33-.09-.08-.14-.23-.27-.34-.13-.13-.14-.03-.33-.11s-.8-.31-1.28-.48c-.48-.19-.52-.47-.52-.66-.02-.2-.3-.47-.42-.67-.14-.2-.16-.47-.2-.41-.04.06.25.78.2.81-.05.02-.16-.2-.3-.38-.14-.19.14-.09-.3-.95s.14-1.3.17-1.75c.03-.45.38.17.19-.13-.19-.3 0-.89-.14-1.11-.13-.22-.88.25-.88.25.02-.22.69-.58 1.16-.92.47-.34.78-.06 1.16.05.39.13.41.09.28-.05-.13-.13.06-.17.36-.13.28.05.38.41.83.36.47-.03.05.09.11.22s-.06.11-.38.3c-.3.2.02.22.55.61s.38-.25.31-.55c-.07-.3.39-.06.39-.06.33.22.27.02.5.08.23.06.91.64.91.64-.83.44-.31.48-.17.59.14.11-.28.3-.28.3-.17-.17-.19.02-.3.08-.11.06-.02.22-.02.22-.56.09-.44.69-.42.83 0 .14-.38.36-.47.58-.09.2.25.64.06.66-.19.03-.34-.66-1.31-.41-.3.08-.94.41-.59 1.08.36.69.92-.19 1.11-.09.19.1-.06.53-.02.55.04.02.53.02.56.61.03.59.77.53.92.55.17 0 .7-.44.77-.45.06-.03.38-.28 1.03.09.66.36.98.31 1.2.47.22.16.08.47.28.58.2.11 1.06-.03 1.28.31.22.34-.88 2.09-1.22 2.28-.34.19-.48.64-.84.92s-.81.64-1.27.91c-.41.23-.47.66-.66.8 3.14-.7 5.48-3.5 5.48-6.84 0-3.86-3.14-7-7-7L7 1zm1.64 6.56c-.09.03-.28.22-.78-.08-.48-.3-.81-.23-.86-.28 0 0-.05-.11.17-.14.44-.05.98.41 1.11.41.13 0 .19-.13.41-.05.22.08.05.13-.05.14zM6.34 1.7c-.05-.03.03-.08.09-.14.03-.03.02-.11.05-.14.11-.11.61-.25.52.03-.11.27-.58.3-.66.25zm1.23.89c-.19-.02-.58-.05-.52-.14.3-.28-.09-.38-.34-.38-.25-.02-.34-.16-.22-.19.12-.03.61.02.7.08.08.06.52.25.55.38.02.13 0 .25-.17.25zm1.47-.05c-.14.09-.83-.41-.95-.52-.56-.48-.89-.31-1-.41-.11-.1-.08-.19.11-.34.19-.15.69.06 1 .09.3.03.66.27.66.55.02.25.33.5.19.63h-.01z"/></svg>
|
After Width: | Height: | Size: 1.8 KiB |
3
UI/data/themes/Dark/sources/group.svg
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8" fill="#d2d2d2">
|
||||
<path d="M0 0v2h8v-1h-5v-1h-3zm0 3v4.5c0 .28.22.5.5.5h7c.28 0 .5-.22.5-.5v-4.5h-8z" />
|
||||
</svg>
|
After Width: | Height: | Size: 191 B |
3
UI/data/themes/Dark/sources/image.svg
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8" fill="#d2d2d2">
|
||||
<path d="M0 0v8h8v-8h-8zm1 1h6v3l-1-1-1 1 2 2v1h-1l-4-4-1 1v-3z" />
|
||||
</svg>
|
After Width: | Height: | Size: 172 B |
3
UI/data/themes/Dark/sources/media.svg
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8" fill="#d2d2d2">
|
||||
<path d="M0 0v6l6-3-6-3z" transform="translate(1 1)" />
|
||||
</svg>
|
After Width: | Height: | Size: 160 B |
4
UI/data/themes/Dark/sources/microphone.svg
Normal file
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8" fill="#d2d2d2">
|
||||
<path d="M2.91-.03a1 1 0 0 0-.13.03 1 1 0 0 0-.78 1v2a1 1 0 1 0 2 0v-2a1 1 0 0 0-1.09-1.03zm-2.56 2.03a.5.5 0 0 0-.34.5v.5c0 1.48 1.09 2.69 2.5 2.94v1.06h-.5c-.55 0-1 .45-1 1h4.01c0-.55-.45-1-1-1h-.5v-1.06c1.41-.24 2.5-1.46 2.5-2.94v-.5a.5.5 0 1 0-1 0v.5c0 1.11-.89 2-2 2-1.11 0-2-.89-2-2v-.5a.5.5 0 0 0-.59-.5.5.5 0 0 0-.06 0z"
|
||||
transform="translate(1)" />
|
||||
</svg>
|
After Width: | Height: | Size: 463 B |
4
UI/data/themes/Dark/sources/scene.svg
Normal file
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8" fill="#d2d2d2">
|
||||
<path d="M.5 0c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm1.5 0v1h6v-1h-6zm-1.5 2c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm1.5 0v1h6v-1h-6zm-1.5 2c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm1.5 0v1h6v-1h-6zm-1.5 2c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm1.5 0v1h6v-1h-6z"
|
||||
/>
|
||||
</svg>
|
After Width: | Height: | Size: 426 B |
5
UI/data/themes/Dark/sources/slideshow.svg
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg version="1.1" viewBox="0 0 8 8" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m7.3514 0.64865h0.64865v4.5946h-0.64865zm-4.7568-0.64865h5.4054v0.64865h-5.4054zm3.8919 1.5135h0.64865v4.5946h-0.64865zm-4.7568-0.64865h5.4054v0.64865h-5.4054zm3.8919 1.5135h0.64865v4.5946h-0.64865zm-4.7568-0.64865h5.4054v0.64865h-5.4054zm-0.86486 0.86486v5.4054h5.4054v-5.4054zm0.67568 0.67568h4.0541v2.027l-0.67568-0.67568-0.67568 0.67568 1.3514 1.3514v0.67568h-0.67568l-2.7027-2.7027-0.67568 0.67568z" fill="#d2d2d2" stroke-width=".72385"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 573 B |
3
UI/data/themes/Dark/sources/text.svg
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8" fill="#d2d2d2">
|
||||
<path d="M0 0v2h.5c0-.55.45-1 1-1h1.5v5.5c0 .28-.22.5-.5.5h-.5v1h4v-1h-.5c-.28 0-.5-.22-.5-.5v-5.5h1.5c.55 0 1 .45 1 1h.5v-2h-8z" />
|
||||
</svg>
|
After Width: | Height: | Size: 237 B |
1
UI/data/themes/Dark/sources/window.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="16" viewBox="0 0 14 16" fill="#d2d2d2"><path fill-rule="evenodd" d="M5 3h1v1H5V3zM3 3h1v1H3V3zM1 3h1v1H1V3zm12 10H1V5h12v8zm0-9H7V3h6v1zm1-1c0-.55-.45-1-1-1H1c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V3z"/></svg>
|
After Width: | Height: | Size: 284 B |
@@ -184,6 +184,11 @@ QListWidget::item:hover:!active {
|
||||
border: none;
|
||||
}
|
||||
|
||||
QListWidget::item,
|
||||
SourceTree::item {
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
/***********************/
|
||||
/* --- Dock widget --- */
|
||||
/***********************/
|
||||
@@ -1340,3 +1345,23 @@ QPushButton#extraPanelDelete:hover {
|
||||
QPushButton#extraPanelDelete:pressed {
|
||||
background-color: rgb(240, 98, 146);
|
||||
}
|
||||
|
||||
/* Source Icons */
|
||||
|
||||
OBSBasic {
|
||||
qproperty-imageIcon: url(./Dark/sources/image.svg);
|
||||
qproperty-colorIcon: url(./Dark/sources/brush.svg);
|
||||
qproperty-slideshowIcon: url(./Dark/sources/slideshow.svg);
|
||||
qproperty-audioInputIcon: url(./Dark/sources/microphone.svg);
|
||||
qproperty-audioOutputIcon: url(./Dark/settings/audio.svg);
|
||||
qproperty-desktopCapIcon: url(./Dark/settings/video.svg);
|
||||
qproperty-windowCapIcon: url(./Dark/sources/window.svg);
|
||||
qproperty-gameCapIcon: url(./Dark/sources/gamepad.svg);
|
||||
qproperty-cameraIcon: url(./Dark/sources/camera.svg);
|
||||
qproperty-textIcon: url(./Dark/sources/text.svg);
|
||||
qproperty-mediaIcon: url(./Dark/sources/media.svg);
|
||||
qproperty-browserIcon: url(./Dark/sources/globe.svg);
|
||||
qproperty-groupIcon: url(./Dark/sources/group.svg);
|
||||
qproperty-sceneIcon: url(./Dark/sources/scene.svg);
|
||||
qproperty-defaultIcon: url(./Dark/sources/default.svg);
|
||||
}
|
||||
|
@@ -208,3 +208,28 @@ VisibilityCheckBox::indicator:unchecked {
|
||||
* [themeID="revertIcon"] {
|
||||
qproperty-icon: url(:res/images/revert.svg);
|
||||
}
|
||||
|
||||
/* Source Icons */
|
||||
|
||||
OBSBasic {
|
||||
qproperty-imageIcon: url(:res/images/sources/image.svg);
|
||||
qproperty-colorIcon: url(:res/images/sources/brush.svg);
|
||||
qproperty-slideshowIcon: url(:res/images/sources/slideshow.svg);
|
||||
qproperty-audioInputIcon: url(:res/images/sources/microphone.svg);
|
||||
qproperty-audioOutputIcon: url(:settings/images/settings/audio.svg);
|
||||
qproperty-desktopCapIcon: url(:settings/images/settings/video.svg);
|
||||
qproperty-windowCapIcon: url(:res/images/sources/window.svg);
|
||||
qproperty-gameCapIcon: url(:res/images/sources/gamepad.svg);
|
||||
qproperty-cameraIcon: url(:res/images/sources/camera.svg);
|
||||
qproperty-textIcon: url(:res/images/sources/text.svg);
|
||||
qproperty-mediaIcon: url(:res/images/sources/media.svg);
|
||||
qproperty-browserIcon: url(:res/images/sources/globe.svg);
|
||||
qproperty-groupIcon: url(:res/images/sources/group.svg);
|
||||
qproperty-sceneIcon: url(:res/images/sources/scene.svg);
|
||||
qproperty-defaultIcon: url(:res/images/sources/default.svg);
|
||||
}
|
||||
|
||||
QListWidget::item,
|
||||
SourceTree::item {
|
||||
height: 24px;
|
||||
}
|
||||
|