Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions administrator/components/com_users/forms/user.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,15 @@
<option value="">JOPTION_USE_DEFAULT</option>
</field>

<field
name="admin_fontSize"
type="number"
min="0.1" max="8" step="0.05"
label="COM_USERS_USER_FIELD_BACKEND_FONTSIZE_LABEL"
default=""
showon="a11y_font:0"
Comment on lines +172 to +177
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name="admin_fontSize"
type="number"
min="0.1" max="8" step="0.05"
label="COM_USERS_USER_FIELD_BACKEND_FONTSIZE_LABEL"
default=""
showon="a11y_font:0"
name="admin_fontSize"
type="number"
label="COM_USERS_USER_FIELD_BACKEND_FONTSIZE_LABEL"
min="0.1"
max="8"
step="0.05"
default=""
showon="a11y_font:0"

codestyle only

/>

<field
name="language"
type="language"
Expand Down
1 change: 1 addition & 0 deletions administrator/language/en-GB/com_users.ini
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ COM_USERS_UNACTIVATED="Unactivated"
COM_USERS_USER_ACCOUNT_DETAILS="Account Details"
COM_USERS_USER_BATCH_FAILED="An error was encountered while performing the batch operation: %s."
COM_USERS_USER_BATCH_SUCCESS="Batch operation completed."
COM_USERS_USER_FIELD_BACKEND_FONTSIZE_LABEL="Backend base font size (em)"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
COM_USERS_USER_FIELD_BACKEND_FONTSIZE_LABEL="Backend base font size (em)"
COM_USERS_USER_FIELD_BACKEND_FONTSIZE_LABEL="Backend Base Font Size (em)"

codestyle only

COM_USERS_USER_FIELD_BACKEND_LANGUAGE_LABEL="Backend Language"
COM_USERS_USER_FIELD_BACKEND_TEMPLATE_LABEL="Backend Template Style"
COM_USERS_USER_FIELD_BLOCK="Blocked"
Expand Down
15 changes: 11 additions & 4 deletions administrator/templates/atum/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,17 @@
$hiddenMenu = $app->input->get('hidemainmenu');

// Getting user accessibility settings
$a11y_mono = (bool) $app->getIdentity()->getParam('a11y_mono', '');
$a11y_contrast = (bool) $app->getIdentity()->getParam('a11y_contrast', '');
$a11y_highlight = (bool) $app->getIdentity()->getParam('a11y_highlight', '');
$a11y_font = (bool) $app->getIdentity()->getParam('a11y_font', '');
$currentUser = $app->getIdentity();
$a11y_mono = (bool) $currentUser->getParam('a11y_mono', '');
$a11y_contrast = (bool) $currentUser->getParam('a11y_contrast', '');
$a11y_highlight = (bool) $currentUser->getParam('a11y_highlight', '');
$a11y_font = (bool) $currentUser->getParam('a11y_font', '');
$fontSize = $a11y_font ? '' : (float) $currentUser->getParam('admin_fontSize', '');

if ($fontSize)
{
$this->getWebAssetManager()->addInlineStyle("html {font-size: {$fontSize}em;}");
}

require_once __DIR__ . '/Service/HTML/Atum.php';

Expand Down