Get tabs icons and tree icons adopted according to textsize

This commit is contained in:
Hadi Nategh 2022-09-14 16:06:12 +02:00
parent 22f990eea5
commit f9ced2c834

View File

@ -123,7 +123,7 @@ class pixelegg_framework extends Api\Framework\Ajax
$textsize = $GLOBALS['egw_info']['user']['preferences']['common']['textsize']; $textsize = $GLOBALS['egw_info']['user']['preferences']['common']['textsize'];
if (!empty($textsize) && $textsize != '12') if (!empty($textsize) && $textsize != '12')
{ {
$iconSize = $textsize+4;
$ret['app_css'] .= " $ret['app_css'] .= "
/* /*
sharing sharing
@ -138,6 +138,11 @@ class pixelegg_framework extends Api\Framework\Ajax
font-size: {$textsize}px; font-size: {$textsize}px;
} }
et2-lavatar, et2-avatar {font-size: 12px} et2-lavatar, et2-avatar {font-size: 12px}
#egw_fw_main #egw_fw_tabs .egw_fw_ui_tabs_header .egw_fw_ui_tab_header img.egw_fw_ui_tab_icon,
.dtree img{
width: {$iconSize}px !important;
height: {$iconSize}px !important;
}
"; ";
} }
if (preg_match('/^(#[0-9A-F]+|[A-Z]+)$/i',$color) || preg_match('/^(#[0-9A-F]+|[A-Z]+)$/i',$loginbox_color)) // a little xss check if (preg_match('/^(#[0-9A-F]+|[A-Z]+)$/i',$color) || preg_match('/^(#[0-9A-F]+|[A-Z]+)$/i',$loginbox_color)) // a little xss check