-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Extract app specific light/dark mode logic and colors
- Loading branch information
1 parent
30ce00f
commit 5d5029e
Showing
3 changed files
with
128 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...app/revanced/integrations/youtube/settings/preference/ReVancedYouTubeAboutPreference.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package app.revanced.integrations.youtube.settings.preference; | ||
|
||
import android.content.Context; | ||
import android.util.AttributeSet; | ||
|
||
import app.revanced.integrations.shared.settings.preference.ReVancedAboutPreference; | ||
import app.revanced.integrations.youtube.ThemeHelper; | ||
|
||
@SuppressWarnings("unused") | ||
public class ReVancedYouTubeAboutPreference extends ReVancedAboutPreference { | ||
|
||
public int getForegroundColor() { | ||
return ThemeHelper.getCurrentForegroundColor(); | ||
} | ||
|
||
public int getBackgroundColor() { | ||
return ThemeHelper.getCurrentBackgroundColor(); | ||
} | ||
|
||
public ReVancedYouTubeAboutPreference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { | ||
super(context, attrs, defStyleAttr, defStyleRes); | ||
} | ||
public ReVancedYouTubeAboutPreference(Context context, AttributeSet attrs, int defStyleAttr) { | ||
super(context, attrs, defStyleAttr); | ||
} | ||
public ReVancedYouTubeAboutPreference(Context context, AttributeSet attrs) { | ||
super(context, attrs); | ||
} | ||
public ReVancedYouTubeAboutPreference(Context context) { | ||
super(context); | ||
} | ||
} |