summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-10-18 12:38:37 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-18 06:47:44 -0400
commitfcc4be6ea04dfebc94088ddfeba41b9c953ca474 (patch)
treeacc70d153065dd2f7b2e8135e92cf9358cb4da58
parent432110ac8faa3775feab35d53a9cdbeecfa7fe27 (diff)
downloadsubsurface-fcc4be6ea04dfebc94088ddfeba41b9c953ca474.tar.gz
Add a icon for gaschange to Oxy with all green tank shoulder color
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
-rw-r--r--icons/Oxy_change.pngbin0 -> 2613 bytes
-rw-r--r--profile-widget/diveeventitem.cpp2
-rw-r--r--subsurface.qrc1
3 files changed, 3 insertions, 0 deletions
diff --git a/icons/Oxy_change.png b/icons/Oxy_change.png
new file mode 100644
index 000000000..f023a00b1
--- /dev/null
+++ b/icons/Oxy_change.png
Binary files 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 @@
<file alias="gaschangeAir">icons/Air_change.png</file>
<file alias="gaschangeNitrox">icons/Nx_change.png</file>
<file alias="gaschangeTrimix">icons/Tmx_change.png</file>
+ <file alias="gaschangeOxy">icons/Oxy_change.png</file>
<file alias="flag">icons/flag.png</file>
<file alias="flagDark">icons/flag_dark.png</file>
<file alias="flagLight">icons/flag_light.png</file>