diff --git a/app/extensions/IconsHelper.php b/app/extensions/IconsHelper.php index c733ffb..e4d77ed 100644 --- a/app/extensions/IconsHelper.php +++ b/app/extensions/IconsHelper.php @@ -3,16 +3,23 @@ class IconsHelper extends \Prefab { static public $status_icons = [ - 'New' => ['fas fa-plus-circle has-text-warning', "π"], - 'In Progress' => ['fas fa-repeat has-text-link', "π"], - 'On Hold' => ['fas fa-pause-circle has-text-danger',"βΈοΈ"], - 'Completed' => ['fas fa-check-circle has-text-success', "β "] + 'New' => ['fas fa-circle-dot has-text-success', "π"], + 'In Progress' => ['fas fa-circle-play has-text-link', "π"], + 'On Hold' => ['fas fa-pause-circle has-text-warning',"βΈοΈ"], + 'Completed' => ['fas fa-check-circle has-text-danger', "β "] ]; static public $priority_icons = [ - 'Low' => ['fas fa-arrow-down',"π’"], - 'Medium' => ['fas fa-minus', "π‘"], - 'High' => ['fas fa-arrow-up', "π΄"] + 'Low' => ['fas fa-circle-down',"π’"], + 'Medium' => ['fas fa-circle-dot', "π‘"], + 'High' => ['fas fa-circle-up', "π΄"] + ]; + + static public $priority_colors = [ + 'Low' => 'success', + 'Medium' => 'warning', + 'High' => 'danger', + '' => 'info' ]; static public function icons($node){ @@ -38,13 +45,21 @@ class IconsHelper extends \Prefab { break; case 'priority': $icon_class = IconsHelper::$priority_icons[$value] ?? ['fas fa-question-circle', "π²"]; + $icon_color = IconsHelper::$priority_colors[$value] ?? 'info'; break; default: $icon_class = 'fas fa-question-circle'; } + if($type == 'priority'){ + // return '