Skip to content

Commit

Permalink
2.2.0: CuP 1.0.0-Beta-09, Kotlin 2.0.20, Compose 1.6.11
Browse files Browse the repository at this point in the history
  • Loading branch information
SalomonBrys committed Sep 23, 2024
1 parent 43491bb commit 0ebe3e6
Show file tree
Hide file tree
Showing 72 changed files with 92 additions and 152 deletions.
1 change: 1 addition & 0 deletions base/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ kotlin {
explicitApi()

jvm()
jvmToolchain(17)

js(IR) {
browser()
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

allprojects {
group = "net.kodein.themes"
version = "2.1.0"
version = "2.2.0"
}

subprojects {
Expand Down
1 change: 1 addition & 0 deletions compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ kotlin {
explicitApi()

jvm()
jvmToolchain(17)

@OptIn(ExperimentalWasmDsl::class)
wasmJs {
Expand Down
1 change: 1 addition & 0 deletions compose/compose-m2/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ kotlin {
explicitApi()

jvm()
jvmToolchain(17)

@OptIn(ExperimentalWasmDsl::class)
wasmJs {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,29 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontStyle
import androidx.compose.ui.text.font.FontWeight
import net.kodein.themes.compose.generated.resources.*
import net.kodein.themes.compose.generated.resources.JetBrainsMono_ExtraBold
import net.kodein.themes.compose.generated.resources.JetBrainsMono_ExtraBoldItalic
import net.kodein.themes.compose.generated.resources.JetBrainsMono_Thin
import net.kodein.themes.compose.generated.resources.Res
import org.jetbrains.compose.resources.*


private object JetBrainsMonoResources {
val Thin: FontResource by lazy { FontResource("font/JetBrainsMono-Thin.ttf") }
val ThinItalic: FontResource by lazy { FontResource("font/JetBrainsMono-ThinItalic.ttf") }
val ExtraLight: FontResource by lazy { FontResource("font/JetBrainsMono-ExtraLight.ttf") }
val ExtraLightItalic: FontResource by lazy { FontResource("font/JetBrainsMono-ExtraLightItalic.ttf") }
val Light: FontResource by lazy { FontResource("font/JetBrainsMono-Light.ttf") }
val LightItalic: FontResource by lazy { FontResource("font/JetBrainsMono-LightItalic.ttf") }
val Regular: FontResource by lazy { FontResource("font/JetBrainsMono-Regular.ttf") }
val Italic: FontResource by lazy { FontResource("font/JetBrainsMono-Italic.ttf") }
val Medium: FontResource by lazy { FontResource("font/JetBrainsMono-Medium.ttf") }
val MediumItalic: FontResource by lazy { FontResource("font/JetBrainsMono-MediumItalic.ttf") }
val SemiBold: FontResource by lazy { FontResource("font/JetBrainsMono-SemiBold.ttf") }
val SemiBoldItalic: FontResource by lazy { FontResource("font/JetBrainsMono-SemiBoldItalic.ttf") }
val Bold: FontResource by lazy { FontResource("font/JetBrainsMono-Bold.ttf") }
val BoldItalic: FontResource by lazy { FontResource("font/JetBrainsMono-BoldItalic.ttf") }
val ExtraBold: FontResource by lazy { FontResource("font/JetBrainsMono-ExtraBold.ttf") }
val ExtraBoldItalic: FontResource by lazy { FontResource("font/JetBrainsMono-ExtraBoldItalic.ttf") }
}

@OptIn(ExperimentalResourceApi::class)
public val JetBrainsMono: FontFamily @Composable get() = FontFamily(
Font(resource = JetBrainsMonoResources.Thin, weight = FontWeight.Thin, style = FontStyle.Normal),
Font(resource = JetBrainsMonoResources.ThinItalic, weight = FontWeight.Thin, style = FontStyle.Italic),
Font(resource = JetBrainsMonoResources.ExtraLight, weight = FontWeight.ExtraLight, style = FontStyle.Normal),
Font(resource = JetBrainsMonoResources.ExtraLightItalic, weight = FontWeight.ExtraLight, style = FontStyle.Italic),
Font(resource = JetBrainsMonoResources.Light, weight = FontWeight.Light, style = FontStyle.Normal),
Font(resource = JetBrainsMonoResources.LightItalic, weight = FontWeight.Light, style = FontStyle.Italic),
Font(resource = JetBrainsMonoResources.Regular, weight = FontWeight.Normal, style = FontStyle.Normal),
Font(resource = JetBrainsMonoResources.Italic, weight = FontWeight.Normal, style = FontStyle.Italic),
Font(resource = JetBrainsMonoResources.Medium, weight = FontWeight.Medium, style = FontStyle.Normal),
Font(resource = JetBrainsMonoResources.MediumItalic, weight = FontWeight.Medium, style = FontStyle.Italic),
Font(resource = JetBrainsMonoResources.SemiBold, weight = FontWeight.SemiBold, style = FontStyle.Normal),
Font(resource = JetBrainsMonoResources.SemiBoldItalic, weight = FontWeight.SemiBold, style = FontStyle.Italic),
Font(resource = JetBrainsMonoResources.Bold, weight = FontWeight.Bold, style = FontStyle.Normal),
Font(resource = JetBrainsMonoResources.BoldItalic, weight = FontWeight.Bold, style = FontStyle.Italic),
Font(resource = JetBrainsMonoResources.ExtraBold, weight = FontWeight.ExtraBold, style = FontStyle.Normal),
Font(resource = JetBrainsMonoResources.ExtraBoldItalic, weight = FontWeight.ExtraBold, style = FontStyle.Italic),
Font(resource = Res.font.JetBrainsMono_Thin, weight = FontWeight.Thin, style = FontStyle.Normal),
Font(resource = Res.font.JetBrainsMono_ThinItalic, weight = FontWeight.Thin, style = FontStyle.Italic),
Font(resource = Res.font.JetBrainsMono_ExtraLight, weight = FontWeight.ExtraLight, style = FontStyle.Normal),
Font(resource = Res.font.JetBrainsMono_ExtraLightItalic, weight = FontWeight.ExtraLight, style = FontStyle.Italic),
Font(resource = Res.font.JetBrainsMono_Light, weight = FontWeight.Light, style = FontStyle.Normal),
Font(resource = Res.font.JetBrainsMono_LightItalic, weight = FontWeight.Light, style = FontStyle.Italic),
Font(resource = Res.font.JetBrainsMono_Regular, weight = FontWeight.Normal, style = FontStyle.Normal),
Font(resource = Res.font.JetBrainsMono_Italic, weight = FontWeight.Normal, style = FontStyle.Italic),
Font(resource = Res.font.JetBrainsMono_Medium, weight = FontWeight.Medium, style = FontStyle.Normal),
Font(resource = Res.font.JetBrainsMono_MediumItalic, weight = FontWeight.Medium, style = FontStyle.Italic),
Font(resource = Res.font.JetBrainsMono_SemiBold, weight = FontWeight.SemiBold, style = FontStyle.Normal),
Font(resource = Res.font.JetBrainsMono_SemiBoldItalic, weight = FontWeight.SemiBold, style = FontStyle.Italic),
Font(resource = Res.font.JetBrainsMono_Bold, weight = FontWeight.Bold, style = FontStyle.Normal),
Font(resource = Res.font.JetBrainsMono_BoldItalic, weight = FontWeight.Bold, style = FontStyle.Italic),
Font(resource = Res.font.JetBrainsMono_ExtraBold, weight = FontWeight.ExtraBold, style = FontStyle.Normal),
Font(resource = Res.font.JetBrainsMono_ExtraBoldItalic, weight = FontWeight.ExtraBold, style = FontStyle.Italic),
)
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,25 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontStyle
import androidx.compose.ui.text.font.FontWeight
import org.jetbrains.compose.resources.ExperimentalResourceApi
import net.kodein.themes.compose.generated.resources.*
import org.jetbrains.compose.resources.Font
import org.jetbrains.compose.resources.FontResource


@OptIn(ExperimentalResourceApi::class)
private object JetBrainsMonoNLResources {
val Thin: FontResource by lazy { FontResource("font/JetBrainsMonoNL-Thin.ttf") }
val ThinItalic: FontResource by lazy { FontResource("font/JetBrainsMonoNL-ThinItalic.ttf") }
val ExtraLight: FontResource by lazy { FontResource("font/JetBrainsMonoNL-ExtraLight.ttf") }
val ExtraLightItalic: FontResource by lazy { FontResource("font/JetBrainsMonoNL-ExtraLightItalic.ttf") }
val Light: FontResource by lazy { FontResource("font/JetBrainsMonoNL-Light.ttf") }
val LightItalic: FontResource by lazy { FontResource("font/JetBrainsMonoNL-LightItalic.ttf") }
val Regular: FontResource by lazy { FontResource("font/JetBrainsMonoNL-Regular.ttf") }
val Italic: FontResource by lazy { FontResource("font/JetBrainsMonoNL-Italic.ttf") }
val Medium: FontResource by lazy { FontResource("font/JetBrainsMonoNL-Medium.ttf") }
val MediumItalic: FontResource by lazy { FontResource("font/JetBrainsMonoNL-MediumItalic.ttf") }
val SemiBold: FontResource by lazy { FontResource("font/JetBrainsMonoNL-SemiBold.ttf") }
val SemiBoldItalic: FontResource by lazy { FontResource("font/JetBrainsMonoNL-SemiBoldItalic.ttf") }
val Bold: FontResource by lazy { FontResource("font/JetBrainsMonoNL-Bold.ttf") }
val BoldItalic: FontResource by lazy { FontResource("font/JetBrainsMonoNL-BoldItalic.ttf") }
val ExtraBold: FontResource by lazy { FontResource("font/JetBrainsMonoNL-ExtraBold.ttf") }
val ExtraBoldItalic: FontResource by lazy { FontResource("font/JetBrainsMonoNL-ExtraBoldItalic.ttf") }
}

@OptIn(ExperimentalResourceApi::class)
public val JetBrainsMonoNL: FontFamily @Composable get() = FontFamily(
Font(resource = JetBrainsMonoNLResources.Thin, weight = FontWeight.Thin, style = FontStyle.Normal),
Font(resource = JetBrainsMonoNLResources.ThinItalic, weight = FontWeight.Thin, style = FontStyle.Italic),
Font(resource = JetBrainsMonoNLResources.ExtraLight, weight = FontWeight.ExtraLight, style = FontStyle.Normal),
Font(resource = JetBrainsMonoNLResources.ExtraLightItalic, weight = FontWeight.ExtraLight, style = FontStyle.Italic),
Font(resource = JetBrainsMonoNLResources.Light, weight = FontWeight.Light, style = FontStyle.Normal),
Font(resource = JetBrainsMonoNLResources.LightItalic, weight = FontWeight.Light, style = FontStyle.Italic),
Font(resource = JetBrainsMonoNLResources.Regular, weight = FontWeight.Normal, style = FontStyle.Normal),
Font(resource = JetBrainsMonoNLResources.Italic, weight = FontWeight.Normal, style = FontStyle.Italic),
Font(resource = JetBrainsMonoNLResources.Medium, weight = FontWeight.Medium, style = FontStyle.Normal),
Font(resource = JetBrainsMonoNLResources.MediumItalic, weight = FontWeight.Medium, style = FontStyle.Italic),
Font(resource = JetBrainsMonoNLResources.SemiBold, weight = FontWeight.SemiBold, style = FontStyle.Normal),
Font(resource = JetBrainsMonoNLResources.SemiBoldItalic, weight = FontWeight.SemiBold, style = FontStyle.Italic),
Font(resource = JetBrainsMonoNLResources.Bold, weight = FontWeight.Bold, style = FontStyle.Normal),
Font(resource = JetBrainsMonoNLResources.BoldItalic, weight = FontWeight.Bold, style = FontStyle.Italic),
Font(resource = JetBrainsMonoNLResources.ExtraBold, weight = FontWeight.ExtraBold, style = FontStyle.Normal),
Font(resource = JetBrainsMonoNLResources.ExtraBoldItalic, weight = FontWeight.ExtraBold, style = FontStyle.Italic),
Font(resource = Res.font.JetBrainsMonoNL_Thin, weight = FontWeight.Thin, style = FontStyle.Normal),
Font(resource = Res.font.JetBrainsMonoNL_ThinItalic, weight = FontWeight.Thin, style = FontStyle.Italic),
Font(resource = Res.font.JetBrainsMonoNL_ExtraLight, weight = FontWeight.ExtraLight, style = FontStyle.Normal),
Font(resource = Res.font.JetBrainsMonoNL_ExtraLightItalic, weight = FontWeight.ExtraLight, style = FontStyle.Italic),
Font(resource = Res.font.JetBrainsMonoNL_Light, weight = FontWeight.Light, style = FontStyle.Normal),
Font(resource = Res.font.JetBrainsMonoNL_LightItalic, weight = FontWeight.Light, style = FontStyle.Italic),
Font(resource = Res.font.JetBrainsMonoNL_Regular, weight = FontWeight.Normal, style = FontStyle.Normal),
Font(resource = Res.font.JetBrainsMonoNL_Italic, weight = FontWeight.Normal, style = FontStyle.Italic),
Font(resource = Res.font.JetBrainsMonoNL_Medium, weight = FontWeight.Medium, style = FontStyle.Normal),
Font(resource = Res.font.JetBrainsMonoNL_MediumItalic, weight = FontWeight.Medium, style = FontStyle.Italic),
Font(resource = Res.font.JetBrainsMonoNL_SemiBold, weight = FontWeight.SemiBold, style = FontStyle.Normal),
Font(resource = Res.font.JetBrainsMonoNL_SemiBoldItalic, weight = FontWeight.SemiBold, style = FontStyle.Italic),
Font(resource = Res.font.JetBrainsMonoNL_Bold, weight = FontWeight.Bold, style = FontStyle.Normal),
Font(resource = Res.font.JetBrainsMonoNL_BoldItalic, weight = FontWeight.Bold, style = FontStyle.Italic),
Font(resource = Res.font.JetBrainsMonoNL_ExtraBold, weight = FontWeight.ExtraBold, style = FontStyle.Normal),
Font(resource = Res.font.JetBrainsMonoNL_ExtraBoldItalic, weight = FontWeight.ExtraBold, style = FontStyle.Italic),
)
Loading

0 comments on commit 0ebe3e6

Please sign in to comment.