Skip to content

Commit

Permalink
Improved component organisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Isira-Seneviratne committed Aug 11, 2024
1 parent 7a7f81a commit b05b98c
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 15 deletions.
5 changes: 3 additions & 2 deletions app/src/main/java/org/schabi/newpipe/about/AboutActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.schabi.newpipe.about
package org.schabi.newpipe.ui.components.about

import android.content.Context
import androidx.annotation.StringRes
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.schabi.newpipe.about
package org.schabi.newpipe.ui.components.about

/**
* Class containing information about standard software licenses.
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.schabi.newpipe.about
package org.schabi.newpipe.ui.screens

import android.content.res.Configuration
import androidx.collection.intListOf
Expand Down Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.schabi.newpipe.compose.theme
package org.schabi.newpipe.ui.theme

import androidx.compose.ui.graphics.Color

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.schabi.newpipe.compose.theme
package org.schabi.newpipe.ui.theme

import androidx.compose.ui.unit.dp

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b05b98c

Please sign in to comment.