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

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
LisoUseInAIKyrios committed Oct 15, 2024
1 parent 55ec5d1 commit 8821ffe
Showing 1 changed file with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public boolean isModern() {
CURRENT_TYPE == MODERN_1 && Settings.MINIPLAYER_HIDE_REWIND_FORWARD.get();

private static final boolean MINIPLAYER_ROUNDED_CORNERS_ENABLED =
CURRENT_TYPE.isModern() && Settings.MINIPLAYER_ROUNDED_CORNERS.get();
Settings.MINIPLAYER_ROUNDED_CORNERS.get();

/**
* Remove a broken and always present subtitle text that is only
Expand Down Expand Up @@ -235,6 +235,20 @@ public static boolean enableMiniplayerDragAndDrop(boolean original) {
return DRAG_AND_DROP_ENABLED;
}


/**
* Injection point.
*/
public static boolean setRoundedCorners(boolean original) {
if (original) Logger.printDebug(() -> "setRoundedCorners original: " + true);

if (CURRENT_TYPE == MODERN_1 || CURRENT_TYPE == MODERN_2 || CURRENT_TYPE == MODERN_3) {
return MINIPLAYER_ROUNDED_CORNERS_ENABLED;
}

return original;
}

/**
* Injection point.
*/
Expand Down Expand Up @@ -266,15 +280,6 @@ public static boolean setDropShadow(boolean original) {
return original;
}

/**
* Injection point.
*/
public static boolean setRoundedCorners(boolean original) {
if (original) Logger.printDebug(() -> "setRoundedCorners original: " + true);

return MINIPLAYER_ROUNDED_CORNERS_ENABLED;
}

/**
* Injection point.
*/
Expand Down

0 comments on commit 8821ffe

Please sign in to comment.