REFACTOR Updated menu icon colors for post types to use a consistent color scheme, enhancing visual coherence.

This commit is contained in:
Antoine M 2026-02-24 14:54:05 +01:00
parent b249d9f460
commit f073f916a6

View File

@ -51,7 +51,7 @@ function dynamiques_create_posttype()
'has_archive' => true,
'show_in_rest' => true,
'menu_icon' => 'dashicons-edit-page',
'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z" fill="black"/><path d="M11 14H4V12H11V14ZM14 10H4V8H14V10ZM14 6H4V4H14V6Z" fill="black"/></svg>'),
'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode('<svg width="18" height="18" viewBox="0 0 18 18" fill="#9BA2A9" xmlns="http://www.w3.org/2000/svg"><path d="M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z" fill="#9BA2A9" /><path d="M11 14H4V12H11V14ZM14 10H4V8H14V10ZM14 6H4V4H14V6Z" fill="#9BA2A9" /></svg>'),
'menu_position' => 4,
'supports' => array(
'title',