Skip to content

Instantly share code, notes, and snippets.

View joreilly's full-sized avatar

John O'Reilly joreilly

View GitHub Profile
fun generateDynamicColorSchemeFile(darkTheme: Boolean, context: Context) {
val colorScheme = if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context)
val file = FileSpec.builder("", "Colors")
.addCclorProperty("md_theme_light_primary", colorScheme.primary)
.addCclorProperty("md_theme_light_onPrimary", colorScheme.onPrimary)
.addCclorProperty("md_theme_light_primaryContainer", colorScheme.primaryContainer)
.addCclorProperty("md_theme_light_onPrimaryContainer", colorScheme.onPrimaryContainer)
.addCclorProperty("md_theme_light_secondary", colorScheme.secondary)
.addCclorProperty("md_theme_light_onSecondary", colorScheme.onSecondary)
import androidx.compose.desktop.Window
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Scaffold
import androidx.compose.material.Text
import androidx.compose.material.TopAppBar
Ld /Users/joreilly/Library/Developer/Xcode/DerivedData/PeopleInSpaceWatch-gfdiznzzmgwlqxfgktqzaxgaqksb/Build/Products/Debug-watchsimulator/PeopleInSpaceWatch\ WatchKit\ Extension.appex/PeopleInSpaceWatch\ WatchKit\ Extension normal i386 (in target 'PeopleInSpaceWatch WatchKit Extension' from project 'PeopleInSpaceWatch')
cd /Users/joreilly/dev/github/PeopleInSpace/watchos/PeopleInSpaceWatch
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target i386-apple-watchos6.1-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator6.1.sdk -L/Users/joreilly/Library/Developer/Xcode/DerivedData/PeopleInSpaceWatch-gfdiznzzmgwlqxfgktqzaxgaqksb/Build/Products/Debug-watchsimulator -F/Users/joreilly/Library/Developer/Xcode/DerivedData/PeopleInSpaceWatch-gfdiznzzmgwlqxfgktqzaxgaqksb/Build/Products/Debug-watchsimulator -F/Users/joreilly/dev/github/PeopleInSpace/watchos/PeopleInSpaceWatch/Pods/../../../commo