This commit is contained in:
AlexeyMatveev686
2022-08-04 16:45:42 +03:00
parent 9e20924be8
commit 5445a93f86
21 changed files with 30 additions and 61 deletions

View File

@ -79,10 +79,14 @@
"initOnSelectionChanged": true,
"store": {
"background": {
"light" : "#F5F5F5",
"light" : "#042B48",
"dark" : "#042B48"
},
"screenshots" : ["resources/store/screen_1.png"]
"screenshots" : ["resources/store/screen_1.png"],
"icons" : {
"light" : "resources/store/icons",
"dark" : "resources/store/icons"
}
}
}
]

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -60,10 +60,14 @@
"initOnSelectionChanged": true,
"store": {
"background": {
"light" : "#F5F5F5",
"dark" : "#555555"
"light" : "linear-gradient(180deg, #FF8E3D 0%, #FF6F3D 100%)",
"dark" : "linear-gradient(180deg, #FF8E3D 0%, #FF6F3D 100%)"
},
"screenshots" : ["resources/store/screen_1.png"]
"screenshots" : ["resources/store/screen_1.png"],
"icons" : {
"light" : "resources/store/icons",
"dark" : "resources/store/icons"
}
}
},
{

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -100,10 +100,14 @@
"size": [ 1200, 1000 ],
"store": {
"background": {
"light": "#F5F5F5",
"dark": "#F5F5F5"
"light" : "#FC8B00",
"dark" : "#FC8B00;"
},
"screenshots": ["resources/store/screen_1.png"]
"screenshots" : ["resources/store/screen_1.png"],
"icon" : {
"light" : "resources/store/icons",
"dark" : "resources/store/icons"
}
}
}
]

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -6,16 +6,10 @@
{
"description" : "EasyBib",
"url" : "index.html",
"icons": [ "resources/img/icon.png", "resources/img/icon@2x.png" ],
"icons2": [
{
"100%": { "normal": "resources/img/icon.png" },
"125%": { "normal": "resources/img/icon@1.25x.png" },
"150%": { "normal": "resources/img/icon@1.5x.png" },
"175%": { "normal": "resources/img/icon@1.75x.png" },
"200%": { "normal": "resources/img/icon@2x.png" }
}
],
"icons": {
"light" : "resources/img",
"dark" : "resources/img"
},
"isViewer" : false,
"EditorsSupport" : ["word"],
"initDataType" : "html",

View File

@ -14,47 +14,10 @@
},
"url" : "index.html",
"icons": [ "resources/light/icon.png", "resources/light/icon@2x.png" ],
"icons2": [
{
"style" : "light",
"100%": {
"normal": "resources/light/icon.png"
},
"125%": {
"normal": "resources/light/icon@1.25x.png"
},
"150%": {
"normal": "resources/light/icon@1.5x.png"
},
"175%": {
"normal": "resources/light/icon@1.75x.png"
},
"200%": {
"normal": "resources/light/icon@2x.png"
}
},
{
"style" : "dark",
"100%": {
"normal": "resources/dark/icon.png"
},
"125%": {
"normal": "resources/dark/icon@1.25x.png"
},
"150%": {
"normal": "resources/dark/icon@1.5x.png"
},
"175%": {
"normal": "resources/dark/icon@1.75x.png"
},
"200%": {
"normal": "resources/dark/icon@2x.png"
}
}
],
"icons": {
"light" : "resources/light",
"dark" : "resources/dark"
},
"isViewer" : true,
"EditorsSupport" : ["word"],
"isVisual" : true,

View File

@ -820,7 +820,7 @@ function getImageUrl(guid) {
if (variation.store && variation.store.icons) {
// иконки в конфиге у объекта стор (работаем только по новой схеме)
// это будет объект с двумя полями для темной и светлой темы, которые будут указывать путь до папки в которой хранятся иконки
curIcon = plugin.baseUrl + variation.store.icons[themeType] + 'icon.png';
curIcon = plugin.baseUrl + variation.store.icons[themeType] + '/icon@2.png';
} else if (variation.icons2) {
// это старая схема и тут может быть массив с объектами у которых есть поле темы, так и массив из одного объекта у которого нет поля темы
let icon = variation.icons2[0];
@ -837,7 +837,7 @@ function getImageUrl(guid) {
// это будет объект с двумя полями для темной и светлой темы, которые будут указывать путь до папки в которой хранятся иконкио
if (typeof(variation.icons) == 'object') {
// новая схема
curIcon = plugin.baseUrl + variation.icons[themeType] + 'icon.png';
curIcon = plugin.baseUrl + variation.icons[themeType] + '/icon@2.png';
} else {
// старая схема
if (typeof(variation.icons[0]) == 'object' ) {