Skip to content

Commit

Permalink
Improve icons & field ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
joepavitt committed Dec 2, 2024
1 parent aa47069 commit f75931b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion nodes/widgets/locales/en-US/ui_slider.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"icons": "Icons",
"color": "Color",
"outputs": "Output",
"showTextField": "Show Text Field"
"show": "Show",
"textField": "Text Field"
}
}
}
16 changes: 8 additions & 8 deletions nodes/widgets/ui_slider.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,19 +151,24 @@
</div>
</div>
<div class="form-row">
<label for="node-input-label"><i class="fa fa-i-cursor"></i> Label</label>
<label for="node-input-label"><i class="fa fa-font"></i> Label</label>
<input type="text" id="node-input-label">
</div>
<div class="form-row form-row-flex" style="align-items: center;">
<label for="node-input-label"><i class="fa fa-i-cursor"></i> <span data-i18n="ui-slider.label.textField"></span></label>
<input style="width:20px;" type="checkbox" id="node-input-showTextField">
<label style="width:auto" for="node-input-showTextField"><span data-i18n="ui-slider.label.show"></span></label>
</div>
<div class="form-row">
<label for="node-input-thumbLabel"><i class="fa fa-i-cursor"></i> Thumb</label>
<label for="node-input-thumbLabel"><i class="fa fa-map-marker"></i> Thumb</label>
<select id="node-input-thumbLabel">
<option value="false">Never</option>
<option value="true">On Drag</option>
<option value="always">Always</option>
</select>
</div>
<div class="form-row">
<label for="node-input-showTicks"><i class="fa fa-i-cursor"></i> Ticks</label>
<label for="node-input-showTicks"><i class="fa fa-reorder fa-rotate-90"></i> Ticks</label>
<select id="node-input-showTicks">
<option value="false">Never</option>
<option value="true">On Drag</option>
Expand Down Expand Up @@ -232,11 +237,6 @@
<label style="width:auto" for="node-input-passthru"><i class="fa fa-arrow-right"></i> If <code>msg</code> arrives on input, pass through to output: </label>
<input type="checkbox" checked id="node-input-passthru" style="display:inline-block; width:auto; vertical-align:top;">
</div>

<div class="form-row form-row-flex" style="align-items: center;">
<input style="margin: 8px 0 10px 16px; width:20px;" type="checkbox" id="node-input-showTextField">
<label style="width:auto" for="node-input-showTextField"><span data-i18n="ui-slider.label.showTextField"></span></label>
</div>
<div class="form-row">
<label style="width:auto" for="node-input-payload"><i class="fa fa-envelope-o"></i> When changed, send:</label>
</div>
Expand Down

0 comments on commit f75931b

Please sign in to comment.