Skip to content

Commit

Permalink
at speed ui
Browse files Browse the repository at this point in the history
  • Loading branch information
joco-nz committed Aug 26, 2021
1 parent d9de915 commit 94c48de
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bf20_mill/ui/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -8638,6 +8638,9 @@ SLOWER</string>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="rules" stdset="0">
<string>[{&quot;channels&quot;: [{&quot;url&quot;: &quot;status:din&quot;, &quot;trigger&quot;: true}], &quot;property&quot;: &quot;Style Class&quot;, &quot;expression&quot;: &quot;'atSpeed' if ch[0][3] else 'notAtSpeed'&quot;, &quot;name&quot;: &quot;atSpeed&quot;}]</string>
</property>
<property name="pinBaseName" stdset="0">
<string>spindleRPM</string>
</property>
Expand Down Expand Up @@ -11467,12 +11470,12 @@ Override</string>
</property>
</designerdata>
<buttongroups>
<buttongroup name="btngrpG5x"/>
<buttongroup name="btngrpIncrements"/>
<buttongroup name="btngrpLeftNav"/>
<buttongroup name="btngrpRightNav"/>
<buttongroup name="btngrpMdi"/>
<buttongroup name="btngrpContInc"/>
<buttongroup name="btngrpG5x"/>
<buttongroup name="btngrpMdi"/>
<buttongroup name="btngrpLeftNav"/>
<buttongroup name="btngrpMode"/>
<buttongroup name="btngrpRightNav"/>
</buttongroups>
</ui>
10 changes: 10 additions & 0 deletions bf20_mill/ui/style.qss
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,16 @@ HalLabel[spindleRPM] {
}


HalLabel[style='atSpeed'] {
color: black;
background: rgba(92, 243, 81, 255);
}

HalLabel[style='notAtSpeed'] {
background: rgba(225, 67, 67, 255);
}


/**********************************************************************
* Jog Buttons *
*********************************************************************/
Expand Down

0 comments on commit 94c48de

Please sign in to comment.