Thank you most kindly
ps: bobbyb posted this other part in this thread (viewtopic.php?f=56&t=64218&start=90#p367336) that solved my UI issue. Two unsolvable problems cured in a single thread! Amazingly amazing folks.
Moderator: Kathy_9
bobbyb - you legend!bobbyb wrote:I have an easier way. It's just 3 modifications to the index.html. See caveat below.
Code: Select all
<div class="content" >
<div>Style:</div>
<div>
<img id="preview_image" style="width:280px;height:208px;" src="img/012.png" />
<!-- <br/> -->
<div style="float: right; ">
<button onclick="process_image('preview');" id="preview-button" title="">Preview Style</button>
<button onclick="reset();" id="restore-button" title="">Reset</button>
</div>
<!-- <br/> -->
</div>
<!-- <br/> -->
</div>
<hr>
<div class="sidebar-title">Step 3: Adjust Strength </div>
<!--<div style="margin-top: 8px">Strength:</div> -->
<div class="slidecontainer">
<input id="ex1" data-slider-id='ex1Slider' type="text" />
</div>
<!-- </br> -->
<hr>
<!-- Step 4: Adjust Settings-->
<div class="sidebar-title">Step 4: Confirm Painting </div>
<div class="content">
<div style="font-style: italic">Your painting will be sent to your application as a layer. This process may take a few seconds.</div>
<!-- <br><br><br> -->
<button style="float: right; padding: 4px 48px;" onclick="process_image('apply');" id="apply-btn" title="">Send and Close</button>
<br/>
</div>
</div>Levi,LeviFiction wrote:Ira, give these a try. I think they work. This was a fun chance to brush up on my JavaScript.
As always, make sure to backup the original files before replacing them. Here are the two files in the zip and where they are located
Index.js
C:\Program Files\Pic-To-Painting\resources\app\app\js\index.js
Index.html
C:\Program Files\Pic-To-Painting\resources\app\app\index.html
Levi,LeviFiction wrote:Okay, this one seems to be working better.
If you click on a preset or move the slider and nothing happens, then you need to click the preview button. Otherwise, as it creates the cache it should auto-update the preview as you click around. And applying the result should be error free.