Add app icons into pref's selectbox and fix some styling

This commit is contained in:
Hadi Nategh 2022-08-31 14:14:53 +02:00
parent 2507fc99bd
commit 786fe5ff69
3 changed files with 10 additions and 5 deletions

View File

@ -13,6 +13,7 @@
use EGroupware\Api;
use EGroupware\Api\Framework;
use EGroupware\Api\Egw;
use EGroupware\Api\Image;
use EGroupware\Api\Vfs;
use EGroupware\Api\Etemplate;
@ -573,7 +574,11 @@ class preferences_settings
{
if ($app != 'preferences' && $GLOBALS['egw_info']['user']['apps'][$app])
{
$sel_options['appname'][$app] = $GLOBALS['egw_info']['apps'][$app]['title'];
$sel_options['appname'][$app] = [
'value' => $app,
'label' => $GLOBALS['egw_info']['apps'][$app]['title'],
'icon' => Image::find($app, 'navbar')
];
}
}
natcasesort($sel_options['appname']);

View File

@ -36,12 +36,12 @@ tr.prefRow > td.prefValueColumn {
.prefHelp {
position: absolute;
display: none;
width: 255px;
width: 250px;
max-height: 99%;
height: calc(99% - 150px);
height: calc(99% - 157px);
background-color: #f0f0ff;
padding: 5px;
top: 80px;
top: 95px;
overflow-y: auto;
z-index: 1;
}

View File

@ -35,7 +35,7 @@
<menupopup id="type" onchange="1" class="prefType"/>
</menulist>
</hbox>
<tabbox id="tabs" tab_height="400">
<tabbox id="tabs" tab_height="450">
<tabs>
<tab id="tab1" label="Settings"/>
</tabs>