Skip to content

Commit

Permalink
feat: Add ability to customize colorBackground in built-in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
aikrq committed Nov 30, 2024
1 parent 79b4175 commit 947d069
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/src/main/java/a/a/a/lC.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public static HashMap<String, Object> b(String str) {

public static void b(String str, HashMap<String, Object> hashMap) {
HashMap<String, Object> hashMap2 = hashMap;
String str1 = "color_background";
String str2 = "color_control_highlight";
String str3 = "color_primary_dark";
String str4 = "color_primary";
Expand Down Expand Up @@ -208,6 +209,7 @@ public static void b(String str, HashMap<String, Object> hashMap) {
a.put(str5, hashMap2.get(str5));
a.put(str4, hashMap2.get(str4));
a.put(str3, hashMap2.get(str3));
a.put(str1, hashMap2.get(str1));
path = str2;
a.put(path, hashMap2.get(path));
path = str15;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/mod/hey/studios/util/ProjectFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static int getDefaultColor(String color) {

return switch (color) {
case COLOR_CONTROL_HIGHLIGHT -> ctx.getColor(android.R.color.system_accent1_100);
case COLOR_BACKGROUND -> ctx.getColor(android.R.color.system_neutral2_600);
case COLOR_BACKGROUND -> ctx.getColor(android.R.color.system_neutral1_0);
default -> ctx.getColor(android.R.color.system_accent1_600);
};
} else {
Expand Down

0 comments on commit 947d069

Please sign in to comment.