├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── themes.xml │ │ │ ├── drawable │ │ │ │ ├── ic_search.png │ │ │ │ ├── drive_32x32.png │ │ │ │ ├── folder_32x32.webp │ │ │ │ ├── ic_up_navtool.png │ │ │ │ ├── notepad_32x32.webp │ │ │ │ ├── ic_back_navtool.png │ │ │ │ ├── ic_maxi_toolbar.png │ │ │ │ ├── ic_mini_toolbar.png │ │ │ │ ├── ic_new_note_nav.png │ │ │ │ ├── ic_delete_navtool.png │ │ │ │ ├── ic_forward_navtool.png │ │ │ │ ├── my_computer_32x32.webp │ │ │ │ ├── notepad_file_32x32.webp │ │ │ │ ├── recycle_bin_32x32.webp │ │ │ │ ├── internet_explorer_32x32.webp │ │ │ │ ├── my_documents_folder_32x32.webp │ │ │ │ ├── ic_close_toolbar.xml │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ └── ic_windows95.xml │ │ │ ├── font │ │ │ │ ├── ms_sans_serif.ttf │ │ │ │ └── ms_sans_serif_bold.ttf │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.webp │ │ │ │ └── ic_launcher_round.webp │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.webp │ │ │ │ └── ic_launcher_round.webp │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.webp │ │ │ │ └── ic_launcher_round.webp │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.webp │ │ │ │ └── ic_launcher_round.webp │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.webp │ │ │ │ └── ic_launcher_round.webp │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ └── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ ├── java │ │ │ └── io │ │ │ │ └── github │ │ │ │ └── ch8n │ │ │ │ └── compose97 │ │ │ │ ├── navigation │ │ │ │ ├── DecomposeKtx.kt │ │ │ │ ├── AppDestinations.kt │ │ │ │ └── AppNavigation.kt │ │ │ │ ├── ui │ │ │ │ ├── theme │ │ │ │ │ ├── Color.kt │ │ │ │ │ ├── Shape.kt │ │ │ │ │ ├── Theme.kt │ │ │ │ │ └── Type.kt │ │ │ │ ├── components │ │ │ │ │ ├── Preview.kt │ │ │ │ │ ├── windowIcon.kt │ │ │ │ │ ├── startMenu │ │ │ │ │ │ ├── StartMenuItem.kt │ │ │ │ │ │ └── StartMenu.kt │ │ │ │ │ ├── startBar │ │ │ │ │ │ ├── StartBarTab.kt │ │ │ │ │ │ └── StartBar.kt │ │ │ │ │ ├── notepad │ │ │ │ │ │ └── NotePad.kt │ │ │ │ │ └── windowscaffold │ │ │ │ │ │ ├── WindowToolbar.kt │ │ │ │ │ │ ├── WindowAddressBar.kt │ │ │ │ │ │ ├── WindowStatusBar.kt │ │ │ │ │ │ ├── WindowNavToolbar.kt │ │ │ │ │ │ └── WindowScaffold.kt │ │ │ │ └── screens │ │ │ │ │ ├── WindowsVM.kt │ │ │ │ │ └── folder │ │ │ │ │ └── FolderWindow.kt │ │ │ │ ├── MainActivity.kt │ │ │ │ ├── routes │ │ │ │ ├── desktop │ │ │ │ │ ├── DesktopItem.kt │ │ │ │ │ └── Desktop.kt │ │ │ │ ├── notepad │ │ │ │ │ └── NotePad.kt │ │ │ │ ├── mycomputer │ │ │ │ │ └── MyComputer.kt │ │ │ │ ├── mydocuments │ │ │ │ │ └── MyDocuments.kt │ │ │ │ ├── internetexplorer │ │ │ │ │ └── InternetExplorer.kt │ │ │ │ ├── window97 │ │ │ │ │ └── Window97.kt │ │ │ │ └── recyclebin │ │ │ │ │ └── RecycleBin.kt │ │ │ │ └── Utils.kt │ │ └── AndroidManifest.xml │ └── androidTest │ │ └── java │ │ └── io │ │ └── github │ │ └── ch8n │ │ └── compose97 │ │ └── ExampleInstrumentedTest.kt ├── proguard-rules.pro └── build.gradle ├── preview1.png ├── preview2.png ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── settings.gradle ├── LICENSE ├── gradle.properties ├── .github └── workflows │ └── action.yml ├── .gitignore ├── gradlew.bat ├── README.md └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /preview1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/preview1.png -------------------------------------------------------------------------------- /preview2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/preview2.png -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Compose97 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/drawable/ic_search.png -------------------------------------------------------------------------------- /app/src/main/res/font/ms_sans_serif.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/font/ms_sans_serif.ttf -------------------------------------------------------------------------------- /app/src/main/res/drawable/drive_32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/drawable/drive_32x32.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/folder_32x32.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/drawable/folder_32x32.webp -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_up_navtool.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/drawable/ic_up_navtool.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/notepad_32x32.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/drawable/notepad_32x32.webp -------------------------------------------------------------------------------- /app/src/main/res/font/ms_sans_serif_bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/font/ms_sans_serif_bold.ttf -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_back_navtool.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/drawable/ic_back_navtool.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_maxi_toolbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/drawable/ic_maxi_toolbar.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_mini_toolbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/drawable/ic_mini_toolbar.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_new_note_nav.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/drawable/ic_new_note_nav.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_delete_navtool.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/drawable/ic_delete_navtool.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_forward_navtool.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/drawable/ic_forward_navtool.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/my_computer_32x32.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/drawable/my_computer_32x32.webp -------------------------------------------------------------------------------- /app/src/main/res/drawable/notepad_file_32x32.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/drawable/notepad_file_32x32.webp -------------------------------------------------------------------------------- /app/src/main/res/drawable/recycle_bin_32x32.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/drawable/recycle_bin_32x32.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/drawable/internet_explorer_32x32.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/drawable/internet_explorer_32x32.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/drawable/my_documents_folder_32x32.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ch8n/Compose97/HEAD/app/src/main/res/drawable/my_documents_folder_32x32.webp -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Sep 07 09:45:19 IST 2021 2 | distributionBase=GRADLE_USER_HOME 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip 4 | distributionPath=wrapper/dists 5 | zipStorePath=wrapper/dists 6 | zipStoreBase=GRADLE_USER_HOME 7 | -------------------------------------------------------------------------------- /app/src/main/java/io/github/ch8n/compose97/navigation/DecomposeKtx.kt: -------------------------------------------------------------------------------- 1 | package io.github.ch8n.compose97.navigation 2 | 3 | import com.arkivanov.decompose.ComponentContext 4 | 5 | abstract class DecomposeComponent( 6 | private val componentContext: ComponentContext 7 | ) : ComponentContext by componentContext 8 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | dependencyResolutionManagement { 2 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) 3 | repositories { 4 | google() 5 | mavenCentral() 6 | maven { url 'https://jitpack.io' } 7 | } 8 | } 9 | rootProject.name = "Compose97" 10 | include ':app' 11 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/java/io/github/ch8n/compose97/ui/theme/Color.kt: -------------------------------------------------------------------------------- 1 | package io.github.ch8n.compose97.ui.theme 2 | 3 | import androidx.compose.ui.graphics.Color 4 | 5 | val Teal = Color(0xFF008080) 6 | val Silver = Color(0xFFc0c0c0) 7 | val Navy = Color(0xFF000080) 8 | val RoyalBlue = Color(0xFF0d74c6) 9 | val White = Color(0xFFFFFFFF) 10 | val Black = Color(0xFF101010) 11 | val Gray = Color(0xFF808080) 12 | -------------------------------------------------------------------------------- /app/src/main/java/io/github/ch8n/compose97/ui/theme/Shape.kt: -------------------------------------------------------------------------------- 1 | package io.github.ch8n.compose97.ui.theme 2 | 3 | import androidx.compose.foundation.shape.RoundedCornerShape 4 | import androidx.compose.material.Shapes 5 | import androidx.compose.ui.unit.dp 6 | 7 | val Shapes = Shapes( 8 | small = RoundedCornerShape(4.dp), 9 | medium = RoundedCornerShape(4.dp), 10 | large = RoundedCornerShape(0.dp) 11 | ) 12 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFBB86FC 4 | #FF6200EE 5 | #FF3700B3 6 | #FF03DAC5 7 | #FF018786 8 | #FF000000 9 | #FFFFFFFF 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_close_toolbar.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/java/io/github/ch8n/compose97/ui/components/Preview.kt: -------------------------------------------------------------------------------- 1 | package io.github.ch8n.compose97.ui.components 2 | 3 | import androidx.compose.foundation.layout.Box 4 | import androidx.compose.foundation.layout.fillMaxSize 5 | import androidx.compose.runtime.Composable 6 | import androidx.compose.ui.Modifier 7 | import io.github.ch8n.compose97.ui.theme.Compose97Theme 8 | 9 | @Composable 10 | fun Preview(content: @Composable () -> Unit) { 11 | Compose97Theme { 12 | Box(modifier = Modifier.fillMaxSize()) { 13 | content.invoke() 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/src/main/java/io/github/ch8n/compose97/navigation/AppDestinations.kt: -------------------------------------------------------------------------------- 1 | package io.github.ch8n.compose97.navigation 2 | 3 | import com.arkivanov.essenty.parcelable.Parcelable 4 | import com.arkivanov.essenty.parcelable.Parcelize 5 | 6 | sealed class Destinations : Parcelable { 7 | @Parcelize 8 | object Desktop : Destinations() 9 | 10 | @Parcelize 11 | object MyComputer : Destinations() 12 | 13 | @Parcelize 14 | object MyDocuments : Destinations() 15 | 16 | @Parcelize 17 | object RecyclerBin : Destinations() 18 | 19 | @Parcelize 20 | object InternetExplorer : Destinations() 21 | 22 | @Parcelize 23 | object Notepad : Destinations() 24 | 25 | @Parcelize 26 | data class Folder(val groupId: String) : Destinations() 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/java/io/github/ch8n/compose97/ui/components/windowIcon.kt: -------------------------------------------------------------------------------- 1 | package io.github.ch8n.compose97.ui.components 2 | 3 | import io.github.ch8n.compose97.R 4 | 5 | sealed class WindowIconType( 6 | open val name: String, 7 | open val icon: Int 8 | ) { 9 | data class Folder( 10 | override val name: String, 11 | override val icon: Int = R.drawable.folder_32x32 12 | ) : WindowIconType(name, icon) 13 | 14 | data class Drive( 15 | override val name: String, 16 | override val icon: Int = R.drawable.drive_32x32 17 | ) : WindowIconType(name, icon) 18 | 19 | data class TxtFile( 20 | override val name: String, 21 | override val icon: Int = R.drawable.notepad_file_32x32 22 | ) : WindowIconType(name, icon) 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/java/io/github/ch8n/compose97/ui/theme/Theme.kt: -------------------------------------------------------------------------------- 1 | package io.github.ch8n.compose97.ui.theme 2 | 3 | import androidx.compose.material.MaterialTheme 4 | import androidx.compose.material.lightColors 5 | import androidx.compose.runtime.Composable 6 | 7 | private val Windows97Palette = lightColors( 8 | primary = Silver, 9 | secondary = Gray, 10 | background = White, 11 | surface = White, 12 | onPrimary = Black, 13 | onSecondary = Black, 14 | onBackground = Black, 15 | onSurface = Black 16 | ) 17 | 18 | @Composable 19 | fun Compose97Theme(content: @Composable() () -> Unit) { 20 | MaterialTheme( 21 | colors = Windows97Palette, 22 | typography = typography, 23 | shapes = Shapes, 24 | content = content 25 | ) 26 | } 27 | -------------------------------------------------------------------------------- /app/src/androidTest/java/io/github/ch8n/compose97/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- 1 | package io.github.ch8n.compose97 2 | 3 | import androidx.test.ext.junit.runners.AndroidJUnit4 4 | import androidx.test.platform.app.InstrumentationRegistry 5 | import org.junit.Assert.* 6 | import org.junit.Test 7 | import org.junit.runner.RunWith 8 | 9 | /** 10 | * Instrumented test, which will execute on an Android device. 11 | * 12 | * See [testing documentation](http://d.android.com/tools/testing). 13 | */ 14 | @RunWith(AndroidJUnit4::class) 15 | class ExampleInstrumentedTest { 16 | @Test 17 | fun useAppContext() { 18 | // Context of the app under test. 19 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext 20 | assertEquals("io.github.ch8n.compose97", appContext.packageName) 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Chetan Gupta 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 15 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /app/src/main/java/io/github/ch8n/compose97/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package io.github.ch8n.compose97 2 | 3 | import android.os.Bundle 4 | import androidx.activity.ComponentActivity 5 | import androidx.activity.compose.setContent 6 | import com.arkivanov.decompose.defaultComponentContext 7 | import io.github.ch8n.compose97.navigation.AppNavigation 8 | import io.github.ch8n.compose97.routes.window97.Window97 9 | import io.github.ch8n.compose97.routes.window97.Window97AppComponent 10 | import io.github.ch8n.compose97.ui.theme.Compose97Theme 11 | 12 | class MainActivity : ComponentActivity() { 13 | override fun onCreate(savedInstanceState: Bundle?) { 14 | super.onCreate(savedInstanceState) 15 | compose97App() 16 | } 17 | 18 | private fun compose97App() { 19 | val componentContext = defaultComponentContext() 20 | val rootNavComponent = AppNavigation(componentContext) 21 | val window97Component = Window97AppComponent(componentContext) 22 | setContent { 23 | Compose97Theme { 24 | Window97( 25 | window97Component = window97Component, 26 | navComponent = rootNavComponent 27 | ) 28 | } 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | # AndroidX package structure to make it clearer which packages are bundled with the 15 | # Android operating system, and which are packaged with your app"s APK 16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 17 | android.useAndroidX=true 18 | # Automatically convert third-party libraries to use AndroidX 19 | android.enableJetifier=true 20 | # Kotlin code style for this project: "official" or "obsolete": 21 | kotlin.code.style=official -------------------------------------------------------------------------------- /app/src/main/res/values/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 17 | 18 | 22 | 23 |