smaller icons
parent
a954cb5d48
commit
823a8b44fa
|
|
@ -42,7 +42,7 @@
|
||||||
Bangle.drawWidgets = () => { };
|
Bangle.drawWidgets = () => { };
|
||||||
Bangle.loadWidgets = () => { };
|
Bangle.loadWidgets = () => { };
|
||||||
|
|
||||||
const ITEM_HEIGHT = 120;
|
const ITEM_HEIGHT = 110;
|
||||||
|
|
||||||
E.showScroller({
|
E.showScroller({
|
||||||
h: ITEM_HEIGHT,
|
h: ITEM_HEIGHT,
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
let icon = apps[idx].icon;
|
let icon = apps[idx].icon;
|
||||||
let iconWidth = icon.width || 48;
|
let iconWidth = icon.width || 48;
|
||||||
let iconHeight = icon.height || 48;
|
let iconHeight = icon.height || 48;
|
||||||
let maxSize = 90;
|
let maxSize = 80;
|
||||||
let scale = Math.min(maxSize / iconWidth, maxSize / iconHeight);
|
let scale = Math.min(maxSize / iconWidth, maxSize / iconHeight);
|
||||||
let scaledHeight = Math.floor(iconHeight * scale);
|
let scaledHeight = Math.floor(iconHeight * scale);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "cutelauncher",
|
"id": "cutelauncher",
|
||||||
"name": "Cute Launcher",
|
"name": "Cute Launcher",
|
||||||
"version": "0.06",
|
"version": "0.07",
|
||||||
"description": "A simple launcher app for Bangle.js 2 that makes use of the full touchscreen",
|
"description": "A simple launcher app for Bangle.js 2 that makes use of the full touchscreen",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue