added aesthetic lines

master
kkayam 2025-02-15 13:02:24 +00:00
parent a0e239b353
commit 54ee37b95f
2 changed files with 6 additions and 3 deletions

View File

@ -82,9 +82,12 @@
// Update initScrollIndicator to use the new function
function initScrollIndicator() {
overlay.setBgColor(g.theme.bg).clear();
const r = 10; // corner radius
const points = createRoundedRectPoints(0, 0, overlayWidth, overlayHeight, r);
const points = createRoundedRectPoints(0, 0, overlayWidth, overlayHeight, 10);
overlay.setColor(g.theme.fg2).fillPoly(points);
// Add horizontal lines for scroll thumb aesthetic
overlay.setColor(g.theme.bg2);
overlay.fillRect(8, overlayHeight / 3 - 1, overlayWidth - 8, overlayHeight / 3 + 1);
overlay.fillRect(8, overlayHeight * 2 / 3 - 1, overlayWidth - 8, overlayHeight * 2 / 3 + 1);
}
// Function to update scroll indicator

View File

@ -1,7 +1,7 @@
{
"id": "cutelauncher",
"name": "Cute Launcher",
"version": "0.15",
"version": "0.16",
"description": "A simple launcher app for Bangle.js 2 that makes use of the full touchscreen",
"icon": "app.png",
"type": "launch",