From 757a60d15d460c034a1639762f9e0a72b0fa629f Mon Sep 17 00:00:00 2001 From: 7015725 Date: Sat, 23 May 2026 05:36:15 +0800 Subject: [PATCH] Align ToolApp back preview shell layout --- code/th_15_extra.js | 7 +++++-- manifest.json | 6 +++--- manifest.sig | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/code/th_15_extra.js b/code/th_15_extra.js index 19fffcf..4cd0421 100644 --- a/code/th_15_extra.js +++ b/code/th_15_extra.js @@ -852,6 +852,9 @@ FloatBallAppWM.prototype.buildToolAppPreviewBody = function(entry) { } catch(eSpec) { spec = null; } + var shellPad = spec ? spec.shellPadding : this.dp(6); + var shellTopPad = shellPad; + var outerRadius = spec ? spec.outerRadius : this.dp(26); var topBarHeight = spec ? spec.topBarHeight : this.dp(56); var isDark = this.isDarkTheme(); @@ -862,8 +865,8 @@ FloatBallAppWM.prototype.buildToolAppPreviewBody = function(entry) { var body = new android.widget.LinearLayout(context); body.setOrientation(android.widget.LinearLayout.VERTICAL); - body.setPadding(this.dp(6), this.dp(6), this.dp(6), this.dp(8)); - body.setBackground(this.ui.createStrokeDrawable(T.bg, this.withAlpha(T.stroke, isDark ? 0.42 : 0.70), this.dp(1), this.dp(26))); + body.setPadding(shellPad, shellTopPad, shellPad, shellPad); + body.setBackground(this.ui.createStrokeDrawable(T.bg, this.withAlpha(T.stroke, isDark ? 0.30 : 0.46), this.dp(1), outerRadius)); try { body.setClipToOutline(true); } catch(eClip) {} try { body.setElevation(this.dp((spec && (spec.isExpandedWidth || spec.isWideWidth)) ? 7 : 10)); } catch (eElev) {} diff --git a/manifest.json b/manifest.json index 814dbca..9037787 100644 --- a/manifest.json +++ b/manifest.json @@ -70,8 +70,8 @@ "size": 20484 }, "th_15_extra.js": { - "sha256": "a8956615053d1147001103b4ed69e3f18ccb09a760314a5f8f1c21a3b5b8e8c5", - "size": 128551 + "sha256": "2c4e560b793ee54f9338cc44bd41a056cbf8688560f9494920322c88d04be219", + "size": 128697 }, "th_16_entry.js": { "sha256": "652aa70214a9419923785e528a067d3828094fde48fc9c8c57cfda1e08206e25", @@ -80,5 +80,5 @@ }, "keyId": "toolhub-targets-2026-rsa3072", "schema": 2, - "version": 20260522212705 + "version": 20260522213610 } diff --git a/manifest.sig b/manifest.sig index a04c57e..d74ae0a 100644 --- a/manifest.sig +++ b/manifest.sig @@ -1 +1 @@ -VCM+YNBx7CB7ZIChrltA70VVOKjn9gGgBOaeXEoN0VL88UoyPlGZ4W74cORCUBF2JpcIEr5WE8ueDl3IGUR1OGQDopoIuOI6wXy/doducwtjJrZoPB5p8JW4iasBerss97lKc+r/B7N5n1P33vRvpezXMwEBERG9Ey0gSUR/SWuozsW8fWk9oTWt0jgQQx+fJCmb2eSePm2XRlPWPLKT36XOJGWq/knlmhIOlW3/2VusDzN8rDfSxpEPLTFOZPav9PYh+6MBaJjV2+JLiROH60XW0AFnBMxmL2/c4BzzkC9+10sc3ZJUq3V8C30NZpXYiTfDN0i5yCEbd3OGrQb3soqZbqHWVhaWiFCH7nLYltWeTltHtb/obXcG4Wi3YPYjme7xGrPxO1dAid3U1/q4ajM4L04riij+2BHU4+uBCNstpIi8nx+3R8k7OYsDmp/tpFLDC9q1ib+UUQOcCAT7k9Pw71jdgJKKNcqyZb17zm0fCqbkiNvh6pz2hRX/533Y +ipKGsoLWacyAl7V4tyWIsocOwZpxQujuC2v/Rg4bMJ6FpSmLI7KdwL9RFIWw4qRHN9/37S+0pkIjGj1FQeJ9dvnw80po2GI9hcZufG6Us4CTWeJrdEuGCTBI38yvPduhl/Wmdg1aGLVx9GqIcG+ALOLXslaHt2WVVgJQMShiGsZwgNRbFQ0uXhvT6EHzz3o09CPoF1E0xelI2r6EVlCX+iJtbvbHlsuCtmidPEHICK1ks6AsDT+O9YyFqEEDw0KP0KBQ3Y9ej+3RfmwNOrvKrVsm3Y3glb1biKnlXfSIjlArr/mQK/C6snUV3vX4hsu6lYnyhQQoSpMvtbZpjsf5yGFPKkx11Dqhc1MeVSTszhCEUP13jPS95EEv9CToV0k1B4kI9uFTP57Jityvx5NruFarBUvEvzyJKATb7o4a15hdwDfyLK+1ei7xLxWr/j5qOYtbvMgAf+KnmiRQauJS4az23DLMLypr0Jor4oBXL/SUCXCX2e0IK0Om/e54bE9v