Skip to content

优化更新弹窗的颜色#4903

Merged
Glavo merged 6 commits intoHMCL-dev:mainfrom
Glavo:color
Dec 2, 2025
Merged

优化更新弹窗的颜色#4903
Glavo merged 6 commits intoHMCL-dev:mainfrom
Glavo:color

Conversation

@Glavo
Copy link
Member

@Glavo Glavo commented Dec 2, 2025

No description provided.

@Glavo Glavo changed the title 优化更新弹窗的色彩 优化更新弹窗的颜色 Dec 2, 2025
@Glavo Glavo requested a review from Copilot December 2, 2025 13:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR optimizes the color scheme of the update notification popup (bubble) by migrating from hardcoded colors to Material Design 3 Monet theme variables. The changes ensure consistent theming across different color schemes and improve maintainability.

Key changes:

  • Replaced hardcoded colors in the update bubble with theme-aware Monet color variables
  • Added support for transparent inverse surface color (80% opacity) across the theming system
  • Simplified code by removing an unnecessary intermediate Label variable in MainPage
  • Updated UpgradeDialog to use JFXSpinner instead of ProgressIndicator for better theme consistency

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
HMCL/src/main/resources/assets/css/root.css Updated .bubble styles and .html-hyperlink to use Monet color variables instead of hardcoded colors (black, white, blue)
HMCL/src/main/resources/assets/css/blue.css Added -monet-inverse-surface-transparent-80 color definition for the default blue theme
HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java Removed unnecessary intermediate Label variable, directly using SVG icon in HBox
HMCL/src/main/java/org/jackhuang/hmcl/ui/UpgradeDialog.java Replaced ProgressIndicator with JFXSpinner and updated import statements
HMCL/src/main/java/org/jackhuang/hmcl/setting/StyleSheets.java Added generation of INVERSE_SURFACE color with 80% opacity for dynamic theme stylesheets

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Glavo Glavo merged commit 669a9df into HMCL-dev:main Dec 2, 2025
8 checks passed
@Glavo Glavo deleted the color branch December 2, 2025 13:14
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