Skip to content

Commit

Permalink
release 0.3.0 updated country flag
Browse files Browse the repository at this point in the history
  • Loading branch information
realvjy committed Jan 13, 2019
1 parent d3dc9d1 commit c6ae33d
Show file tree
Hide file tree
Showing 200 changed files with 43 additions and 7 deletions.
Binary file modified .DS_Store
Binary file not shown.
17 changes: 16 additions & 1 deletion 7ac51cae/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* uiLogos for Adobe XD by @realvjy
* Visit https://uilogos.co/xd-plugin
* Created date: Dec 2018
* Updated date: 12 Jan 2018
* Version 0.3.0
*/

const scenegraph = require("scenegraph");
Expand Down Expand Up @@ -43,6 +45,10 @@ async function generateLogos(type, color) {
logoTypeFolder = await getFolderData(logosFolder, 'mark');
}

if (type == 'flags') {
logoTypeFolder = await getFolderData(logosFolder, 'flags');
}

// Get logos array
const allLogos = await getFolderData(logoTypeFolder, color);

Expand All @@ -67,6 +73,7 @@ async function getLogos(selection, type, color) {
}
}


// Get Rectangle and oval Shapes
async function fillLogos(selection, allLogos) {
shuffle(allLogos);
Expand All @@ -80,7 +87,7 @@ async function fillLogos(selection, allLogos) {
} catch (e) {
console.log(e);
} finally {
diag.showDialog('#alertDialog',selection.items.length+' shapes filled with logo');
diag.showDialog('#alertDialog',selection.items.length+' shapes filled with logo or flag');
}
} else {
diag.showDialog('#infoDialog', 'Please select shapes');
Expand Down Expand Up @@ -201,6 +208,14 @@ module.exports = {
} catch (error) {
console.log(error)
}
},
// Method for flag 12 Jan
getCountryFlag: async function (selection) {
try{
await getLogos(selection, 'flags', 'color');
} catch (error) {
console.log(error)
}
}
}
}
13 changes: 11 additions & 2 deletions 7ac51cae/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"app" : "XD",
"minVersion" : "13.0.0"
},
"description" : "Insert professionally designed dummy logos of companies",
"description" : "Insert professionally designed dummy logos of companies and 190+ Country flags",
"id" : "7ac51cae",
"icons" : [ {
"path" : "resources/icon.png",
Expand Down Expand Up @@ -51,9 +51,18 @@
"mac": "Ctrl+Shift+K",
"win": "Ctrl+Shift+K"
}
},
{
"type": "menu",
"label": "Country Flags",
"commandId": "getCountryFlag",
"shortcut": {
"mac": "Ctrl+Shift+F",
"win": "Ctrl+Shift+F"
}
}
]
}
],
"version" : "0.2.0"
"version" : "0.3.0"
}
Binary file modified 7ac51cae/resources/icon.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/albania.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/algeria.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/andorra.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/angola.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/arab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/armenia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/austria.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/bahamas.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/bahrain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/barbados.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/belarus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/belgium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/belize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/benin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/bhutan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/bolivia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/botswana.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7ac51cae/resources/logos/flags/color/brazil.png
Binary file added 7ac51cae/resources/logos/flags/color/bulgaria.png
Binary file added 7ac51cae/resources/logos/flags/color/burundi.png
Binary file added 7ac51cae/resources/logos/flags/color/cambodia.png
Binary file added 7ac51cae/resources/logos/flags/color/cameroon.png
Binary file added 7ac51cae/resources/logos/flags/color/canada.png
Binary file added 7ac51cae/resources/logos/flags/color/chad.png
Binary file added 7ac51cae/resources/logos/flags/color/chile.png
Binary file added 7ac51cae/resources/logos/flags/color/china.png
Binary file added 7ac51cae/resources/logos/flags/color/colombia.png
Binary file added 7ac51cae/resources/logos/flags/color/comoros.png
Binary file added 7ac51cae/resources/logos/flags/color/costa-rica.png
Binary file added 7ac51cae/resources/logos/flags/color/croatia.png
Binary file added 7ac51cae/resources/logos/flags/color/cuba.png
Binary file added 7ac51cae/resources/logos/flags/color/cyprus.png
Binary file added 7ac51cae/resources/logos/flags/color/denmark.png
Binary file added 7ac51cae/resources/logos/flags/color/djibouti.png
Binary file added 7ac51cae/resources/logos/flags/color/dominica.png
Binary file added 7ac51cae/resources/logos/flags/color/dr-congo.png
Binary file added 7ac51cae/resources/logos/flags/color/ecuador.png
Binary file added 7ac51cae/resources/logos/flags/color/egypt.png
Binary file added 7ac51cae/resources/logos/flags/color/eritrea.png
Binary file added 7ac51cae/resources/logos/flags/color/estonia.png
Binary file added 7ac51cae/resources/logos/flags/color/ethiopia.png
Binary file added 7ac51cae/resources/logos/flags/color/fiji.png
Binary file added 7ac51cae/resources/logos/flags/color/finland.png
Binary file added 7ac51cae/resources/logos/flags/color/france.png
Binary file added 7ac51cae/resources/logos/flags/color/gabon.png
Binary file added 7ac51cae/resources/logos/flags/color/gambia.png
Binary file added 7ac51cae/resources/logos/flags/color/georgia.png
Binary file added 7ac51cae/resources/logos/flags/color/germany.png
Binary file added 7ac51cae/resources/logos/flags/color/ghana.png
Binary file added 7ac51cae/resources/logos/flags/color/greece.png
Binary file added 7ac51cae/resources/logos/flags/color/grenada.png
Binary file added 7ac51cae/resources/logos/flags/color/guinea.png
Binary file added 7ac51cae/resources/logos/flags/color/guyana.png
Binary file added 7ac51cae/resources/logos/flags/color/haiti.png
Binary file added 7ac51cae/resources/logos/flags/color/honduras.png
Binary file added 7ac51cae/resources/logos/flags/color/hungary.png
Binary file added 7ac51cae/resources/logos/flags/color/iceland.png
Binary file added 7ac51cae/resources/logos/flags/color/india.png
Binary file added 7ac51cae/resources/logos/flags/color/indonesia.png
Binary file added 7ac51cae/resources/logos/flags/color/iran.png
Binary file added 7ac51cae/resources/logos/flags/color/iraq.png
Binary file added 7ac51cae/resources/logos/flags/color/ireland.png
Binary file added 7ac51cae/resources/logos/flags/color/israel.png
Binary file added 7ac51cae/resources/logos/flags/color/italy.png
Binary file added 7ac51cae/resources/logos/flags/color/ivory-coast.png
Binary file added 7ac51cae/resources/logos/flags/color/jamaica.png
Binary file added 7ac51cae/resources/logos/flags/color/jordan.png
Binary file added 7ac51cae/resources/logos/flags/color/kenyan.png
Binary file added 7ac51cae/resources/logos/flags/color/kiribati.png
Binary file added 7ac51cae/resources/logos/flags/color/kuwait.png
Binary file added 7ac51cae/resources/logos/flags/color/laos.png
Binary file added 7ac51cae/resources/logos/flags/color/latvia.png
Binary file added 7ac51cae/resources/logos/flags/color/lebanon.png
Binary file added 7ac51cae/resources/logos/flags/color/lesotho.png
Binary file added 7ac51cae/resources/logos/flags/color/liberia.png
Binary file added 7ac51cae/resources/logos/flags/color/libya.png
Binary file added 7ac51cae/resources/logos/flags/color/lithuania.png
Binary file added 7ac51cae/resources/logos/flags/color/luxembourg.png
Binary file added 7ac51cae/resources/logos/flags/color/madagascar.png
Binary file added 7ac51cae/resources/logos/flags/color/malawi.png
Binary file added 7ac51cae/resources/logos/flags/color/malaysia.png
Binary file added 7ac51cae/resources/logos/flags/color/maldives.png
Binary file added 7ac51cae/resources/logos/flags/color/mali.png
Binary file added 7ac51cae/resources/logos/flags/color/malta.png
Binary file added 7ac51cae/resources/logos/flags/color/mauritius.png
Binary file added 7ac51cae/resources/logos/flags/color/mexico.png
Binary file added 7ac51cae/resources/logos/flags/color/moldova.png
Binary file added 7ac51cae/resources/logos/flags/color/monaco.png
Binary file added 7ac51cae/resources/logos/flags/color/mongolia.png
Binary file added 7ac51cae/resources/logos/flags/color/morocco.png
Binary file added 7ac51cae/resources/logos/flags/color/myanmar.png
Binary file added 7ac51cae/resources/logos/flags/color/namibia.png
Binary file added 7ac51cae/resources/logos/flags/color/nauru.png
Binary file added 7ac51cae/resources/logos/flags/color/nepal.png
Binary file added 7ac51cae/resources/logos/flags/color/netherlands.png
Binary file added 7ac51cae/resources/logos/flags/color/niger.png
Binary file added 7ac51cae/resources/logos/flags/color/nigeria.png
Binary file added 7ac51cae/resources/logos/flags/color/norway.png
Binary file added 7ac51cae/resources/logos/flags/color/oman.png
Binary file added 7ac51cae/resources/logos/flags/color/pakistan.png
Binary file added 7ac51cae/resources/logos/flags/color/palau.png
Binary file added 7ac51cae/resources/logos/flags/color/panama.png
Binary file added 7ac51cae/resources/logos/flags/color/paraguay.png
Binary file added 7ac51cae/resources/logos/flags/color/peru.png
Binary file added 7ac51cae/resources/logos/flags/color/poland.png
Binary file added 7ac51cae/resources/logos/flags/color/portugal.png
Binary file added 7ac51cae/resources/logos/flags/color/qatar.png
Binary file added 7ac51cae/resources/logos/flags/color/romania.png
Binary file added 7ac51cae/resources/logos/flags/color/russia.png
Binary file added 7ac51cae/resources/logos/flags/color/rwanda.png
Binary file added 7ac51cae/resources/logos/flags/color/samoa.png
Binary file added 7ac51cae/resources/logos/flags/color/senegal.png
Binary file added 7ac51cae/resources/logos/flags/color/serbia.png
Binary file added 7ac51cae/resources/logos/flags/color/slovakia.png
Binary file added 7ac51cae/resources/logos/flags/color/slovenia.png
Binary file added 7ac51cae/resources/logos/flags/color/spain.png
Binary file added 7ac51cae/resources/logos/flags/color/sudan.png
Binary file added 7ac51cae/resources/logos/flags/color/sweden.png
Binary file added 7ac51cae/resources/logos/flags/color/switzerland.png
Binary file added 7ac51cae/resources/logos/flags/color/syria.png
Binary file added 7ac51cae/resources/logos/flags/color/tanzania.png
Binary file added 7ac51cae/resources/logos/flags/color/thailand.png
Binary file added 7ac51cae/resources/logos/flags/color/togo.png
Binary file added 7ac51cae/resources/logos/flags/color/tonga.png
Binary file added 7ac51cae/resources/logos/flags/color/tunisia.png
Binary file added 7ac51cae/resources/logos/flags/color/turkey.png
Binary file added 7ac51cae/resources/logos/flags/color/tuvalu.png
Binary file added 7ac51cae/resources/logos/flags/color/uganda.png
Binary file added 7ac51cae/resources/logos/flags/color/ukraine.png
Binary file added 7ac51cae/resources/logos/flags/color/uruguay.png
Binary file added 7ac51cae/resources/logos/flags/color/vanuatu.png
Binary file added 7ac51cae/resources/logos/flags/color/vietnam.png
Binary file added 7ac51cae/resources/logos/flags/color/yemen.png
Binary file added 7ac51cae/resources/logos/flags/color/zambia.png
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# uilogos-XD
Now you can insert 25+ professionally designed logos and 190+ country flags directly into Adobe XD.


