Skip to content

Commit

Permalink
Show version in user interface
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianoiam committed Sep 13, 2021
1 parent 06ee9cd commit b9e27e5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hiphop
1 change: 1 addition & 0 deletions src/ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
</div>
</div>
</div>
<div id="version"></div>
<g-resize maxscale="1.25" keepaspectratio="true"></g-resize>
<script src="guinda.js"></script>
<script src="ui.js"></script>
Expand Down
9 changes: 9 additions & 0 deletions src/ui/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ g-resize {
font-family: Satisfy;
}

#version {
position: absolute;
left: 3px;
bottom: 2px;
font-family: UbuntuMono;
font-size: 10px;
opacity: 0.33;
}

#knobs {
width: 100%;
height: 100%;
Expand Down
4 changes: 4 additions & 0 deletions src/ui/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

const kVersion = '1.0.0';

const kParameterMix = 0;
const kParameterSize = 1;
const kParameterBrightness = 2;
Expand All @@ -23,6 +25,8 @@ class CastelloReverbUI extends DISTRHO.UI {
constructor() {
super();

document.getElementById('version').innerText = kVersion;

// Connect knobs

const formatAsPercentage = (value) => `${Math.ceil(100 * value)}%`;
Expand Down

0 comments on commit b9e27e5

Please sign in to comment.