瀏覽代碼

Post work PR #3617

maziggy 1 天之前
父節點
當前提交
2f40d4426d
共有 8 個文件被更改,包括 6 次插入 和 3 次删除
  1. 1 0
      CHANGELOG.md
  2. 二進制
      static/img/android-chrome-192x192.png
  3. 二進制
      static/img/android-chrome-512x512.png
  4. 二進制
      static/img/apple-touch-icon.png
  5. 二進制
      static/img/maskable-192x192.png
  6. 二進制
      static/img/maskable-512x512.png
  7. 2 2
      static/manifest.json
  8. 3 1
      static/sw.js

+ 1 - 0
CHANGELOG.md

@@ -15,6 +15,7 @@ All notable changes to Bambuddy will be documented in this file.
 - **Choose which printer an "Any model" job takes (#2915, requested by @bryanmahin, contributed by @Keybored02 in #3547)** — Several printers of a model can take an "Any model" job, and the one with the fewest print hours always got it. **Settings > Workflow > Printer Order for Any-Model Jobs** now chooses: the fewest print hours (the default, as before), the most (use up the machines near replacement first), the printer idle the longest (by its last finished print; one that never printed goes first), or the printers' own priority, a number in **Edit Printer** (lowest first, none last). The order only ranks printers that can take the job: a busy, offline or filament-short printer is still passed over, and preferred colours still come first. Powering a printer on with an Auto Power On plug follows the same order.
 
 ### Fixed
+- **The home screen icon has padding, so iOS and Android no longer clip the logo (#3607, contributed by @pietbrauer in #3617)** — Bambuddy's home screen icons were the bare logo on a transparent background, filling it edge to edge. iOS fills transparent pixels with black and rounds the corners itself, so on an iPhone the logo ran into the edges and its corners were cut off. On Android the same images were also the icons the launcher crops to its own shape, so it cut into the logo too. The logo, unchanged, now sits on a dark tile with room around it, and Android gets icons of its own for cropping, with the logo inside the part it always shows. On an iPhone, which keeps the icon it was added with, remove Bambuddy from the Home Screen and add it again to see the new one.
 - **Add and Edit Printer: a corrected value clears the failed connection check, and the access code can be shown (#3624, reported by @balin77)** — When the connection check on save failed, its warning stayed on screen after the IP address, serial number or access code was corrected. The only way to save was **Save anyway**, which saved without checking the corrected value, and the way to check again was **Back**, which did not say so. Changing one of those fields now clears the warning, so the normal button comes back and the next save checks the new values. **Back** is now **Check again**, which runs the check at once, for a printer that has just been switched on; **Save anyway** stays. The access code field has an eye button to show what was typed, hidden by default. Translated in all locales.
 - **A tap on a phone presses the button instead of selecting its label, and opens an AMS slot's card anywhere on the slot (#3577, reported by @balin77)** — On a phone or tablet, a tap on a button that lasted a little long or moved a little selected its label as text, with handles and the copy menu, instead of pressing it. That happened all over the app, as buttons never turned text selection off. Button labels can no longer be selected, and iOS no longer offers its long-press menu on them; text in fields and the rest of the page can still be selected and copied. An AMS slot on the printer card opened its card on hover only, which a phone only fakes after a tap, so a tap on the material name selected the word and the card stayed shut. A slot (AMS, AMS-HT or external spool, filled or empty) now opens its card on a tap anywhere on it, and a second tap, a tap elsewhere or Escape closes it, so only one is open at a time. Enter or Space opens it from the keyboard. A mouse still opens it on hover. Wiki updated.
 - **A long colour or filament name continues on the next line of a spool label (#3621, reported by @mohan456-wqs)** — Every line of a label got one line of text, cut off with "…" when it was too wide, also where the label had room below it. On the 40 × 30 box label the column beside the QR code holds only five to seven Chinese characters, so a Chinese filament name was cut after a few. A line that is too wide now continues on up to three lines, as long as every line ticked below it still gets its own; only what still doesn't fit is cut. Lines break at spaces, and between Chinese or Japanese characters, which have none, without separating a closing bracket or comma from the word before it. Labels whose lines fit look as before.

二進制
static/img/android-chrome-192x192.png


二進制
static/img/android-chrome-512x512.png


二進制
static/img/apple-touch-icon.png


二進制
static/img/maskable-192x192.png


二進制
static/img/maskable-512x512.png


+ 2 - 2
static/manifest.json

@@ -33,13 +33,13 @@
       "purpose": "any"
     },
     {
-      "src": "/img/android-chrome-192x192.png",
+      "src": "/img/maskable-192x192.png",
       "sizes": "192x192",
       "type": "image/png",
       "purpose": "maskable"
     },
     {
-      "src": "/img/android-chrome-512x512.png",
+      "src": "/img/maskable-512x512.png",
       "sizes": "512x512",
       "type": "image/png",
       "purpose": "maskable"

+ 3 - 1
static/sw.js

@@ -1,6 +1,6 @@
 // Bambuddy Service Worker
 const CACHE_NAME = 'bambuddy-v31';
-const STATIC_CACHE = 'bambuddy-static-v29';
+const STATIC_CACHE = 'bambuddy-static-v30';
 
 // Static assets to cache on install
 const STATIC_ASSETS = [
@@ -12,6 +12,8 @@ const STATIC_ASSETS = [
   '/img/android-chrome-192x192.png',
   '/img/android-chrome-512x512.png',
   '/img/apple-touch-icon.png',
+  '/img/maskable-192x192.png',
+  '/img/maskable-512x512.png',
   '/img/bambuddy_logo_dark.png',
   // Self-hosted Inter font (#1460) - cached so the UI renders offline.
   '/fonts/inter-latin.woff2',