## Demo

Expand All @@ -8,26 +10,36 @@
### Logotype
![Generating thumbnails](https://raw.githubusercontent.com/realvjy/uilogos-XD/master/demo/uilogos-logotype.gif)

### Country Flag
![Generating thumbnails](https://raw.githubusercontent.com/realvjy/uilogos-XD/master/demo/uilogos-countryflag.gif)


## Installation
1. In Adobe XD app `Plugins` > `Discover Plugins...`
2. In the Discover window > Search `uilogos`.
3. Click on `install`

## Manual Installation
1. Download [uilogos.xdx](https://github.com/realvjy/uilogos-XD/releases/download/0.2.0/uilogos_download-and-double-click-to-install.xdx)
1. Download [uilogos.xdx](https://github.com/realvjy/uilogos-XD/releases/download/0.3.0/uilogos_download-and-double-click-to-install.xdx)
2. Double click on `.xdx` file to install

## How to use
1. Select `Rectangle` Shapes
2. In Adobe XD app `Plugins` > `uiLogos`
3. Select required option `Color Logotype` or `Black Logotype` or `Color Logomark` or `Black Logomark`

## Release Log
1. 0.2.0 - 25+ Company Logo
2. 0.3.0 - updated with 190+ country flag

## Coming Soon
1. More Logos
2. Country Flag
2. Search
3. Brand Logos


## uiLogos - sketch plugin v0.3.0
Download from - [uiLogos.sketchplugin](https://github.com/realvjy/uiLogos-sketch-plugin/releases/download/0.3.0/uiLogos.sketchplugin.zip)
## uiLogos - sketch plugin v0.4.0
Download from - [uiLogos.sketchplugin](https://github.com/realvjy/uiLogos-sketch-plugin/releases/download/0.4.0/uiLogos.sketchplugin.zip)

## Contributors
Author [vijay verma](https://twitter.com/realvjy)
Expand Down
Binary file added demo/uilogos-countryflag.gif

0 comments on commit c6ae33d

Please sign in to comment.