修复添加游戏文件夹页面缺少灰色背景的问题 (#4065)

This commit is contained in:
辞庐
2025-07-06 15:46:08 +08:00
committed by GitHub
parent c669026312
commit 064b39d753

View File

@@ -61,6 +61,8 @@ public final class ProfilePage extends BorderPane implements DecoratorPage {
* @param profile null if creating a new profile. * @param profile null if creating a new profile.
*/ */
public ProfilePage(Profile profile) { public ProfilePage(Profile profile) {
getStyleClass().add("gray-background");
this.profile = profile; this.profile = profile;
String profileDisplayName = Optional.ofNullable(profile).map(Profiles::getProfileDisplayName).orElse(""); String profileDisplayName = Optional.ofNullable(profile).map(Profiles::getProfileDisplayName).orElse("");