Skip to content

fix: replace Cancel button style with explicit border width#529

Merged
LiuLikeQian merged 6 commits into
mainfrom
feature_filament_color_adaptation
Jun 22, 2026
Merged

fix: replace Cancel button style with explicit border width#529
LiuLikeQian merged 6 commits into
mainfrom
feature_filament_color_adaptation

Conversation

@PILIPALA030

Copy link
Copy Markdown
Collaborator

Description

  • Remove SetStyle(ButtonStyle::Regular, ButtonType::Choice) to avoid
    overriding the custom border/background color settings
  • Add SetBorderWidth(FromDIP(1)) so the Cancel button retains a
    visible outline matching the D1D5DC border color

PILIPALA030 and others added 6 commits June 17, 2026 20:45
This PR implements the official filament color management system for Snapmaker U1 printers, enabling users to select filament colors from an official color library with multi-color (dual-segment/gradient) visual support.

Add Snapmaker official filament color management with multi-color metadata,
official color selection dialog, and persisted self-described color data.

Add filament color data structures, mode normalization, and hex/multi-color helpers
Load official filament color catalog and match by material name with filament ID fallback
Support official color selection, localized color names, SKU display, and custom color fallback
Render single, segmented, and gradient filament colors in preset lists and paint toolbars
Sync multi-color fields through preset/project configuration and preprint data
Avoid writing Snapmaker-only SKU data into 3MF project settings
Preserve existing mixed-filament badge behavior while adding official color bitmap rendering
# Conflicts:
#	localization/i18n/zh_CN/Snapmaker_Orca_zh_CN.po
Rename private member variables to better indicate their types:
- _filaments -> _filamentInfoVec
- _filamentIndexById -> _filamentIndexByIdMap
- _filamentIndexByName -> _filamentIndexByNameMap
- Remove SetStyle(ButtonStyle::Regular, ButtonType::Choice) to avoid
  overriding the custom border/background color settings
- Add SetBorderWidth(FromDIP(1)) so the Cancel button retains a
  visible outline matching the D1D5DC border color
…ent_color_adaptation

# Conflicts:
#	src/slic3r/GUI/FilamentColorDialog.cpp
#	src/slic3r/GUI/MixedFilamentBadge.cpp
#	src/slic3r/GUI/MixedFilamentBadge.hpp
- Remove SetStyle(ButtonStyle::Regular, ButtonType::Choice) to avoid
  overriding the custom border/background color settings
- Add SetBorderWidth(FromDIP(1)) so the Cancel button retains a
  visible outline matching the D1D5DC border color
@PILIPALA030 PILIPALA030 marked this pull request as ready for review June 22, 2026 12:10
@LiuLikeQian LiuLikeQian merged commit e8a518e into main Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants