From a3bd761b0c069a2d04452ea7e0c6c56f9b2cfae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sat, 14 Oct 2017 21:17:16 +0200 Subject: [PATCH] ux: testing out new icons --- pkg/api/index.go | 10 +- .../features/dashboard/dashnav/dashnav.html | 24 ++-- .../dashboard/folder_modal/folder.html | 2 +- public/app/features/panel/panel_ctrl.ts | 15 ++- .../features/plugins/partials/ds_edit.html | 7 +- "public/img/icons_dark_theme/Icon\r" | 0 .../img/icons_dark_theme/icon_add_folder.svg | 31 +++++ public/img/icons_dark_theme/icon_alert.svg | 16 +++ .../img/icons_dark_theme/icon_alert_alt.svg | 108 ++++++++++++++++++ .../img/icons_dark_theme/icon_alert_off.svg | 17 +++ .../img/icons_dark_theme/icon_dashboard.svg | 18 +++ .../icons_dark_theme/icon_dashboard_fav.svg | 30 +++++ .../icon_import_dashboard.svg | 32 ++++++ .../icons_dark_theme/icon_new_dashboard.svg | 32 ++++++ .../icon_notification_channels.svg | 14 +++ public/img/icons_dark_theme/icon_org.svg | 40 +++++++ public/img/icons_dark_theme/icon_user.svg | 15 +++ .../img/icons_dark_theme/icon_user_group.svg | 25 ++++ "public/img/icons_light_theme/Icon\r" | 0 .../img/icons_light_theme/icon_add_folder.svg | 29 +++++ public/img/icons_light_theme/icon_alert.svg | 16 +++ .../img/icons_light_theme/icon_alert_alt.svg | 108 ++++++++++++++++++ .../img/icons_light_theme/icon_alert_off.svg | 17 +++ .../img/icons_light_theme/icon_dashboard.svg | 18 +++ .../icons_light_theme/icon_dashboard_fav.svg | 28 +++++ .../icon_import_dashboard.svg | 32 ++++++ .../icons_light_theme/icon_new_dashboard.svg | 32 ++++++ .../icon_notification_channels.svg | 14 +++ public/img/icons_light_theme/icon_org.svg | 40 +++++++ public/img/icons_light_theme/icon_user.svg | 15 +++ .../img/icons_light_theme/icon_user_group.svg | 25 ++++ public/sass/_grafana.scss | 1 + public/sass/_variables.dark.scss | 6 +- public/sass/base/_icons.scss | 38 ++++++ public/sass/components/_dropdown.scss | 5 + public/sass/components/_icon-picker.scss | 26 ----- public/sass/components/_navbar.scss | 35 +++--- public/sass/components/_sidemenu.scss | 9 +- 38 files changed, 851 insertions(+), 79 deletions(-) create mode 100644 "public/img/icons_dark_theme/Icon\r" create mode 100644 public/img/icons_dark_theme/icon_add_folder.svg create mode 100644 public/img/icons_dark_theme/icon_alert.svg create mode 100644 public/img/icons_dark_theme/icon_alert_alt.svg create mode 100644 public/img/icons_dark_theme/icon_alert_off.svg create mode 100644 public/img/icons_dark_theme/icon_dashboard.svg create mode 100644 public/img/icons_dark_theme/icon_dashboard_fav.svg create mode 100644 public/img/icons_dark_theme/icon_import_dashboard.svg create mode 100644 public/img/icons_dark_theme/icon_new_dashboard.svg create mode 100644 public/img/icons_dark_theme/icon_notification_channels.svg create mode 100644 public/img/icons_dark_theme/icon_org.svg create mode 100644 public/img/icons_dark_theme/icon_user.svg create mode 100644 public/img/icons_dark_theme/icon_user_group.svg create mode 100644 "public/img/icons_light_theme/Icon\r" create mode 100644 public/img/icons_light_theme/icon_add_folder.svg create mode 100644 public/img/icons_light_theme/icon_alert.svg create mode 100644 public/img/icons_light_theme/icon_alert_alt.svg create mode 100644 public/img/icons_light_theme/icon_alert_off.svg create mode 100644 public/img/icons_light_theme/icon_dashboard.svg create mode 100644 public/img/icons_light_theme/icon_dashboard_fav.svg create mode 100644 public/img/icons_light_theme/icon_import_dashboard.svg create mode 100644 public/img/icons_light_theme/icon_new_dashboard.svg create mode 100644 public/img/icons_light_theme/icon_notification_channels.svg create mode 100644 public/img/icons_light_theme/icon_org.svg create mode 100644 public/img/icons_light_theme/icon_user.svg create mode 100644 public/img/icons_light_theme/icon_user_group.svg create mode 100644 public/sass/base/_icons.scss delete mode 100644 public/sass/components/_icon-picker.scss diff --git a/pkg/api/index.go b/pkg/api/index.go index 189a6bbb604..0f4674cdd9c 100644 --- a/pkg/api/index.go +++ b/pkg/api/index.go @@ -92,9 +92,9 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) { Icon: "fa fa-fw fa-plus", Url: "#", Children: []*dtos.NavLink{ - {Text: "Dashboard", Icon: "fa fa-fw fa-plus", Url: setting.AppSubUrl + "/dashboard/new"}, - {Text: "Folder", Icon: "fa fa-fw fa-plus", Url: setting.AppSubUrl + "/dashboard/new/?editview=new-folder"}, - {Text: "Import", Icon: "fa fa-fw fa-plus", Url: setting.AppSubUrl + "/dashboard/new/?editview=import"}, + {Text: "Dashboard", Icon: "gicon gicon-dashboard-new", Url: setting.AppSubUrl + "/dashboard/new"}, + {Text: "Folder", Icon: "gicon gicon-folder-new", Url: setting.AppSubUrl + "/dashboard/new/?editview=new-folder"}, + {Text: "Import", Icon: "gicon gicon-dashboard-import", Url: setting.AppSubUrl + "/dashboard/new/?editview=import"}, }, }) } @@ -108,7 +108,7 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) { data.NavTree = append(data.NavTree, &dtos.NavLink{ Text: "Dashboards", Id: "dashboards", - Icon: "icon-gf icon-gf-dashboard", + Icon: "gicon gicon-dashboard", Url: setting.AppSubUrl + "/", Children: dashboardChildNavs, }) @@ -145,7 +145,7 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) { data.NavTree = append(data.NavTree, &dtos.NavLink{ Text: "Alerting", Id: "alerting", - Icon: "icon-gf icon-gf-alert", + Icon: "gicon gicon-alert", Url: setting.AppSubUrl + "/alerting/list", Children: alertChildNavs, }) diff --git a/public/app/features/dashboard/dashnav/dashnav.html b/public/app/features/dashboard/dashnav/dashnav.html index e350bc33caa..dc538fb5500 100644 --- a/public/app/features/dashboard/dashnav/dashnav.html +++ b/public/app/features/dashboard/dashnav/dashnav.html @@ -1,13 +1,13 @@