[desktop] default wallpaper is a shade of purple
This commit is contained in:
parent
c2becc8fe3
commit
f12c34cc8f
3 changed files with 11 additions and 4 deletions
|
|
@ -69,7 +69,6 @@ def get_bootinfo():
|
|||
bootinfo['versions'] = {k: v['version'] for k, v in get_versions().items()}
|
||||
|
||||
bootinfo.error_report_email = frappe.get_hooks("error_report_email")
|
||||
bootinfo.default_background_image = "/assets/frappe/images/ui/into-the-dawn.jpg"
|
||||
bootinfo.calendars = sorted(frappe.get_hooks("calendars"))
|
||||
|
||||
return bootinfo
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 540 KiB |
|
|
@ -62,13 +62,21 @@ frappe.get_gravatar = function(email_id) {
|
|||
frappe.ui.set_user_background = function(src, selector, style) {
|
||||
if(!selector) selector = "#page-desktop";
|
||||
if(!style) style = "Fill Screen";
|
||||
if(!src) src = frappe.urllib.get_full_url(frappe.boot.default_background_image);
|
||||
if(src) {
|
||||
var background = repl('background: url("%(src)s") center center;', {src: src});
|
||||
} else {
|
||||
var background = "background-color: #4B4C9D;";
|
||||
}
|
||||
|
||||
frappe.dom.set_style(repl('%(selector)s { \
|
||||
background: url("%(src)s") center center;\
|
||||
%(background)s \
|
||||
background-attachment: fixed; \
|
||||
%(style)s \
|
||||
}', {src:src, selector:selector, style: style==="Fill Screen" ? "background-size: cover;" : ""}));
|
||||
}', {
|
||||
selector:selector,
|
||||
background:background,
|
||||
style: style==="Fill Screen" ? "background-size: cover;" : ""
|
||||
}));
|
||||
}
|
||||
|
||||
frappe.provide('frappe.user');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue