Set icons for the toolbar priority action in compose dialog

This commit is contained in:
Hadi Nategh 2015-01-09 14:49:56 +00:00
parent e1b9b43f6c
commit e590809211
3 changed files with 25 additions and 5 deletions

View File

@ -175,6 +175,7 @@ class mail_compose
'prty' => array(
'caption' => 'Priority',
'group' => ++$group,
'icon' => 'priority',
'children' => array(),
'toolbarDefault' => true,
'hint' => 'Select the message priority tag'
@ -191,7 +192,19 @@ class mail_compose
{
$actions['prty']['children'][$key] = array(
'caption' => $priority,
'icon' => 'prio_high'
);
switch ($priority)
{
case 'high':
$actions['prty']['children'][$key]['icon'] = 'prio_high';
break;
case 'normal':
$actions['prty']['children'][$key]['icon'] = 'prio_normal';
break;
case 'low':
$actions['prty']['children'][$key]['icon'] = 'prio_low';
}
}
return $actions;
}

View File

@ -1584,10 +1584,13 @@ div.ui-toolbar-menulist {
background-color: #e6e6e6 !important;
}
.et2_toolbar_actionlist .et2_toolbar-dropdown .et2_dropdown button img {
width: 20px;
height: 20px;
width: 16px;
height: 16px;
top: 3px;
}
.et2_toolbar_actionlist .et2_toolbar-dropdown .et2_button_icon {
height: 12px;
}
div#displayToolbar-menulist .et2_dropdown {
-webkit-box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
-moz-box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);

View File

@ -793,14 +793,18 @@ div.ui-toolbar-menulist{
&:hover{}
img {
.dimension_width_height_sm;
.dimension_width_height_s;
top: 3px;
}
}
}
.et2_button_icon
{
.dimension_height_xs;
}
ul> li{ }
ul{ }