fix: update icons to espresso for different pages

updated icons on various parts of the page to espresso
This commit is contained in:
Maharshi Patel 2023-08-24 10:21:37 +05:30
parent 025a5d57cf
commit f6ebdc24f4
9 changed files with 13 additions and 13 deletions

View file

@ -75,7 +75,7 @@ frappe.ui.form.PrintView = class {
});
this.page.add_action_icon(
"file",
"es-line-filetype",
() => {
this.go_to_form_view();
},

View file

@ -43,7 +43,7 @@ frappe.ui.form.ControlSignature = class ControlSignature extends frappe.ui.form.
this.$reset_button_wrapper = $(`
<div class="signature-btn-row">
<a href="#" type="button" class="signature-reset btn icon-btn">
${frappe.utils.icon("refresh", "sm")}
${frappe.utils.icon("es-line-reload", "sm")}
</a>
</div>
`)

View file

@ -128,7 +128,7 @@ export default class Section {
}
set_icon(hide) {
let indicator_icon = hide ? "down" : "up-line";
let indicator_icon = hide ? "es-line-down" : "es-line-up";
this.indicator && this.indicator.html(frappe.utils.icon(indicator_icon, "sm", "mb-1"));
}

View file

@ -276,7 +276,7 @@ frappe.ui.form.Toolbar = class Toolbar {
// Navigate
if (!this.frm.is_new() && !this.frm.meta.issingle) {
this.page.add_action_icon(
"left",
"es-line-left-chevron",
() => {
this.frm.navigate_records(1);
},
@ -284,7 +284,7 @@ frappe.ui.form.Toolbar = class Toolbar {
__("Previous Document")
);
this.page.add_action_icon(
"right",
"es-line-right-chevron",
() => {
this.frm.navigate_records(0);
},

View file

@ -230,7 +230,7 @@ frappe.views.BaseList = class BaseList {
$secondary_action.addClass("visible-xs");
}
} else {
this.refresh_button = this.page.add_action_icon("refresh", () => {
this.refresh_button = this.page.add_action_icon("es-line-reload", () => {
this.refresh();
});
}
@ -842,7 +842,7 @@ class FilterArea {
<div class="btn-group">
<button class="btn btn-default btn-sm filter-button">
<span class="filter-icon">
${frappe.utils.icon("filter")}
${frappe.utils.icon("es-line-filter")}
</span>
<span class="button-label hidden-xs">
${__("Filter")}
@ -850,7 +850,7 @@ class FilterArea {
</button>
<button class="btn btn-default btn-sm filter-x-button" title="${__("Clear all filters")}">
<span class="filter-icon">
${frappe.utils.icon("filter-x")}
${frappe.utils.icon("es-small-close")}
</span>
</button>
</div>

View file

@ -903,7 +903,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
if (this.list_view_settings && !this.list_view_settings.disable_comment_count) {
comment_count = $(`<span class="comment-count"></span>`);
$(comment_count).append(`
${frappe.utils.icon("small-message")}
${frappe.utils.icon("es-line-chat-alt")}
${doc._comment_count > 99 ? "99+" : doc._comment_count || 0}`);
}
@ -1024,7 +1024,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
];
const title = docstatus_description[doc.docstatus || 0];
if (indicator) {
return `<span class="indicator-pill ${indicator[1]} filterable ellipsis"
return `<span class="indicator-pill ${indicator[1]} filterable no-indicator-dot ellipsis"
data-filter='${indicator[2]}' title='${title}'>
<span class="ellipsis"> ${__(indicator[0])}</span>
</span>`;

View file

@ -229,7 +229,7 @@ frappe.ui.GroupBy = class {
$(`<div class="group-by-selector">
<button class="btn btn-default btn-sm group-by-button ellipsis">
<span class="group-by-icon">
${frappe.utils.icon("group-by")}
${frappe.utils.icon("es-line-group")}
</span>
<span class="button-label hidden-xs">
${__("Add Group")}

View file

@ -757,7 +757,7 @@ frappe.provide("frappe.views");
if (card.comment_count > 0)
html += `<span class="list-comment-count small text-muted ">
${frappe.utils.icon("small-message")}
${frappe.utils.icon("es-line-chat-alt")}
${card.comment_count}
</span>`;

View file

@ -88,7 +88,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
set_default_secondary_action() {
this.refresh_button && this.refresh_button.remove();
this.refresh_button = this.page.add_action_icon("refresh", () => {
this.refresh_button = this.page.add_action_icon("es-line-reload", () => {
this.setup_progress_bar();
this.refresh();
});