changeset 283abec598ec in chronos:default
details: https://hg.tryton.org/chronos?cmd=changeset;node=283abec598ec
description:
Use only svg icon and add a light version
diffstat:
build.sh | 2 +-
icons/chronos-16.png | Bin
icons/chronos-19.png | Bin
icons/chronos-32.png | Bin
icons/chronos-38.png | Bin
icons/chronos-48.png | Bin
icons/chronos-64.png | Bin
icons/chronos-light.svg | 1 +
icons/chronos.svg | 2 +-
manifest.json | 23 +++++++++++++----------
manifest.webapp | 7 ++-----
11 files changed, 18 insertions(+), 17 deletions(-)
diffs (95 lines):
diff -r f41440528aee -r 283abec598ec build.sh
--- a/build.sh Fri Mar 22 15:38:46 2019 +0100
+++ b/build.sh Sun Mar 24 23:17:18 2019 +0100
@@ -5,7 +5,7 @@
*.html \
*.css \
*.js \
- icons/*.{png,svg} \
+ icons/*.svg \
bower_components/bootstrap/LICENSE \
bower_components/bootstrap/dist/js/bootstrap.min.js \
bower_components/bootstrap/dist/css/bootstrap.min.css \
diff -r f41440528aee -r 283abec598ec icons/chronos-16.png
Binary file icons/chronos-16.png has changed
diff -r f41440528aee -r 283abec598ec icons/chronos-19.png
Binary file icons/chronos-19.png has changed
diff -r f41440528aee -r 283abec598ec icons/chronos-32.png
Binary file icons/chronos-32.png has changed
diff -r f41440528aee -r 283abec598ec icons/chronos-38.png
Binary file icons/chronos-38.png has changed
diff -r f41440528aee -r 283abec598ec icons/chronos-48.png
Binary file icons/chronos-48.png has changed
diff -r f41440528aee -r 283abec598ec icons/chronos-64.png
Binary file icons/chronos-64.png has changed
diff -r f41440528aee -r 283abec598ec icons/chronos-light.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/icons/chronos-light.svg Sun Mar 24 23:17:18 2019 +0100
@@ -0,0 +1,1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24
24" fill="white"><path d="M0 0h24v24H0z" fill="none"/><path fill="#b3b3b3"
d="M15 1H9v2h6V1zm-4
13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07
4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03
9-9c0-2.12-.74-4.07-1.97-5.61zM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7
7-3.13 7-7 7z"/></svg>
diff -r f41440528aee -r 283abec598ec icons/chronos.svg
--- a/icons/chronos.svg Fri Mar 22 15:38:46 2019 +0100
+++ b/icons/chronos.svg Sun Mar 24 23:17:18 2019 +0100
@@ -1,1 +1,1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24
24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15 1H9v2h6V1zm-4
13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07
4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03
9-9c0-2.12-.74-4.07-1.97-5.61zM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7
7-3.13 7-7 7z"/></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24
24"><path d="M0 0h24v24H0z" fill="none"/><path fill="#4c4c4c" d="M15
1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42
1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03
9-9c0-2.12-.74-4.07-1.97-5.61zM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7
7-3.13 7-7 7z"/></svg>
diff -r f41440528aee -r 283abec598ec manifest.json
--- a/manifest.json Fri Mar 22 15:38:46 2019 +0100
+++ b/manifest.json Sun Mar 24 23:17:18 2019 +0100
@@ -4,7 +4,8 @@
"version": "0.7.1",
"description": "Manage timesheets in Tryton",
"icons": {
- "48": "icons/chronos-48.png"
+ "48": "icons/chronos.svg",
+ "96": "icons/chronos.svg"
},
"background": {
"scripts": [
@@ -15,16 +16,18 @@
},
"browser_action": {
"browser_style": false,
- "default_icon": {
- "16": "icons/chronos-16.png",
- "19": "icons/chronos-19.png",
- "32": "icons/chronos-32.png",
- "38": "icons/chronos-38.png",
- "48": "icons/chronos-48.png",
- "64": "icons/chronos-64.png"
- },
+ "default_icon": "icons/chronos.svg",
"default_popup": "chronos.html",
- "default_title": "Enter timesheet"
+ "default_title": "Enter timesheet",
+ "theme_icons": [{
+ "light": "icons/chronos-light.svg",
+ "dark": "icons/chronos.svg",
+ "size": 16
+ }, {
+ "light": "icons/chronos-light.svg",
+ "dark": "icons/chronos.svg",
+ "size": 32
+ }]
},
"permissions": [
"*://*/",
diff -r f41440528aee -r 283abec598ec manifest.webapp
--- a/manifest.webapp Fri Mar 22 15:38:46 2019 +0100
+++ b/manifest.webapp Sun Mar 24 23:17:18 2019 +0100
@@ -6,12 +6,9 @@
"display": "standalone",
"icons": [
{
- "src": "icons/chronos-48.png",
- "sizes": "48x48"
- },
- {
"src": "icons/chronos.svg",
- "sizes": "72x72 96x96 128x128 256x256"
+ "sizes": "72x72 96x96 128x128 256x256",
+ "type": "image/svg"
}
]
}