From fcc4be6ea04dfebc94088ddfeba41b9c953ca474 Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Wed, 18 Oct 2017 12:38:37 +0200 Subject: Add a icon for gaschange to Oxy with all green tank shoulder color Signed-off-by: Stefan Fuchs --- icons/Oxy_change.png | Bin 0 -> 2613 bytes profile-widget/diveeventitem.cpp | 2 ++ subsurface.qrc | 1 + 3 files changed, 3 insertions(+) create mode 100644 icons/Oxy_change.png diff --git a/icons/Oxy_change.png b/icons/Oxy_change.png new file mode 100644 index 000000000..f023a00b1 Binary files /dev/null and b/icons/Oxy_change.png differ diff --git a/profile-widget/diveeventitem.cpp b/profile-widget/diveeventitem.cpp index 8d0312bf8..f81fa41fe 100644 --- a/profile-widget/diveeventitem.cpp +++ b/profile-widget/diveeventitem.cpp @@ -106,6 +106,8 @@ void DiveEventItem::setupPixmap() setPixmap(EVENT_PIXMAP_BIGGER(":gaschangeTrimix")); else if (gasmix_is_air(mix)) setPixmap(EVENT_PIXMAP_BIGGER(":gaschangeAir")); + else if (mix->o2.permille == 1000) + setPixmap(EVENT_PIXMAP_BIGGER(":gaschangeOxy")); else setPixmap(EVENT_PIXMAP_BIGGER(":gaschangeNitrox")); #ifdef SAMPLE_FLAGS_SEVERITY_SHIFT diff --git a/subsurface.qrc b/subsurface.qrc index 0e910675a..3831dd18b 100644 --- a/subsurface.qrc +++ b/subsurface.qrc @@ -33,6 +33,7 @@ icons/Air_change.png icons/Nx_change.png icons/Tmx_change.png + icons/Oxy_change.png icons/flag.png icons/flag_dark.png icons/flag_light.png -- cgit v1.2.3-70-g09d2