UI: Add interact button to source toolbar

This adds a interact button to the source toolbar. It is only
shown when source is interactable.
This commit is contained in:
Clayton Groeneveld
2021-01-17 20:03:08 -08:00
committed by Jim
parent 520f1158e1
commit 968a1a6ff0
7 changed files with 50 additions and 0 deletions
+29
View File
@@ -366,6 +366,35 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="sourceInteractButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>22</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>22</height>
</size>
</property>
<property name="text">
<string>Interact</string>
</property>
<property name="icon">
<iconset resource="obs.qrc">
<normaloff>:/res/images/interact.svg</normaloff>:/res/images/interact.svg</iconset>
</property>
<property name="flat">
<bool>true</bool>
</property>
<property name="themeID2" stdset="0">
<string notr="true">contextBarButton</string>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
+3
View File
@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#000000" class="bi bi-hand-index-thumb-fill" viewBox="0 0 16 16">
<path d="M8.5 1.75v2.716l.048-.002c.311-.012.74-.016 1.05.046.28.056.543.18.738.288.274.152.456.385.56.642l.132-.012c.312-.024.794-.038 1.158.108.37.148.689.487.88.716.075.09.141.175.195.248h.582a2 2 0 0 1 1.99 2.199l-.272 2.715a3.5 3.5 0 0 1-.444 1.389l-1.395 2.441A1.5 1.5 0 0 1 12.42 16H6.118a1.5 1.5 0 0 1-1.342-.83l-1.215-2.43L1.07 8.589a1.517 1.517 0 0 1 2.373-1.852L5 8.293V1.75a1.75 1.75 0 0 1 3.5 0z"/>
</svg>

After

Width:  |  Height:  |  Size: 556 B

+1
View File
@@ -51,6 +51,7 @@
<file>images/media/media_previous.svg</file>
<file>images/media/media_restart.svg</file>
<file>images/media/media_stop.svg</file>
<file>images/interact.svg</file>
</qresource>
<qresource prefix="/settings">
<file>images/settings/output.svg</file>