diff --git a/app/src/main/java/org/schabi/newpipe/fragments/MainFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/MainFragment.java
index 1a5e5aa45..ee50f9665 100644
--- a/app/src/main/java/org/schabi/newpipe/fragments/MainFragment.java
+++ b/app/src/main/java/org/schabi/newpipe/fragments/MainFragment.java
@@ -9,8 +9,6 @@ import static com.google.android.material.tabs.TabLayout.INDICATOR_GRAVITY_TOP;
import android.content.Context;
import android.content.SharedPreferences;
-import android.content.res.ColorStateList;
-import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
@@ -21,7 +19,6 @@ import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
-import androidx.annotation.ColorInt;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.ActionBar;
@@ -44,7 +41,6 @@ import org.schabi.newpipe.settings.tabs.Tab;
import org.schabi.newpipe.settings.tabs.TabsManager;
import org.schabi.newpipe.util.NavigationHelper;
import org.schabi.newpipe.util.ServiceHelper;
-import org.schabi.newpipe.util.ThemeHelper;
import org.schabi.newpipe.views.ScrollableTabLayout;
import java.util.ArrayList;
@@ -242,18 +238,6 @@ public class MainFragment extends BaseFragment implements TabLayout.OnTabSelecte
tabLayout.setLayoutParams(tabParams);
viewPager.setLayoutParams(pagerParams);
-
- // change the background and icon color of the tab layout:
- // service-colored at the top, app-background-colored at the bottom
- tabLayout.setBackgroundColor(ThemeHelper.resolveColorFromAttr(requireContext(),
- bottom ? android.R.attr.windowBackground : R.attr.colorPrimary));
-
- @ColorInt final int iconColor = bottom
- ? ThemeHelper.resolveColorFromAttr(requireContext(), android.R.attr.colorAccent)
- : Color.WHITE;
- tabLayout.setTabRippleColor(ColorStateList.valueOf(iconColor).withAlpha(32));
- tabLayout.setTabIconTint(ColorStateList.valueOf(iconColor));
- tabLayout.setSelectedTabIndicatorColor(iconColor);
}
@Override
diff --git a/app/src/main/java/org/schabi/newpipe/ui/components/common/ScaffoldWithToolbar.kt b/app/src/main/java/org/schabi/newpipe/ui/components/common/ScaffoldWithToolbar.kt
index 18139c7a6..acdcc867d 100644
--- a/app/src/main/java/org/schabi/newpipe/ui/components/common/ScaffoldWithToolbar.kt
+++ b/app/src/main/java/org/schabi/newpipe/ui/components/common/ScaffoldWithToolbar.kt
@@ -8,11 +8,9 @@ import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
-import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Scaffold
import androidx.compose.material3.Text
import androidx.compose.material3.TopAppBar
-import androidx.compose.material3.TopAppBarDefaults
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
@@ -28,14 +26,6 @@ fun ScaffoldWithToolbar(
topBar = {
TopAppBar(
title = { Text(text = title) },
- // TODO decide whether to use default colors instead
- colors = TopAppBarDefaults.topAppBarColors(
- containerColor = MaterialTheme.colorScheme.primaryContainer,
- scrolledContainerColor = MaterialTheme.colorScheme.primaryContainer,
- navigationIconContentColor = MaterialTheme.colorScheme.onPrimaryContainer,
- titleContentColor = MaterialTheme.colorScheme.onPrimaryContainer,
- actionIconContentColor = MaterialTheme.colorScheme.onPrimaryContainer,
- ),
navigationIcon = {
IconButton(onClick = onBackClick) {
Icon(
diff --git a/app/src/main/java/org/schabi/newpipe/ui/screens/AboutScreen.kt b/app/src/main/java/org/schabi/newpipe/ui/screens/AboutScreen.kt
index 673a22892..c5d906c34 100644
--- a/app/src/main/java/org/schabi/newpipe/ui/screens/AboutScreen.kt
+++ b/app/src/main/java/org/schabi/newpipe/ui/screens/AboutScreen.kt
@@ -44,10 +44,7 @@ fun AboutScreen(padding: PaddingValues) {
tabIndex = pagerState.currentPage
}
- TabRow(
- selectedTabIndex = tabIndex,
- containerColor = MaterialTheme.colorScheme.primaryContainer
- ) {
+ TabRow(selectedTabIndex = tabIndex) {
TITLES.forEachIndexed { index, titleId ->
Tab(
text = { Text(text = stringResource(titleId)) },
diff --git a/app/src/main/res/layout-land/activity_player_queue_control.xml b/app/src/main/res/layout-land/activity_player_queue_control.xml
index a5df5e566..a4bd30035 100644
--- a/app/src/main/res/layout-land/activity_player_queue_control.xml
+++ b/app/src/main/res/layout-land/activity_player_queue_control.xml
@@ -12,8 +12,8 @@
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar"
- app:popupTheme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar">
+ android:theme="@style/ThemeOverlay.Material3.ActionBar"
+ app:popupTheme="@style/ThemeOverlay.Material3.ActionBar">
diff --git a/app/src/main/res/layout/activity_player_queue_control.xml b/app/src/main/res/layout/activity_player_queue_control.xml
index 29efa36f9..96e4bf3e7 100644
--- a/app/src/main/res/layout/activity_player_queue_control.xml
+++ b/app/src/main/res/layout/activity_player_queue_control.xml
@@ -12,8 +12,8 @@
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar"
- app:popupTheme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar">
+ android:theme="@style/ThemeOverlay.Material3.ActionBar"
+ app:popupTheme="@style/ThemeOverlay.Material3.ActionBar">
diff --git a/app/src/main/res/layout/fragment_channel.xml b/app/src/main/res/layout/fragment_channel.xml
index 3f6f98eb8..9f456ba6b 100644
--- a/app/src/main/res/layout/fragment_channel.xml
+++ b/app/src/main/res/layout/fragment_channel.xml
@@ -5,13 +5,10 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
-
+ app:strokeWidth="2dp" />
+ app:tabMode="scrollable" />
+ tools:visibility="visible" />
-
diff --git a/app/src/main/res/layout/toolbar_layout.xml b/app/src/main/res/layout/toolbar_layout.xml
index d4e172978..3de5f68b0 100644
--- a/app/src/main/res/layout/toolbar_layout.xml
+++ b/app/src/main/res/layout/toolbar_layout.xml
@@ -1,6 +1,5 @@
+ android:minHeight="?attr/actionBarSize">
diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml
deleted file mode 100644
index 99026e70b..000000000
--- a/app/src/main/res/values-night/colors.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- @color/white
- @color/white
-
diff --git a/app/src/main/res/values-night/styles.xml b/app/src/main/res/values-night/styles.xml
deleted file mode 100644
index 7327ac145..000000000
--- a/app/src/main/res/values-night/styles.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
diff --git a/app/src/main/res/values-v27/styles.xml b/app/src/main/res/values-v27/styles.xml
deleted file mode 100644
index 64697a897..000000000
--- a/app/src/main/res/values-v27/styles.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/src/main/res/values-v29/styles.xml b/app/src/main/res/values-v29/styles.xml
deleted file mode 100644
index 24ebf5d2b..000000000
--- a/app/src/main/res/values-v29/styles.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/src/main/res/values-v35/styles.xml b/app/src/main/res/values-v35/styles.xml
deleted file mode 100644
index beb16bcdf..000000000
--- a/app/src/main/res/values-v35/styles.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/src/main/res/values/m3_colors.xml b/app/src/main/res/values/m3_colors.xml
new file mode 100644
index 000000000..b730604ee
--- /dev/null
+++ b/app/src/main/res/values/m3_colors.xml
@@ -0,0 +1,79 @@
+
+
+
+ #904A45
+ #FFFFFF
+ #FFDAD6
+ #3B0908
+ #775653
+ #FFFFFF
+ #FFDAD6
+ #2C1513
+ #725B2E
+ #FFFFFF
+ #FEDEA6
+ #261900
+ #BA1A1A
+ #FFFFFF
+ #FFDAD6
+ #410002
+ #FFF8F7
+ #231918
+ #FFF8F7
+ #231918
+ #F5DDDB
+ #534342
+ #857371
+ #D8C2BF
+ #000000
+ #392E2D
+ #FFEDEB
+ #FFB3AC
+ #E8D6D4
+ #FFF8F7
+ #FFFFFF
+ #FFF0EF
+ #FCEAE8
+ #F6E4E2
+ #F1DEDC
+
+
+ #FFB3AC
+ #571E1B
+ #73332F
+ #FFDAD6
+ #E7BDB8
+ #442927
+ #5D3F3C
+ #FFDAD6
+ #E1C38C
+ #402D04
+ #584419
+ #FEDEA6
+ #FFB4AB
+ #690005
+ #93000A
+ #FFDAD6
+ #1A1110
+ #F1DEDC
+ #1A1110
+ #F1DEDC
+ #534342
+ #D8C2BF
+ #A08C8A
+ #534342
+ #000000
+ #F1DEDC
+ #392E2D
+ #904A45
+ #1A1110
+ #423735
+ #140C0B
+ #231918
+ #271D1C
+ #322827
+ #3D3231
+
+
+ #000000
+
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 164f10672..40c74781d 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -1,158 +1,227 @@
-
-
-
-
-
-
+ - ?attr/colorOutlineVariant
+ - @color/m3_surface_container_highest_light
+ - @color/m3_surface_container_low_light
+ - ?attr/colorOnSurface
+ - ?attr/colorOutline
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
diff --git a/app/src/main/res/values/styles_misc.xml b/app/src/main/res/values/styles_misc.xml
index 06ee2a300..4b2605594 100644
--- a/app/src/main/res/values/styles_misc.xml
+++ b/app/src/main/res/values/styles_misc.xml
@@ -2,7 +2,7 @@
-
-
-
-
-
@@ -66,19 +66,19 @@
- ?attr/actionColor
-
+
-
-
-
-
-