Skip to content

Commit

Permalink
feat(YouTube Music - Navigation bar components): Do not use hardcoded…
Browse files Browse the repository at this point in the history
… color, `Enable black navigation bar` setting is turned off
  • Loading branch information
anddea committed Oct 23, 2024
1 parent bd55027 commit 6a05e8f
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,25 @@

import static app.revanced.integrations.shared.utils.Utils.hideViewUnderCondition;

import android.graphics.Color;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.NonNull;

import app.revanced.integrations.music.settings.Settings;
import app.revanced.integrations.shared.utils.ResourceUtils;

@SuppressWarnings("unused")
public class NavigationPatch {
private static final int colorGrey12 =
ResourceUtils.getColor("revanced_color_grey_12");
public static Enum<?> lastPivotTab;

public static int enableBlackNavigationBar() {
return Settings.ENABLE_BLACK_NAVIGATION_BAR.get() ? -16777216 : -14869219;
return Settings.ENABLE_BLACK_NAVIGATION_BAR.get()
? Color.BLACK
: colorGrey12;
}

public static void hideNavigationLabel(TextView textview) {
Expand Down

0 comments on commit 6a05e8f

Please sign in to comment.