Setup Assistant: Initial styling to Blender step

This commit is contained in:
Pablo Vazquez 2022-07-21 20:08:06 +02:00 committed by Francesco Siddi
parent 40b0a04af1
commit 860017fb42
2 changed files with 37 additions and 17 deletions

View File

@ -1,5 +1,6 @@
:root { :root {
--spacer: 1rem; --spacer: 1rem;
--spacer-xl: 1.5rem;
--spacer-lg: 1.33rem; --spacer-lg: 1.33rem;
--spacer-sm: .66rem; --spacer-sm: .66rem;
--spacer-xs: .33rem; --spacer-xs: .33rem;
@ -319,6 +320,13 @@ label {
display: block; display: block;
} }
fieldset {
background-color: var(--color-background-column-highlight);
border: none;
margin-bottom: var(--spacer);
padding: var(--spacer);
}
input[type="text"] { input[type="text"] {
appearance: none; appearance: none;
background-color: var(--color-background); background-color: var(--color-background);

View File

@ -88,9 +88,12 @@
<div v-if="isBlenderExeFinding" class="is-in-progress">Looking for Blender installs...</div> <div v-if="isBlenderExeFinding" class="is-in-progress">Looking for Blender installs...</div>
<p v-if="autoFoundBlenders.length === 0">Provide a path to Blender. This path should be accessible by all Workers. If your rendering <p v-if="autoFoundBlenders.length === 0">
setup features operating systems different form the one you are currently using, you can Provide a path to Blender. This path should be accessible by all Workers.
manually set up the other paths later.</p> <br/><br/>
If your rendering setup features operating systems different form the one you are currently using,
you can manually set up the other paths later.
</p>
<p v-else>Choose how a Worker should invoke the Blender command when performing a task.</p> <p v-else>Choose how a Worker should invoke the Blender command when performing a task.</p>
@ -118,27 +121,28 @@
</span> </span>
</label> </label>
<label for="blender-input_path"> <label for="blender-input_path">
<input <div>
type="radio" <input
v-model="selectedBlender" type="radio"
name="blender" v-model="selectedBlender"
:value="blenderFromInputPath" name="blender"
id="blender-input_path" :value="blenderFromInputPath"
> id="blender-input_path"
{{ sourceLabels['input_path'] }} <br> >
<span> {{ sourceLabels['input_path'] }}
</div>
<div>
<input <input
@input="checkBlenderExePath" @input="checkBlenderExePath"
v-model="customBlenderExe" v-model="customBlenderExe"
:class="{'is-invalid': blenderExeCheckResult != null && !blenderExeCheckResult.is_usable}" :class="{'is-invalid': blenderExeCheckResult != null && !blenderExeCheckResult.is_usable}"
type="text" type="text"
placeholder="Blender Path" placeholder="Blender Path"
> >
</span> <p v-if="isBlenderExeChecking" class="is-in-progress">Checking...</p>
<p v-if="isBlenderExeChecking" class="is-in-progress">Checking...</p> <p v-if="blenderExeCheckResult != null && !blenderExeCheckResult.is_usable" class="check-failed">
<p v-if="blenderExeCheckResult != null && !blenderExeCheckResult.is_usable" class="check-failed"> {{ blenderExeCheckResult.cause }}</p>
{{ blenderExeCheckResult.cause }}</p> </div>
</label> </label>
</fieldset> </fieldset>
@ -622,4 +626,12 @@ h2 {
background-position: 200px; background-position: 200px;
} }
} }
fieldset input[type="text"] {
margin-left: var(--spacer-xl);
margin-top: var(--spacer-sm);
width: -moz-available;
width: -webkit-fill-available;
}
</style> </style>