Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
some gui theme
Browse files Browse the repository at this point in the history
  • Loading branch information
404Setup committed Sep 12, 2024
1 parent 50f3366 commit 07061a3
Show file tree
Hide file tree
Showing 94 changed files with 26 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Subject: [PATCH] Add some required dependencies and bump


diff --git a/build.gradle.kts b/build.gradle.kts
index 5ecc93bb8a1828bbe44e0cc76c72eeb41b120001..3b62a3321a72e7d67a1b413a70f986b43e6a8ef6 100644
index 5ecc93bb8a1828bbe44e0cc76c72eeb41b120001..c2df91845197547f48b9c1b60c555ca772c08324 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -27,13 +27,13 @@ dependencies {
Expand Down Expand Up @@ -34,7 +34,7 @@ index 5ecc93bb8a1828bbe44e0cc76c72eeb41b120001..3b62a3321a72e7d67a1b413a70f986b4
implementation ("me.carleslc.Simple-YAML:Simple-Yaml:1.8.4") {
exclude(group="org.yaml", module="snakeyaml")
}
@@ -85,6 +85,23 @@ dependencies {
@@ -85,6 +85,25 @@ dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.2")
// Vine end

Expand All @@ -43,6 +43,8 @@ index 5ecc93bb8a1828bbe44e0cc76c72eeb41b120001..3b62a3321a72e7d67a1b413a70f986b4
+ implementation("com.github.luben:zstd-jni:1.5.6-5")
+ implementation("org.lz4:lz4-java:1.8.0")
+
+ implementation("com.github.weisj:darklaf-core:3.0.2") // Swing Theme
+
+ val brotli4jVersion = "1.17.0"
+ implementation ( group = "com.aayushatharva.brotli4j", name = "brotli4j", version = brotli4jVersion )
+ runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-windows-x86_64", version = brotli4jVersion )
Expand Down
19 changes: 19 additions & 0 deletions patches/server/0025-GUI-Theme.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: 404Setup <[email protected]>
Date: Wed, 11 Sep 2024 23:32:42 +0800
Subject: [PATCH] GUI Theme


diff --git a/src/main/java/net/minecraft/server/gui/MinecraftServerGui.java b/src/main/java/net/minecraft/server/gui/MinecraftServerGui.java
index 27d692e370e02ba4e7ba6262195ba01988918673..385129fce24ee8a567e9d24258cd6a4e2f48da59 100644
--- a/src/main/java/net/minecraft/server/gui/MinecraftServerGui.java
+++ b/src/main/java/net/minecraft/server/gui/MinecraftServerGui.java
@@ -91,6 +91,8 @@ public class MinecraftServerGui extends JComponent {

private MinecraftServerGui(DedicatedServer server) {
this.server = server;
+ com.github.weisj.darklaf.LafManager.setTheme(new com.github.weisj.darklaf.theme.IntelliJTheme());
+ com.github.weisj.darklaf.LafManager.install();
this.setPreferredSize(new Dimension(854, 480));
this.setLayout(new BorderLayout());

Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ Subject: [PATCH] Leaf: Cache player profileResult


diff --git a/build.gradle.kts b/build.gradle.kts
index 3b62a3321a72e7d67a1b413a70f986b43e6a8ef6..68f55f9b542eafebd973bf1117393e5117e7a91c 100644
index c2df91845197547f48b9c1b60c555ca772c08324..be36af8d51818204c6f4dd4d9ec4665eb9ba7f5c 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -102,6 +102,7 @@ dependencies {
@@ -104,6 +104,7 @@ dependencies {
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-osx-x86_64", version = brotli4jVersion )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-osx-aarch64", version = brotli4jVersion )
// Vine end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Subject: [PATCH] Paper PR Update Velocity natives
Source in https://github.com/PaperMC/Paper/pull/11347

diff --git a/build.gradle.kts b/build.gradle.kts
index 68f55f9b542eafebd973bf1117393e5117e7a91c..e0aada5b3872989466d9b01bca39cfe68d4aff0f 100644
index be36af8d51818204c6f4dd4d9ec4665eb9ba7f5c..1553eb2b53eaa7155330fac13603a11eb1b33859 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -41,7 +41,7 @@ dependencies {
Expand Down

0 comments on commit 07061a3

Please sign in to comment.