From 5a8027ae1f907a13065f1b8c3d10cc4126c9201f Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 23 Oct 2022 16:51:05 +0800 Subject: [PATCH 1/2] Remove unused resources --- src/icons/build-icons/Gruntfile.js | 22 ---------------------- src/icons/build-icons/package.json | 13 ------------- src/icons/build-icons/readme.md | 14 -------------- 3 files changed, 49 deletions(-) delete mode 100644 src/icons/build-icons/Gruntfile.js delete mode 100644 src/icons/build-icons/package.json delete mode 100644 src/icons/build-icons/readme.md diff --git a/src/icons/build-icons/Gruntfile.js b/src/icons/build-icons/Gruntfile.js deleted file mode 100644 index ce79ddb7c..000000000 --- a/src/icons/build-icons/Gruntfile.js +++ /dev/null @@ -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']); - -} diff --git a/src/icons/build-icons/package.json b/src/icons/build-icons/package.json deleted file mode 100644 index 9bbcf037d..000000000 --- a/src/icons/build-icons/package.json +++ /dev/null @@ -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" -} diff --git a/src/icons/build-icons/readme.md b/src/icons/build-icons/readme.md deleted file mode 100644 index 700414a41..000000000 --- a/src/icons/build-icons/readme.md +++ /dev/null @@ -1,14 +0,0 @@ -Convert SVG icons to PNG ------------------------- - -install npm - -Execute: -``` -npm install -``` - -Convert icons by running: -``` -grunt -``` From dfb56ce31c5804ada21b02bd3560a7a6b1fb02d9 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 23 Oct 2022 16:51:28 +0800 Subject: [PATCH 2/2] Update icon guidelines --- src/icons/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/icons/README.md b/src/icons/README.md index c2fb543bd..ee57a37ed 100644 --- a/src/icons/README.md +++ b/src/icons/README.md @@ -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