Skip to content

Commit

Permalink
move Common.kt into its own package under ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian04 committed Jun 25, 2024
1 parent 5e5492a commit e89b208
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 23 deletions.
8 changes: 4 additions & 4 deletions app/src/main/java/me/arianb/usb_hid_client/HelpScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ import androidx.compose.ui.viewinterop.AndroidView
import androidx.core.widget.TextViewCompat
import cafe.adriel.voyager.core.screen.Screen
import cafe.adriel.voyager.navigator.Navigator
import me.arianb.usb_hid_client.ui.theme.BasicPage
import me.arianb.usb_hid_client.ui.theme.DarkLightModePreviews
import me.arianb.usb_hid_client.ui.theme.PaddingExtraLarge
import me.arianb.usb_hid_client.ui.theme.PaddingNone
import me.arianb.usb_hid_client.ui.theme.PaddingNormal
import me.arianb.usb_hid_client.ui.theme.PaddingSmall
import me.arianb.usb_hid_client.ui.theme.SimpleNavTopBar
import me.arianb.usb_hid_client.ui.theme.getColorByTheme
import me.arianb.usb_hid_client.ui.utils.BasicPage
import me.arianb.usb_hid_client.ui.utils.DarkLightModePreviews
import me.arianb.usb_hid_client.ui.utils.SimpleNavTopBar
import me.arianb.usb_hid_client.ui.utils.getColorByTheme


class HelpScreen : Screen {
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/java/me/arianb/usb_hid_client/InfoScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextAlign
import cafe.adriel.voyager.core.screen.Screen
import cafe.adriel.voyager.navigator.Navigator
import me.arianb.usb_hid_client.ui.theme.BasicPage
import me.arianb.usb_hid_client.ui.theme.DarkLightModePreviews
import me.arianb.usb_hid_client.ui.theme.PaddingNormal
import me.arianb.usb_hid_client.ui.theme.SimpleNavTopBar
import me.arianb.usb_hid_client.ui.utils.BasicPage
import me.arianb.usb_hid_client.ui.utils.DarkLightModePreviews
import me.arianb.usb_hid_client.ui.utils.SimpleNavTopBar

class InfoScreen : Screen {
@Composable
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/java/me/arianb/usb_hid_client/MainScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ import me.arianb.usb_hid_client.input_views.ManualInput
import me.arianb.usb_hid_client.input_views.Touchpad
import me.arianb.usb_hid_client.settings.SettingsScreen
import me.arianb.usb_hid_client.shell_utils.RootStateHolder
import me.arianb.usb_hid_client.ui.theme.BasicPage
import me.arianb.usb_hid_client.ui.theme.BasicTopBar
import me.arianb.usb_hid_client.ui.theme.DarkLightModePreviews
import me.arianb.usb_hid_client.ui.utils.BasicPage
import me.arianb.usb_hid_client.ui.utils.BasicTopBar
import me.arianb.usb_hid_client.ui.utils.DarkLightModePreviews
import timber.log.Timber

class MainScreen : Screen {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import cafe.adriel.voyager.navigator.Navigator
import cafe.adriel.voyager.navigator.currentOrThrow
import me.arianb.usb_hid_client.settings.ONBOARDING_DONE_KEY
import me.arianb.usb_hid_client.settings.SettingsViewModel
import me.arianb.usb_hid_client.ui.theme.BasicPage
import me.arianb.usb_hid_client.ui.theme.BasicTopBar
import me.arianb.usb_hid_client.ui.theme.DarkLightModePreviews
import me.arianb.usb_hid_client.ui.theme.PaddingExtraExtraLarge
import me.arianb.usb_hid_client.ui.utils.BasicPage
import me.arianb.usb_hid_client.ui.utils.BasicTopBar
import me.arianb.usb_hid_client.ui.utils.DarkLightModePreviews

class OnboardingScreen : Screen {
@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ import cafe.adriel.voyager.core.screen.Screen
import cafe.adriel.voyager.navigator.Navigator
import me.arianb.usb_hid_client.settings.ExportLogsPreferenceButton
import me.arianb.usb_hid_client.shell_utils.RootMethod
import me.arianb.usb_hid_client.ui.theme.BasicPage
import me.arianb.usb_hid_client.ui.theme.DarkLightModePreviews
import me.arianb.usb_hid_client.ui.theme.LabeledCategory
import me.arianb.usb_hid_client.ui.theme.SimpleNavTopBar
import me.arianb.usb_hid_client.ui.theme.codeLineHeightScaleFactor
import me.arianb.usb_hid_client.ui.theme.codeStyle
import me.arianb.usb_hid_client.ui.utils.BasicPage
import me.arianb.usb_hid_client.ui.utils.DarkLightModePreviews
import me.arianb.usb_hid_client.ui.utils.LabeledCategory
import me.arianb.usb_hid_client.ui.utils.SimpleNavTopBar
import timber.log.Timber

class TroubleshootingScreen : Screen {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import androidx.lifecycle.viewmodel.compose.viewModel
import me.arianb.usb_hid_client.MainViewModel
import me.arianb.usb_hid_client.R
import me.arianb.usb_hid_client.report_senders.MouseSender
import me.arianb.usb_hid_client.ui.theme.getColorByTheme
import me.arianb.usb_hid_client.ui.utils.getColorByTheme
import timber.log.Timber
import kotlin.math.abs
import kotlin.math.ceil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import androidx.compose.ui.res.stringResource
import androidx.lifecycle.viewmodel.compose.viewModel
import com.topjohnwu.superuser.Shell
import me.arianb.usb_hid_client.BuildConfig
import me.arianb.usb_hid_client.ui.theme.LabeledCategory
import me.arianb.usb_hid_client.ui.utils.LabeledCategory
import timber.log.Timber
import java.io.IOException

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import cafe.adriel.voyager.core.screen.Screen
import cafe.adriel.voyager.navigator.Navigator
import me.arianb.usb_hid_client.BuildConfig
import me.arianb.usb_hid_client.R
import me.arianb.usb_hid_client.ui.theme.BasicPage
import me.arianb.usb_hid_client.ui.theme.DarkLightModePreviews
import me.arianb.usb_hid_client.ui.theme.PaddingNormal
import me.arianb.usb_hid_client.ui.theme.SimpleNavTopBar
import me.arianb.usb_hid_client.ui.theme.isDynamicColorAvailable
import me.arianb.usb_hid_client.ui.utils.BasicPage
import me.arianb.usb_hid_client.ui.utils.DarkLightModePreviews
import me.arianb.usb_hid_client.ui.utils.SimpleNavTopBar
import timber.log.Timber

class SettingsScreen : Screen {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.arianb.usb_hid_client.ui.theme
package me.arianb.usb_hid_client.ui.utils

import android.content.res.Configuration
import androidx.compose.foundation.layout.Arrangement
Expand Down Expand Up @@ -37,6 +37,9 @@ import cafe.adriel.voyager.navigator.LocalNavigator
import cafe.adriel.voyager.navigator.currentOrThrow
import me.arianb.usb_hid_client.settings.AppTheme
import me.arianb.usb_hid_client.settings.SettingsViewModel
import me.arianb.usb_hid_client.ui.theme.PaddingLarge
import me.arianb.usb_hid_client.ui.theme.PaddingNormal
import me.arianb.usb_hid_client.ui.theme.USBHIDClientTheme

@Composable
fun BasicPage(
Expand Down

0 comments on commit e89b208

Please sign in to comment.