diff --git a/assets/UI/Homepage.fxml b/assets/UI/Homepage.fxml
index e9c0d944..6365586e 100644
--- a/assets/UI/Homepage.fxml
+++ b/assets/UI/Homepage.fxml
@@ -32,7 +32,7 @@
-
+
@@ -42,7 +42,7 @@
-
+
@@ -52,7 +52,7 @@
-
+
@@ -77,13 +77,13 @@
-
-
-
+
+
+
diff --git a/assets/UI/Main.css b/assets/UI/Main.css
index e60cbbb9..048033ae 100644
--- a/assets/UI/Main.css
+++ b/assets/UI/Main.css
@@ -20,7 +20,8 @@
/* Drop shadow for Nodes */
.shadowed {
--fx-effect: dropshadow(gaussian, #00000040, 10, 0.2, 0, 1);
+/* Note: dropshadow(type, color, radius, spread, x, y) */
+-fx-effect: dropshadow(gaussian, #00000040, 10, 0.1, 0, 0.5);
}
/* Fluorescent strokes for Shapes */
@@ -125,7 +126,7 @@ JFXButton {
-fx-border-style: solid;
}
-.menu-btn-active, .menu-btn-active:hover, .menu-btn-active:focused {
+.menu-btn-active {
/* Active */
-fx-text-fill: #FFFFFF;
-fx-background-color: #204880;
@@ -136,7 +137,7 @@ JFXButton {
-fx-fill: #204880;
}
-.menu-btn-active SVGPath, .menu-btn-active:hover SVGPath, .menu-btn-active:focused SVGPath {
+.menu-btn-active SVGPath {
/* Hover & Active */
-fx-fill: #FFFFFF;
}
@@ -247,27 +248,27 @@ JFXButton {
-fx-text-fill: #606060;
}
-.Info-primary {
+.info-primary {
-fx-font-size: 16px;
-fx-text-fill: #202020;
-fx-font-weight: bold;
-fx-label-padding: 4px 2px 4px 2px;
}
-.Info-secondary {
+.info-secondary {
-fx-font-size: 12px;
-fx-font-weight: normal;
-fx-text-fill: #808080;
-fx-label-padding: 2px;
}
-.Info-tag {
+.info-tag {
-fx-font-size: 10px;
-fx-background-radius: 6px;
-fx-label-padding: 2px 4px 2px 4px;
}
-.Info-tag-theme {
+.info-tag-theme {
-fx-text-fill: #FFFFFF;
-fx-background-color: #4D7999;
}
@@ -434,11 +435,11 @@ ProgressBar > .bar, ProgressBar:indeterminate > .bar{
-fx-padding: 0;
}
+.scroll-pane:focused, .scroll-pane .corner {
+-fx-background-insets: 0;
+}
+
.scroll-v {
-fx-hbar-policy: never;
-fx-vbar-policy: as-needed;
}
-
-.scroll-pane:focused, .scroll-pane .corner {
--fx-background-insets: 0;
-}
diff --git a/build.gradle b/build.gradle
index 571b4808..99528f91 100644
--- a/build.gradle
+++ b/build.gradle
@@ -19,7 +19,7 @@ allprojects {
apply plugin: "java-library"
apply plugin: "org.openjfx.javafxplugin"
- version = "2.4.0"
+ version = "2.4.1"
ext {
// App Metadata
appName = "ArkPets"
diff --git a/core/src/cn/harryh/arkpets/Const.java b/core/src/cn/harryh/arkpets/Const.java
index 5066b8b7..b997cf7e 100644
--- a/core/src/cn/harryh/arkpets/Const.java
+++ b/core/src/cn/harryh/arkpets/Const.java
@@ -11,7 +11,7 @@
*/
public final class Const {
// App version
- public static final Version appVersion = new Version(2, 4, 0);
+ public static final Version appVersion = new Version(2, 4, 1);
// App name
public static final String appName = "ArkPets";
diff --git a/core/src/cn/harryh/arkpets/assets/AssetItem.java b/core/src/cn/harryh/arkpets/assets/AssetItem.java
index 22a210cf..03aac83d 100644
--- a/core/src/cn/harryh/arkpets/assets/AssetItem.java
+++ b/core/src/cn/harryh/arkpets/assets/AssetItem.java
@@ -207,9 +207,9 @@ public interface PropertyExtractor extends Function> {
@Override
Set apply(AssetItem assetItem);
- PropertyExtractor ASSET_ITEM_TYPE = item -> Set.of(item.type);
- PropertyExtractor ASSET_ITEM_STYLE = item -> Set.of(item.style);
- PropertyExtractor ASSET_ITEM_SKIN_GROUP_NAME = item -> Set.of(item.skinGroupName);
- PropertyExtractor ASSET_ITEM_SORT_TAGS = item -> new HashSet<>(item.sortTags.toJavaList(String.class));
+ PropertyExtractor ASSET_ITEM_TYPE = item -> item.type == null ? Set.of() : Set.of(item.type);
+ PropertyExtractor ASSET_ITEM_STYLE = item -> item.style == null ? Set.of() : Set.of(item.style);
+ PropertyExtractor ASSET_ITEM_SKIN_GROUP_NAME = item -> item.skinGroupName == null ? Set.of() : Set.of(item.skinGroupName);
+ PropertyExtractor ASSET_ITEM_SORT_TAGS = item -> new HashSet<>(item.sortTags.toJavaList(String.class));
}
}
diff --git a/docs/scripts/ExePacking.iss b/docs/scripts/ExePacking.iss
index 6112eb1f..f67db6d5 100644
--- a/docs/scripts/ExePacking.iss
+++ b/docs/scripts/ExePacking.iss
@@ -4,7 +4,7 @@
; Download Inno Setup: https://jrsoftware.org/isdl.php
#define MyAppName "ArkPets"
-#define MyAppVersion "2.4.0"
+#define MyAppVersion "2.4.1"
#define MyAppPublisher "Harry Huang"
#define MyAppURL "https://arkpets.harryh.cn/"