1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-01-03 05:50:32 +00:00

Improved component organisation

This commit is contained in:
Isira Seneviratne 2024-07-28 07:44:38 +05:30
parent 7a7f81ac7f
commit b05b98ca61
11 changed files with 18 additions and 15 deletions

View File

@ -5,8 +5,9 @@ import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.ui.res.stringResource
import org.schabi.newpipe.R
import org.schabi.newpipe.compose.screen.ScaffoldWithToolbar
import org.schabi.newpipe.compose.theme.AppTheme
import org.schabi.newpipe.ui.components.common.ScaffoldWithToolbar
import org.schabi.newpipe.ui.screens.AboutScreen
import org.schabi.newpipe.ui.theme.AppTheme
import org.schabi.newpipe.util.Localization
class AboutActivity : AppCompatActivity() {

View File

@ -1,4 +1,4 @@
package org.schabi.newpipe.compose
package org.schabi.newpipe.ui
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
@ -27,8 +27,8 @@ import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import org.schabi.newpipe.R
import org.schabi.newpipe.compose.theme.AppTheme
import org.schabi.newpipe.compose.theme.SizeTokens
import org.schabi.newpipe.ui.theme.AppTheme
import org.schabi.newpipe.ui.theme.SizeTokens
@Composable
fun TextAction(text: String, modifier: Modifier = Modifier) {

View File

@ -1,4 +1,4 @@
package org.schabi.newpipe.about
package org.schabi.newpipe.ui.components.about
import android.content.Context
import androidx.annotation.StringRes

View File

@ -1,4 +1,4 @@
package org.schabi.newpipe.about
package org.schabi.newpipe.ui.components.about
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column

View File

@ -1,4 +1,4 @@
package org.schabi.newpipe.about
package org.schabi.newpipe.ui.components.about
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column

View File

@ -1,4 +1,4 @@
package org.schabi.newpipe.about
package org.schabi.newpipe.ui.components.about
/**
* Class containing information about standard software licenses.

View File

@ -1,4 +1,4 @@
package org.schabi.newpipe.compose.screen
package org.schabi.newpipe.ui.components.common
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.RowScope

View File

@ -1,4 +1,4 @@
package org.schabi.newpipe.about
package org.schabi.newpipe.ui.screens
import android.content.res.Configuration
import androidx.collection.intListOf
@ -30,7 +30,9 @@ import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import my.nanihadesuka.compose.ColumnScrollbar
import org.schabi.newpipe.R
import org.schabi.newpipe.compose.theme.AppTheme
import org.schabi.newpipe.ui.components.about.AboutTab
import org.schabi.newpipe.ui.components.about.LicenseTab
import org.schabi.newpipe.ui.theme.AppTheme
private val TITLES = intListOf(R.string.tab_about, R.string.tab_licenses)

View File

@ -1,4 +1,4 @@
package org.schabi.newpipe.compose.theme
package org.schabi.newpipe.ui.theme
import androidx.compose.ui.graphics.Color

View File

@ -1,4 +1,4 @@
package org.schabi.newpipe.compose.theme
package org.schabi.newpipe.ui.theme
import androidx.compose.ui.unit.dp

View File

@ -1,4 +1,4 @@
package org.schabi.newpipe.compose.theme
package org.schabi.newpipe.ui.theme
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme