This commit is contained in:
Snoweuph 2025-01-04 03:48:34 +01:00
parent f49f55f958
commit 1db331c233
Signed by: snoweuph
GPG key ID: BEFC41DA223CEC55
21 changed files with 36 additions and 36 deletions

View file

@ -1,3 +1,3 @@
# euphlastic # euphlastic
Euph Elastic Theme for Rroundcube Euph Euphlastic Theme for Rroundcube

View file

@ -1,8 +1,8 @@
{ {
"name": "Elastic", "name": "Euphlastic",
"author": "Aleksander Machniak", "author": "Snoweuphk",
"license": "Creative Commons Attribution-ShareAlike", "license": "MIT",
"license-url": "http://creativecommons.org/licenses/by-sa/3.0/", "license-url": "..",
"config": { "config": {
"supported_layouts": ["widescreen"], "supported_layouts": ["widescreen"],
"jquery_ui_colors_theme": "bootstrap", "jquery_ui_colors_theme": "bootstrap",

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube Webmail styles for the Elastic skin * Roundcube Webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube webmail styles for the Elastic skin * Roundcube webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube Webmail styles for the Elastic skin * Roundcube Webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube Webmail styles for the Elastic skin * Roundcube Webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube Webmail styles for the Elastic skin * Roundcube Webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube Webmail styles for the Elastic skin * Roundcube Webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube Webmail styles for the Elastic skin * Roundcube Webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube Webmail styles for the Elastic skin * Roundcube Webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube Webmail styles for the Elastic skin * Roundcube Webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube Webmail styles for the Elastic skin * Roundcube Webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube Webmail styles for the Elastic skin * Roundcube Webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube Webmail styles for the Elastic skin * Roundcube Webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube Webmail styles for the Elastic skin * Roundcube Webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube Webmail styles for the Elastic skin * Roundcube Webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube Webmail styles for the Elastic skin * Roundcube Webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube Webmail styles for the Elastic skin * Roundcube Webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube Webmail styles for the Elastic skin * Roundcube Webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

View file

@ -1,5 +1,5 @@
/** /**
* Roundcube Webmail styles for the Elastic skin * Roundcube Webmail styles for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *

26
ui.js
View file

@ -1,5 +1,5 @@
/** /**
* Roundcube webmail functions for the Elastic skin * Roundcube webmail functions for the Euphlastic skin
* *
* Copyright (c) The Roundcube Dev Team * Copyright (c) The Roundcube Dev Team
* *
@ -13,7 +13,7 @@
'use strict'; 'use strict';
function rcube_elastic_ui() { function rcube_euphlastic_ui() {
var prefs, ref = this, var prefs, ref = this,
mode = 'normal', // one of: large, normal, small, phone mode = 'normal', // one of: large, normal, small, phone
color_mode = 'light', // 'light' or 'dark' color_mode = 'light', // 'light' or 'dark'
@ -262,7 +262,7 @@ function rcube_elastic_ui() {
rcmail.gui_object('dragmenu', this.id); rcmail.gui_object('dragmenu', this.id);
}); });
// Taskmenu items added by plugins do not use elastic classes (e.g help plugin) // Taskmenu items added by plugins do not use euphlastic classes (e.g help plugin)
// it's for larry skin compat. We'll assign 'selected' and icon-specific class. // it's for larry skin compat. We'll assign 'selected' and icon-specific class.
$('#taskmenu > a').each(function () { $('#taskmenu > a').each(function () {
if (/button-([a-z]+)/.test(this.className)) { if (/button-([a-z]+)/.test(this.className)) {
@ -608,7 +608,7 @@ function rcube_elastic_ui() {
message_list_hover_menu_init(table.parent()); message_list_hover_menu_init(table.parent());
} }
// https://github.com/roundcube/elastic/issues/45 // https://github.com/roundcube/euphlastic/issues/45
// Draggable blocks scrolling on touch devices, we'll disable it there // Draggable blocks scrolling on touch devices, we'll disable it there
if (touch && rcmail[list]) { if (touch && rcmail[list]) {
if (typeof rcmail[list].draggable === 'function') { if (typeof rcmail[list].draggable === 'function') {
@ -888,7 +888,7 @@ function rcube_elastic_ui() {
id = input.attr('id'); id = input.attr('id');
if (!id) { if (!id) {
input.attr('id', id = 'dialog-input-elastic'); input.attr('id', id = 'dialog-input-euphlastic');
} }
$('.popup', context).addClass('formcontent').append( $('.popup', context).addClass('formcontent').append(
@ -4391,7 +4391,7 @@ function rcube_elastic_ui() {
*/ */
function get_pref(key) { function get_pref(key) {
if (!prefs) { if (!prefs) {
prefs = rcmail.local_storage_get_item('prefs.elastic', {}); prefs = rcmail.local_storage_get_item('prefs.euphlastic', {});
} }
// fall-back to cookies // fall-back to cookies
@ -4401,7 +4401,7 @@ function rcube_elastic_ui() {
prefs[key] = cookie; prefs[key] = cookie;
// copy value to local storage and remove cookie (if localStorage is supported) // copy value to local storage and remove cookie (if localStorage is supported)
if (rcmail.local_storage_set_item('prefs.elastic', prefs)) { if (rcmail.local_storage_set_item('prefs.euphlastic', prefs)) {
rcmail.set_cookie(key, cookie, new Date()); // expire cookie rcmail.set_cookie(key, cookie, new Date()); // expire cookie
} }
} }
@ -4417,7 +4417,7 @@ function rcube_elastic_ui() {
prefs[key] = val; prefs[key] = val;
// write prefs to local storage (if supported) // write prefs to local storage (if supported)
if (!rcmail.local_storage_set_item('prefs.elastic', prefs)) { if (!rcmail.local_storage_set_item('prefs.euphlastic', prefs)) {
// store value in cookie // store value in cookie
rcmail.set_cookie(key, val, false); rcmail.set_cookie(key, val, false);
} }
@ -4426,7 +4426,7 @@ function rcube_elastic_ui() {
if (window.rcmail) { if (window.rcmail) {
/** /**
* Elastic version of show_menu as we don't need e.g. menu positioning from core * Euphlastic version of show_menu as we don't need e.g. menu positioning from core
* TODO: keyboard navigation in menus * TODO: keyboard navigation in menus
*/ */
rcmail.show_menu = function (prop, show, event) { rcmail.show_menu = function (prop, show, event) {
@ -4437,17 +4437,17 @@ if (window.rcmail) {
prop = { menu: name }; prop = { menu: name };
} }
// just delegate the action to rcube_elastic_ui // just delegate the action to rcube_euphlastic_ui
return rcmail.triggerEvent(show === false ? 'menu-close' : 'menu-open', { return rcmail.triggerEvent(show === false ? 'menu-close' : 'menu-open', {
name: name, obj: obj, props: prop, originalEvent: event, name: name, obj: obj, props: prop, originalEvent: event,
}); });
}; };
/** /**
* Elastic version of hide_menu as we don't need e.g. menus stack handling * Euphlastic version of hide_menu as we don't need e.g. menus stack handling
*/ */
rcmail.hide_menu = function (name, event) { rcmail.hide_menu = function (name, event) {
// delegate to rcube_elastic_ui // delegate to rcube_euphlastic_ui
return rcmail.triggerEvent('menu-close', { name: name, props: { menu: name }, originalEvent: event }); return rcmail.triggerEvent('menu-close', { name: name, props: { menu: name }, originalEvent: event });
}; };
} else { } else {
@ -4458,7 +4458,7 @@ if (window.rcmail) {
bw = {}; bw = {};
} }
var UI = new rcube_elastic_ui(); var UI = new rcube_euphlastic_ui();
// Improve non-inline datepickers // Improve non-inline datepickers
if ($ && $.datepicker) { if ($ && $.datepicker) {