-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed13a1d
commit 788e757
Showing
6 changed files
with
55 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
composeApp/src/commonMain/kotlin/tools/mo3ta/githubactivity/App.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,4 @@ | ||
package tools.mo3ta.githubactivity | ||
|
||
import androidx.compose.runtime.Composable | ||
import cafe.adriel.voyager.navigator.Navigator | ||
import tools.mo3ta.githubactivity.screens.config.ConfigScreen | ||
import tools.mo3ta.githubactivity.theme.CommonTheme | ||
|
||
@Composable | ||
internal fun AppWithCommonTheme() = CommonTheme { | ||
AppContent() | ||
} | ||
|
||
@Composable | ||
internal fun AppContent() = Navigator(ConfigScreen) | ||
|
||
|
||
internal expect fun openUrl(url: String?) |
14 changes: 14 additions & 0 deletions
14
composeApp/src/commonMain/kotlin/tools/mo3ta/githubactivity/AppFiles.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package tools.mo3ta.githubactivity | ||
|
||
import androidx.compose.runtime.Composable | ||
import cafe.adriel.voyager.navigator.Navigator | ||
import tools.mo3ta.githubactivity.screens.config.ConfigScreen | ||
import tools.mo3ta.githubactivity.theme.CommonTheme | ||
|
||
@Composable | ||
internal fun AppWithCommonTheme() = CommonTheme { | ||
AppContent() | ||
} | ||
|
||
@Composable | ||
internal fun AppContent() = Navigator(ConfigScreen) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
composeApp/src/commonMain/kotlin/tools/mo3ta/githubactivity/theme/AppThem.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package tools.mo3ta.githubactivity.theme | ||
|
||
import androidx.compose.material3.ExperimentalMaterial3Api | ||
import androidx.compose.material3.Text | ||
import androidx.compose.material3.TopAppBar | ||
import androidx.compose.runtime.Composable | ||
|
||
@OptIn(ExperimentalMaterial3Api::class) | ||
@Composable | ||
internal fun MobileTheme( | ||
content: @Composable() () -> Unit | ||
) { | ||
AppTheme( | ||
content = content, | ||
appBar = { TopAppBar(title = { Text("Github Activity") }) }) | ||
} | ||
|
||
|
||
@Composable | ||
fun CommonTheme(content: @Composable() () -> Unit) { | ||
AppTheme(content) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters