Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public DownloadSettingsPage() {

{
var downloadSource = new ComponentList();
downloadSource.getStyleClass().add("card-non-transparent");
{

var autoChooseDownloadSource = new LineToggleButton();
Expand Down
2 changes: 2 additions & 0 deletions HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXPopup;
import com.jfoenix.effects.JFXDepthManager;
import javafx.animation.KeyFrame;
import javafx.animation.KeyValue;
import javafx.animation.Timeline;
Expand Down Expand Up @@ -151,6 +152,7 @@ public final class MainPage extends StackPane implements DecoratorPage {
announcementCard.getChildren().setAll(titleBar, body);
announcementCard.setSpacing(16);
announcementCard.getStyleClass().addAll("card", "announcement");
JFXDepthManager.setDepth(announcementCard, 2);

VBox announcementBox = new VBox(16);
announcementBox.setPadding(new Insets(15));
Expand Down
6 changes: 0 additions & 6 deletions HMCL/src/main/resources/assets/css/root.css
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,6 @@
}

.installer-item-wrapper:card {
-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, 0.26), 10, 0.12, -1, 2);
}

.installer-item-wrapper .installer-item:list-item {
Expand Down Expand Up @@ -964,7 +963,6 @@

.options-list {
-fx-background-color: transparent;
-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, 0.26), 5, 0.06, -0.5, 1);
}

.depth-0 {
Expand Down Expand Up @@ -999,16 +997,12 @@
-fx-background-color: -monet-surface-container-low-transparent-80;
-fx-background-radius: 4;
-fx-padding: 8px;

-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, 0.26), 10, 0.12, -1, 2);
}

.card-non-transparent {
-fx-background-color: -monet-surface-container-low;
-fx-background-radius: 4;
-fx-padding: 8px;

-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, 0.26), 5, 0.06, -0.5, 1);
}

.card-list {
Expand Down