style: match icon to login screen palette

This commit is contained in:
Marek Miklewicz
2026-06-30 20:57:56 +02:00
parent cec0b9ef9d
commit 7ec8f03248
3 changed files with 17 additions and 5 deletions
+5 -3
View File
@@ -1,5 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" role="img" aria-label="Zaloguj do serwera poczty">
<rect x="2" y="5" width="20" height="14" rx="2" fill="#14532d"/>
<path d="M4 7l8 6 8-6" fill="none" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M7 16h10" fill="none" stroke="#bbf7d0" stroke-width="2" stroke-linecap="round"/>
<rect x="2" y="2" width="20" height="20" rx="5" fill="#00689c"/>
<path d="M5 8.25a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z" fill="#2c8ec4"/>
<path d="M6.5 8.5 12 12.35 17.5 8.5" fill="none" stroke="#ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M7 16h10" fill="none" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round" opacity=".75"/>
<path d="M15.5 12h4.25m-1.55-1.55L19.75 12l-1.55 1.55" fill="none" stroke="#ff8a2a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

Before

Width:  |  Height:  |  Size: 420 B

After

Width:  |  Height:  |  Size: 707 B

+1 -1
View File
@@ -2,7 +2,7 @@ name=MX-Autologin
id=mxautologin
type=user
author=HITME.PL
version=1.1.1
version=1.1.2
active=no
installed=no
user_run_as=root
+11 -1
View File
@@ -8,7 +8,7 @@ test('plugin metadata and packaging docs match project rules', function (): void
assert_contains('name=MX-Autologin', $conf);
assert_contains('id=mxautologin', $conf);
assert_contains('type=user', $conf);
assert_contains('version=1.1.1', $conf);
assert_contains('version=1.1.2', $conf);
assert_contains('user_run_as=root', $conf);
assert_contains('/Users/marek/GPT/ChatGPT/da_plugins/mail-login/src', $packing);
assert_contains('/Users/marek/GPT/ChatGPT/da_plugins/mail-login/archives/X.Y.Z/mxautologin.tar.gz', $packing);
@@ -77,3 +77,13 @@ test('directadmin entry points use mx autologin directory and display label', fu
assert_contains('/usr/local/directadmin/plugins/mxautologin/php.ini', $login);
assert_contains('/CMD_PLUGINS/mxautologin/login.raw', $index);
});
test('plugin icon follows directadmin login screen palette', function (): void {
$icon = file_get_contents(PLUGIN_ROOT . '/images/user_icon.svg') ?: '';
assert_contains('#2c8ec4', $icon);
assert_contains('#00689c', $icon);
assert_contains('#ff8a2a', $icon);
assert_contains('#ffffff', $icon);
assert_not_contains('#14532d', $icon);
});