style: use full login screen palette for icon

This commit is contained in:
Marek Miklewicz
2026-06-30 21:01:12 +02:00
parent 7ec8f03248
commit 79d7721733
3 changed files with 19 additions and 10 deletions
+12 -5
View File
@@ -1,7 +1,14 @@
<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"> <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="2" width="20" height="20" rx="5" fill="#00689c"/> <defs>
<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"/> <linearGradient id="mxLoginGradient" x1="2" y1="2" x2="22" y2="22" gradientUnits="userSpaceOnUse">
<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"/> <stop offset="0" stop-color="#6670d6"/>
<path d="M7 16h10" fill="none" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round" opacity=".75"/> <stop offset=".52" stop-color="#4f96c8"/>
<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"/> <stop offset="1" stop-color="#2ec4b6"/>
</linearGradient>
</defs>
<rect x="2" y="2" width="20" height="20" rx="5" fill="url(#mxLoginGradient)"/>
<path d="M5 8.25a2 2 0 0 1 2-2h9.25a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z" fill="#ffffff"/>
<path d="M6.4 8.85 11.65 12.35 16.9 8.85" fill="none" stroke="#2f95c8" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M7.25 15.55h7.4" fill="none" stroke="#2f95c8" stroke-width="1.35" stroke-linecap="round" opacity=".55"/>
<path d="M14.75 12h4.8m-1.7-1.7 1.7 1.7-1.7 1.7" fill="none" stroke="#ff8a00" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 707 B

After

Width:  |  Height:  |  Size: 1016 B

+1 -1
View File
@@ -2,7 +2,7 @@ name=MX-Autologin
id=mxautologin id=mxautologin
type=user type=user
author=HITME.PL author=HITME.PL
version=1.1.2 version=1.1.3
active=no active=no
installed=no installed=no
user_run_as=root user_run_as=root
+6 -4
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('name=MX-Autologin', $conf);
assert_contains('id=mxautologin', $conf); assert_contains('id=mxautologin', $conf);
assert_contains('type=user', $conf); assert_contains('type=user', $conf);
assert_contains('version=1.1.2', $conf); assert_contains('version=1.1.3', $conf);
assert_contains('user_run_as=root', $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/src', $packing);
assert_contains('/Users/marek/GPT/ChatGPT/da_plugins/mail-login/archives/X.Y.Z/mxautologin.tar.gz', $packing); assert_contains('/Users/marek/GPT/ChatGPT/da_plugins/mail-login/archives/X.Y.Z/mxautologin.tar.gz', $packing);
@@ -81,9 +81,11 @@ test('directadmin entry points use mx autologin directory and display label', fu
test('plugin icon follows directadmin login screen palette', function (): void { test('plugin icon follows directadmin login screen palette', function (): void {
$icon = file_get_contents(PLUGIN_ROOT . '/images/user_icon.svg') ?: ''; $icon = file_get_contents(PLUGIN_ROOT . '/images/user_icon.svg') ?: '';
assert_contains('#2c8ec4', $icon); assert_contains('#6670d6', $icon);
assert_contains('#00689c', $icon); assert_contains('#4f96c8', $icon);
assert_contains('#ff8a2a', $icon); assert_contains('#2ec4b6', $icon);
assert_contains('#2f95c8', $icon);
assert_contains('#ff8a00', $icon);
assert_contains('#ffffff', $icon); assert_contains('#ffffff', $icon);
assert_not_contains('#14532d', $icon); assert_not_contains('#14532d', $icon);
}); });