From cbb6f63b9dc3212ac4f241022af0efc4e88a3543 Mon Sep 17 00:00:00 2001 From: kyuketski Date: Sun, 31 Aug 2025 16:04:02 +0300 Subject: [PATCH] refactor(ui): restructure pixel filter controls and improve descriptions - Replace old notification toggle structure with a new settings toggle structure for pixel filters. - Add detailed descriptions for each pixel filter option (white, transparent, unavailable). - Standardize the styling of toggle titles and descriptions using theme-based colors. - Introduce a flexbox layout for pixel filter controls to improve spacing and alignment. - Update language file keys and values for clarity and consistency. - Add console logs and user alerts for toggle state changes to enhance feedback. - Ensure toggle states are synchronized with the application state on initialization. Benefits: - Improves usability by providing clear descriptions for each option. - Enhances visual consistency with theme-based styling. - Simplifies maintenance with a unified toggle structure. Note: - Ensure all themes define `text` and `highlight` properties to avoid fallback styling issues. --- Auto-Image.js | 104 ++++++++++++++++++++++++++++++------------ auto-image-styles.css | 3 ++ lang/en.json | 8 +++- 3 files changed, 84 insertions(+), 31 deletions(-) diff --git a/Auto-Image.js b/Auto-Image.js index 281b221..462094e 100644 --- a/Auto-Image.js +++ b/Auto-Image.js @@ -3640,16 +3640,55 @@ ${Utils.t('paintOptions')} -
- -
@@ -3797,25 +3836,6 @@ - -
- -
-