Sololo
05/25/2021, 12:38 PMBrian G
05/25/2021, 1:09 PMSololo
05/25/2021, 1:10 PMWARNING: Using incubator modules: jdk.incubator.jpackage
java.lang.IllegalArgumentException: jdk.incubator.jpackage.internal.ConfigException: The configured main jar does not exist in the input directory /Users/sololo/Documents/Java/Java Projects/DesktopAppDemo/build/compose/tmp/packageDmg/libs/DesktopAppDemo-1.1.0-30a8f8b2a9a1d7678d1fbcccb1c9e1f.jar
Brian G
05/25/2021, 1:26 PM@Composable
functions 🤦♂️Arslan Armanuly
05/25/2021, 3:29 PMDirk Hoffmann
05/25/2021, 5:08 PMLocalAppWindow.current.height
is the Dp height of the window (as Int) INCLUDING the OS window title, right?
Is there a target OS independent way to decide the height of the window title? (or is it always 28.dp ?)
I wanna determin the max "usable" height of the window, which seems to be LocalAppWindow height MINUS OS window title ...Dirk Hoffmann
05/25/2021, 6:41 PMLocalAppWindow.current.(width|height)
are of datatype Int
but represent height|width in Dp
... so if you wanna have e.g. the window width in Float to compare it to a Size
or Offset
you have to do LocalAppWindow.current.width * LocalDensity.current.density
Even more at the "root" of all Apps:
fun main() = Window(title = "Compose for Desktop", size = IntSize(300, 300)) {
The window doesn't have an IntSize of 300, 300 ... in fact it has a DpSize of 300, 300 and an IntSize(600, 600)
(if density == 2.0f)Sololo
05/26/2021, 3:33 AMDaniele B
05/26/2021, 9:37 AMDirk Hoffmann
05/26/2021, 10:53 AMcursorBrush
parameter defaults to SolidColor(Color.Black)
I think it should default to some MaterialTheme value ... otherwise it is very hard to spot in darkModes 🙂
(btw is this chat the right place to report such things??)Carter
05/26/2021, 1:08 PMPHondogo
05/26/2021, 3:20 PMDaniel
05/26/2021, 4:19 PMuli
05/26/2021, 8:49 PM> Task :shared:compileKotlinJvm
e: This version (1.0.0-beta08) of the Compose Compiler requires Kotlin version 1.5.0 but you appear to be using Kotlin version 1.4.32 which is not known to be compatible. Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).
Any hints where “1.0.0-beta08" could be coming from? And how to set the Compose Compiler version in non-android projects?Vadim Kapustin
05/27/2021, 11:30 AMkevin
05/27/2021, 1:56 PMDirk Hoffmann
05/27/2021, 2:56 PMWindow {
DesktopTheme {
MyCustomDeskMaterialTheme {
MinRootContent()
...
@Composable
fun MyCustomDeskMaterialTheme(content: @Composable () -> Unit) {
MaterialTheme(
colors = if (isDarkTheme()) DarkColorPalette() else LightColorPalette(),
typography = if (isDarkTheme()) DarkTypography() else LightTypography()
) {
...
fun DarkTypography() : Typography {
val orig = Typography()
return orig.copy(
subtitle1 = orig.subtitle1.copy(color = DarkColorPalette().onBackground),
subtitle2 = orig.subtitle2.copy(color = DarkColorPalette().onBackground),
body1 = orig.body1.copy(color = DarkColorPalette().onSurface),
body2 = orig.body2.copy(color = DarkColorPalette().onSurface))
}
fun LightTypography() : Typography {
val orig = Typography()
return orig.copy(
subtitle1 = orig.subtitle1.copy(color = LightColorPalette().onBackground),
subtitle2 = orig.subtitle2.copy(color = LightColorPalette().onBackground),
body1 = orig.body1.copy(color = LightColorPalette().onSurface),
body2 = orig.body2.copy(color = LightColorPalette().onSurface))
}
fun DarkColorPalette() = darkColors(
primary = Solarized.Base1,
...
when accessing it with e.g. MaterialTheme.typography.subtitle2
font has always the color of the mode app started withCh8n
05/27/2021, 6:55 PMdrawCircle(...)
how can I put a bitmap image in it so it looks like a circular image viewTlaster
05/28/2021, 10:50 AMJohn O'Reilly
05/28/2021, 4:50 PM0.4.0-rc2
version (from 0.4.0-build189
) and now seeing what looks like change in recomposition behaviour...more in thread...spierce7
05/29/2021, 5:43 AMrsktash
05/29/2021, 7:00 AMJohn O'Reilly
05/29/2021, 12:43 PMSrSouza
05/29/2021, 2:22 PMspierce7
05/29/2021, 4:05 PMjava.lang.NoSuchMethodError: 'void androidx.compose.runtime.Composer.startReplaceableGroup(int, java.lang.String)'
I’m using Kotlin 1.5.10 and compose desktop 0.4.0-rc2jmfayard
05/29/2021, 5:42 PMspierce7
05/29/2021, 7:33 PMOutlinedTextField
. I can’t seem to find a good way.spierce7
05/30/2021, 1:09 AMspierce7
05/30/2021, 5:20 AMxxfast
05/30/2021, 12:25 PMxxfast
05/30/2021, 12:25 PMKirill Grouchnikov
05/30/2021, 12:32 PMxxfast
05/31/2021, 2:35 AM