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( 'prty' => array(
'caption' => 'Priority', 'caption' => 'Priority',
'group' => ++$group, 'group' => ++$group,
'icon' => 'priority',
'children' => array(), 'children' => array(),
'toolbarDefault' => true, 'toolbarDefault' => true,
'hint' => 'Select the message priority tag' 'hint' => 'Select the message priority tag'
@ -191,7 +192,19 @@ class mail_compose
{ {
$actions['prty']['children'][$key] = array( $actions['prty']['children'][$key] = array(
'caption' => $priority, '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; return $actions;
} }

View File

@ -1584,10 +1584,13 @@ div.ui-toolbar-menulist {
background-color: #e6e6e6 !important; background-color: #e6e6e6 !important;
} }
.et2_toolbar_actionlist .et2_toolbar-dropdown .et2_dropdown button img { .et2_toolbar_actionlist .et2_toolbar-dropdown .et2_dropdown button img {
width: 20px; width: 16px;
height: 20px; height: 16px;
top: 3px; top: 3px;
} }
.et2_toolbar_actionlist .et2_toolbar-dropdown .et2_button_icon {
height: 12px;
}
div#displayToolbar-menulist .et2_dropdown { div#displayToolbar-menulist .et2_dropdown {
-webkit-box-shadow: 0px 0px 0px rgba(0, 0, 0, 0); -webkit-box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
-moz-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{} &:hover{}
img { img {
.dimension_width_height_sm; .dimension_width_height_s;
top: 3px; top: 3px;
} }
} }
} }
.et2_button_icon
{
.dimension_height_xs;
}
ul> li{ } ul> li{ }
ul{ } ul{ }