images: Rename loader.svg to loader-white.svg for clarity.

We rename loader.svg to loader-white.svg as this svg contains
white rectangles for clarity as we have also added loader-black.svg
which is same but with black rectangles instead of white.
This commit is contained in:
sahil839 2021-07-16 23:00:20 +05:30 committed by Tim Abbott
parent fb53556cef
commit ceb5333352
5 changed files with 4 additions and 4 deletions

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -70,7 +70,7 @@ export function show_button_spinner(elt: JQuery, using_dark_theme: boolean): voi
if (!using_dark_theme) { if (!using_dark_theme) {
elt.attr("src", "/static/images/loader-black.svg"); elt.attr("src", "/static/images/loader-black.svg");
} else { } else {
elt.attr("src", "/static/images/loader.svg"); elt.attr("src", "/static/images/loader-white.svg");
} }
elt.css("display", "inline-block"); elt.css("display", "inline-block");
} }

View File

@ -32,7 +32,7 @@
</div> </div>
<div class="image"> <div class="image">
<div class="flex"> <div class="flex">
<img src="/static/images/loader.svg" alt="" /> <img src="/static/images/loader-white.svg" alt="" />
</div> </div>
</div> </div>
</div> </div>

View File

@ -99,7 +99,7 @@ page can be easily identified in it's respective JavaScript file. -->
{% endif %} {% endif %}
<button type="submit" name="button" class="full-width"> <button type="submit" name="button" class="full-width">
<img class="loader" src="/static/images/loader.svg" alt="" /> <img class="loader" src="/static/images/loader-white.svg" alt="" />
<span class="text">{{ _("Log in") }}</span> <span class="text">{{ _("Log in") }}</span>
</button> </button>
</form> </form>

View File

@ -252,7 +252,7 @@ Form is validated both client-side using jquery-validate (see signup.js) and ser
<div class="register-button-box"> <div class="register-button-box">
<button class="register-button" type="submit"> <button class="register-button" type="submit">
<span>{{ _('Sign up') }}</span> <span>{{ _('Sign up') }}</span>
<object class="loader" type="image/svg+xml" data="/static/images/loader.svg"></object> <object class="loader" type="image/svg+xml" data="/static/images/loader-white.svg"></object>
</button> </button>
<input type="hidden" name="next" value="{{ next }}" /> <input type="hidden" name="next" value="{{ next }}" />
</div> </div>