Browse Source

Merge pull request #17942 from Chocobo1/icons

Update icon guidelines
adaptive-webui-19844
Chocobo1 2 years ago committed by GitHub
parent
commit
07bb1df74f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/icons/README.md
  2. 22
      src/icons/build-icons/Gruntfile.js
  3. 13
      src/icons/build-icons/package.json
  4. 14
      src/icons/build-icons/readme.md

4
src/icons/README.md

@ -1,4 +1,6 @@ @@ -1,4 +1,6 @@
# qBittorrent Icons
## Color Reference
Colors have been selected from Qt documented [SVG Colors](https://doc.qt.io/qt-6/qcolorconstants.html#svg-colors). It is recommended to use color Hex from the given source.
It is recommended to use color from the following source: [Primer primitives colors](https://primer.style/primitives/colors).
More information: https://primer.style/design/foundations/color

22
src/icons/build-icons/Gruntfile.js

@ -1,22 +0,0 @@ @@ -1,22 +0,0 @@
module.exports = function(grunt) {
grunt.initConfig({
svg2png: {
all: {
options:{
size: 256
},
files: [
{
src: ['icons/*.svg']
}
]
}
}
});
grunt.loadNpmTasks('grunt-svg2png');
grunt.registerTask('default', ['svg2png']);
}

13
src/icons/build-icons/package.json

@ -1,13 +0,0 @@ @@ -1,13 +0,0 @@
{
"name": "build-icons",
"version": "1.0.0",
"description": "Convert svg icons to png",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"grunt": "*",
"grunt-svg2png": "git+https://git@github.com/bertyhell/grunt-svg2png.git"
},
"author": "Bert Verhelst",
"license": "ISC"
}

14
src/icons/build-icons/readme.md

@ -1,14 +0,0 @@ @@ -1,14 +0,0 @@
Convert SVG icons to PNG
------------------------
install npm
Execute:
```
npm install
```
Convert icons by running:
```
grunt
```
Loading…
Cancel
Save