Commit Graph
21 Commits
Author SHA1 Message Date
MiraclePatrickLumowa 960818759f Quick fix 2025-09-02 00:34:03 +08:00
kyuketski 0ad854d92f fix(ui): ensure number inputs are visible in light theme
- Replace `wplace-random-batch-input` and `wplace-block-size-input` classes with `wplace-settings-number-input`.
- Update CSS to consolidate styles under `wplace-settings-number-input`.
- Refactor theme variables for background and border colors to use explicit hex values, fixing visibility issue in light theme.
- Remove redundant `.wplace-block-size-input` styles.

Benefits:
- Number inputs are now correctly visible in all themes, including light.
- Reduces duplication in CSS by consolidating input styles.
- Improves consistency across input elements in the UI.
- Enhances clarity of theme variable usage with explicit naming.

Note:
- Ensure all components previously using `wplace-random-batch-input` or `wplace-block-size-input` are tested for visual consistency.
2025-09-01 14:11:26 +03:00
kyuketski 582e38d93a fix(ui): enable theme variable and fix select styling
- Activate CSS variable settings for theming in `Auto-Image.js`.
- Update dropdown class from `wplace-selector` to `wplace-settings-select`.
- Remove inline styles from the "Apply Settings" button.
- Delete obsolete `.wplace-selector` CSS rules from `auto-image-styles.css`.

Benefits:
- Ensures consistent theming across components.
- Simplifies styling management.
- Improves maintainability by removing inline styles.

Note:
- Update dependent components to use the new `wplace-settings-select` class.
2025-09-01 14:11:26 +03:00
kyuketski d408460903 style(theme): standardize and optimize CSS styling across themes
- Replace CamelCase animation names with kebab-case (e.g., `slideIn` → `slide-in`).
- Update theme class names to remove double hyphens (e.g., `wp-place-theme--classic` → `wp-place-theme-classic`).
- Standardize color syntax to use modern `rgb()` format with percentage-based alpha values.
- Replace long-form hex colors with shorthand where applicable (e.g., `#ffffff` → `#fff`).
- Simplify redundant or theme-specific styles and consolidate them into single rules.
- Modularize theme-specific styling comments and ensure consistent naming conventions.
- Refactor media queries, gradients, and keyframe animations for improved readability and performance.
- Add missing button hover styles and subtle text shadow for improved contrast.
- Introduce pixel-blinking animation and neon glow effects for the neon theme.
- Optimize slider, shadow, and text variants for consistency and maintainability.

Benefits:
- Improves consistency and readability across CSS and JavaScript files.
- Enhances maintainability by modularizing theme-specific styles and adopting modern syntax.
- Reduces redundancy and file size by eliminating unused or repetitive rules.
- Aligns with modern CSS standards for better compatibility and performance.

Note:
- Ensure all theme files are updated in the `feat-external-lang` branch to avoid broken imports.
- Verify browser compatibility for `rgb` with alpha values and RGB hex alpha syntax if targeting older environments.
- Test for unintended visual changes due to removed CSS variables or consolidated rules.
2025-09-01 14:11:26 +03:00
kyuketski cbb6f63b9d 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.
2025-09-01 14:11:25 +03:00
kyuketski 5aa0a2a001 refactor(ui): centralize and standardize coordinate and theme settings in CONFIG
- Move coordinate generation defaults (mode, direction, snake pattern, block size) and theme settings to CONFIG object.
- Replace hardcoded values with references to CONFIG for consistency across coordinate mode, direction, snake pattern, block width, and height.
- Add `paintUnavailablePixels` toggle to replace `strictSkipUnavailable` functionality and introduce a new "Paint Unavailable" toggle in the UI.
- Refactor `updateCoordinateUI` function to accept parameters explicitly, move it to `Utils`, and dynamically toggle UI controls based on mode.
- Standardize checkbox and slider styles by replacing inline ternary operators and `.wplace-blue-marble-checkbox` with cleaner logic and reusable `.wplace-settings-checkbox`.
- Introduce new CSS class `.wplace-pixel-filter-controls` for pixel filter UI.
- Update migration and theme selection logic to use CONFIG defaults and `CONFIG.THEMES` for backward compatibility.
- Remove redundant inline conditional checks for default values in settings initialization.

Benefits:
- Improves maintainability by centralizing configuration settings and default values in CONFIG.
- Reduces duplication of hardcoded values and UI update logic across the codebase.
- Enhances flexibility for future UI updates, theme changes, and clarity of painting logic.
- Aligns checkbox styling with reusable classes for consistency.

Note:
- Ensure CONFIG is properly initialized and all themes define required CONFIG properties to avoid runtime errors.
2025-09-01 14:11:24 +03:00
kyuketski bf6da6280c refactor(ui): standardize and modularize settings UI components
- Replace inline styles with reusable CSS classes for better maintainability.
- Standardize toggle, select, and input components under consistent naming conventions (`wplace-settings-*`).
- Extract icon styling into dedicated CSS rules for consistency.
- Introduce grid layout for block size controls to improve responsiveness.
- Remove redundant styles and consolidate common patterns into shared classes.

Benefits:
- Improves code readability and reduces duplication.
- Enhances theming support by centralizing style definitions.
- Simplifies future updates to the settings UI structure.

Note:
- Ensure all theme variables (`--wplace-*`) are correctly defined in the respective theme files.
2025-09-01 14:11:23 +03:00
kyuketski 12d9d9cbbb style: update button radius and section layout in UI styles
Updated CSS variables for button border-radius across themes and adjusted layout spacing for sections and settings footer.

* Introduced `--wplace-btn-radius` for consistent button rounding in all themes.
* Reduced margins and padding for `.wplace-section` and `.wplace-status-section` for tighter layout.
* Added collapsible section behavior with arrow rotation and hidden controls.
* Made settings footer sticky with proper background and padding.
* Minor spacing and formatting fixes for better visual alignment.
2025-09-01 14:09:50 +03:00
MiraclePatrickLumowa bcec4e5ebe Revert "update urls && localStorage base url for extern files" 2025-08-31 19:30:33 +08:00
MiraclePatrickLumowa f332d5b5ad Merge pull request #91 from 7est/0831
Add Checkbox to Control Transparent Pixel Drawing
2025-08-31 19:21:26 +08:00
Staninna ef7431cf46 Reapply "Update urls && baseurl in localstorage"
This reverts commit f74e54458d.
2025-08-31 12:18:22 +02:00
MiraclePatrickLumowa f74e54458d Revert "Update urls && baseurl in localstorage" 2025-08-31 02:35:15 +08:00
Staninna bf29dfeb9e dynamic base url 2025-08-30 20:03:16 +02:00
Staninna 09272dbde1 hotfix update urls 2025-08-30 19:53:39 +02:00
7est a5bb699da8 Group paint options in settings 2025-08-30 19:25:29 +09:00
Staninna d1f6cdb179 Reapply "Decoupled css part 2"
This reverts commit 1acb3955a0.
2025-08-28 17:02:52 +02:00
MiraclePatrickLumowa 1acb3955a0 Revert "Decoupled css part 2" 2025-08-28 13:21:31 +08:00
Staninna 59ba11044a update urls 2025-08-27 19:31:52 +02:00
Staninna 9165c5b750 Are we revived? Restored all the mysteriously disappeared code 2025-08-27 19:24:59 +02:00
Staninna 42ad959e63 this one was also gone 2025-08-25 20:12:27 +02:00
Staninna 5f78e58e45 test decoupled css 2025-08-24 22:36:30 +02:00