From e30c19cd0d503ff4df4bb879db4716bb63edafe8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 15 Jun 2022 23:49:10 +0300 Subject: * fix prev/next icons invisible in dark theme * add start vscode task --- .vscode/launch.json | 9 +++++++-- .vscode/tasks.json | 21 +++++++++++++++++++-- package.json | 4 ++-- reader.css | 4 ++++ reader.less | 5 ++++- 5 files changed, 36 insertions(+), 7 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 0edf4d8..703b4cd 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,11 +5,16 @@ "name": "Debug Main Process", "type": "node", "request": "launch", + "nodeVersionHint": 16, + "env": { + "PATH": "${env:PATH}:/usr/lib/sdk/node16/bin/", + }, "cwd": "${workspaceFolder}", "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron", "runtimeArgs": [ - ".", - "--enable-logging" + "--enable-logging", + "--no-sandbox", + "." ], "windows": { "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd" diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 006e878..a399f2d 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -5,7 +5,24 @@ "type": "gulp", "task": "default", "problemMatcher": [], - "label": "gulp: default" + "label": "gulp: default", + "options": { + "env": { + "PATH": "${env:PATH}:/usr/lib/sdk/node16/bin/" + } + } + }, + { + "type": "npm", + "script": "start", + "problemMatcher": [], + "label": "npm: start", + "detail": "electron", + "options": { + "env": { + "PATH": "${env:PATH}:/usr/lib/sdk/node16/bin/" + } + } } ] -} \ No newline at end of file +} diff --git a/package.json b/package.json index 591a5d1..88b19f8 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "tt-comics", "productName": "Pow! Comics Reader", - "version": "1.0.2", + "version": "1.0.3", "description": "Pow! Comics Reader", "main": "app.js", "license": "GPL-3.0", "scripts": { - "start": "electron .", + "start": "electron --no-sandbox --enable-logging .", "package-win": "electron-packager . --platform win32 --arch x64 --icon img/ic_launcher.ico --overwrite --prune=true --out=release-builds", "package-lin": "electron-packager . --platform linux --arch x64 --icon img/ic_launcher.ico --overwrite --prune=true --out=release-builds", "create-installer-win": "node createInstaller.js" diff --git a/reader.css b/reader.css index bab574a..76cfe4f 100644 --- a/reader.css +++ b/reader.css @@ -115,3 +115,7 @@ body.dark .splash, body.dark #reader { background: #333; } +body.dark #left .glyphicon, +body.dark #right .glyphicon { + color: white; +} diff --git a/reader.less b/reader.less index 2394213..956c811 100644 --- a/reader.less +++ b/reader.less @@ -130,5 +130,8 @@ body.dark { background : #333; } - + #left .glyphicon, + #right .glyphicon { + color : white; + } } -- cgit v1.2.3