Skip to content

Commit

Permalink
Add Chain Images Optional Layout Data (cosmos#3442)
Browse files Browse the repository at this point in the history
* Update chain.schema.json

* Update chain.schema.json

* Update chain.schema.json

* Update chain.json
  • Loading branch information
JeremyParish69 authored Dec 14, 2023
1 parent c223341 commit c444c7a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
27 changes: 27 additions & 0 deletions chain.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,35 @@
},
"minProperties": 1,
"additionalProperties": false
},
"layout": {
"type": "string",
"enum": ["logo", "logomark", "logotype"],
"description": "logomark == icon only; logotype == text only; logo == icon + text."
},
"text_position": {
"type": "string",
"enum": ["top", "bottom", "left", "right", "integrated"],
"description": "Indicates in which position the text is placed, in case the layout is 'icon' type, it's required only in this case."
}
},
"if": {
"properties": {
"layout": { "const": "logo" }
},
"required": ["layout"]
},
"then": {
"required": ["text_position"]
},
"anyOf": [
{
"required": ["png"]
},
{
"required": ["svg"]
}
],
"additionalProperties": false
}
},
Expand Down
9 changes: 6 additions & 3 deletions osmosis/chain.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,13 @@
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmosis-chain-logo.png",
"theme": {
"primary_color_hex": "#231D4B"
}
},
"layout": "logo",
"text_position": "right"
},
{
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg"
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg",
"layout": "logomark"
}
],
"logo_URIs": {
Expand Down Expand Up @@ -714,4 +717,4 @@
"keywords": [
"dex"
]
}
}

0 comments on commit c444c7a

Please sign in to comment.