mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-05 06:50:31 +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.appcompat.app.AppCompatActivity
|
||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import org.schabi.newpipe.R
|
import org.schabi.newpipe.R
|
||||||
import org.schabi.newpipe.compose.screen.ScaffoldWithToolbar
|
import org.schabi.newpipe.ui.components.common.ScaffoldWithToolbar
|
||||||
import org.schabi.newpipe.compose.theme.AppTheme
|
import org.schabi.newpipe.ui.screens.AboutScreen
|
||||||
|
import org.schabi.newpipe.ui.theme.AppTheme
|
||||||
import org.schabi.newpipe.util.Localization
|
import org.schabi.newpipe.util.Localization
|
||||||
|
|
||||||
class AboutActivity : AppCompatActivity() {
|
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.Box
|
||||||
import androidx.compose.foundation.layout.Column
|
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.res.stringResource
|
||||||
import androidx.compose.ui.tooling.preview.Preview
|
import androidx.compose.ui.tooling.preview.Preview
|
||||||
import org.schabi.newpipe.R
|
import org.schabi.newpipe.R
|
||||||
import org.schabi.newpipe.compose.theme.AppTheme
|
import org.schabi.newpipe.ui.theme.AppTheme
|
||||||
import org.schabi.newpipe.compose.theme.SizeTokens
|
import org.schabi.newpipe.ui.theme.SizeTokens
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun TextAction(text: String, modifier: Modifier = Modifier) {
|
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 android.content.Context
|
||||||
import androidx.annotation.StringRes
|
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.Image
|
||||||
import androidx.compose.foundation.layout.Column
|
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.clickable
|
||||||
import androidx.compose.foundation.layout.Column
|
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.
|
* 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.PaddingValues
|
||||||
import androidx.compose.foundation.layout.RowScope
|
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 android.content.res.Configuration
|
||||||
import androidx.collection.intListOf
|
import androidx.collection.intListOf
|
||||||
@ -30,7 +30,9 @@ import androidx.compose.ui.tooling.preview.Preview
|
|||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import my.nanihadesuka.compose.ColumnScrollbar
|
import my.nanihadesuka.compose.ColumnScrollbar
|
||||||
import org.schabi.newpipe.R
|
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)
|
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
|
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
|
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.foundation.isSystemInDarkTheme
|
||||||
import androidx.compose.material3.MaterialTheme
|
import androidx.compose.material3.MaterialTheme
|
Loading…
Reference in New Issue
Block a user