From 085aaa36f0712ab3379c6df0fe726843af62895e Mon Sep 17 00:00:00 2001 From: Elena.Budnik Date: Thu, 3 May 2018 17:59:39 +0200 Subject: [PATCH] add uranus neptune icons --- generic_data/rank.json | 2 +- js/app/models/LocalParamNode.js | 8 ++++---- js/resources/css/amda.css | 12 ++++++++++++ 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/generic_data/rank.json b/generic_data/rank.json index d5ee523..0217c72 100644 --- a/generic_data/rank.json +++ b/generic_data/rank.json @@ -1,4 +1,4 @@ {"Mercury": 1, "Venus": 2, "Heliosphere.NearEarth": 3, "Heliosphere.Remote1AU": 4, "Earth.Magnetosheath": 5, "Earth.Magnetosphere": 5, "Earth": 5, "Earth.Surface": 6, -"Mars": 7, "Jupiter": 8, "Ganymede" : 8, "Saturn": 9, "Uranus" : 91, "Neptune" : 92, "Comet" : 93, +"Mars": 7, "Jupiter": 8, "Ganymede" : 8, "Saturn": 9, "Uranus" : 10, "Neptune" : 11, "Comet" : 93, "Heliosphere" : 99 } \ No newline at end of file diff --git a/js/app/models/LocalParamNode.js b/js/app/models/LocalParamNode.js index acfc624..6423556 100644 --- a/js/app/models/LocalParamNode.js +++ b/js/app/models/LocalParamNode.js @@ -63,14 +63,14 @@ Ext.define('amdaModel.LocalParamNode', var rank = this.get('rank'); if (rank == 1) this.set('iconCls', 'icon-mercury'); if (rank == 2) this.set('iconCls', 'icon-venus'); - if (rank == 5) this.set('iconCls', 'icon-earth'); - if (rank == 6) this.set('iconCls', 'icon-earth'); + if (rank == 5 || rank == 6) this.set('iconCls', 'icon-earth'); if (rank == 7) this.set('iconCls', 'icon-mars'); if (rank == 8) this.set('iconCls', 'icon-jupiter'); if (rank == 9) this.set('iconCls', 'icon-saturn'); + if (rank == 10) this.set('iconCls', 'icon-uranus'); + if (rank == 11) this.set('iconCls', 'icon-neptune'); if (rank == 93) this.set('iconCls', 'icon-comet'); - if (rank == 3) this.set('iconCls', 'icon-sw'); - if (rank == 4) this.set('iconCls', 'icon-sw'); + if (rank == 3 || rank == 4) this.set('iconCls', 'icon-sw'); if (rank >= 99) this.set('iconCls', 'icon-solarsystem'); } diff --git a/js/resources/css/amda.css b/js/resources/css/amda.css index 602bbe3..f7b1fbe 100644 --- a/js/resources/css/amda.css +++ b/js/resources/css/amda.css @@ -369,6 +369,18 @@ background-image: url(../images/16x16/error.png) !important; background-repeat: no-repeat; } +.icon-neptune { + background-image:url(../images/icons/neptune.png) !important; + background-position: center; + background-repeat: no-repeat; +} + +.icon-uranus { + background-image:url(../images/icons/uranus.png) !important; + background-position: center; + background-repeat: no-repeat; +} + .icon-sun { background-image:url(../images/icons/sun.png) !important; background-position: center; -- libgit2 0.21.2