mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-03 05:50:32 +00:00
Improved component organisation
This commit is contained in:
parent
7a7f81ac7f
commit
b05b98ca61
@ -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() {
|
||||
|
@ -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) {
|
@ -1,4 +1,4 @@
|
||||
package org.schabi.newpipe.about
|
||||
package org.schabi.newpipe.ui.components.about
|
||||
|
||||
import android.content.Context
|
||||
import androidx.annotation.StringRes
|
@ -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
|
@ -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
|
@ -1,4 +1,4 @@
|
||||
package org.schabi.newpipe.about
|
||||
package org.schabi.newpipe.ui.components.about
|
||||
|
||||
/**
|
||||
* Class containing information about standard software licenses.
|
@ -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
|
@ -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)
|
||||
|
@ -1,4 +1,4 @@
|
||||
package org.schabi.newpipe.compose.theme
|
||||
package org.schabi.newpipe.ui.theme
|
||||
|
||||
import androidx.compose.ui.graphics.Color
|
||||
|
@ -1,4 +1,4 @@
|
||||
package org.schabi.newpipe.compose.theme
|
||||
package org.schabi.newpipe.ui.theme
|
||||
|
||||
import androidx.compose.ui.unit.dp
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user