Bryan L
02/25/2021, 7:36 PMYan Pujante
02/25/2021, 7:55 PM.icns
file that you can use in your dmg image on macOS (because it is NOT trivial), using a svg file as an input and google chrome for the rendering (handle transparency properly)
// render a single icon with the size
fun renderIcon(size: Int, filename: String) {
val html = """
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body style="margin:0;overflow:hidden">
<img style="padding; margin:0" src="${rootDir}/src/main/resources/images/logo.svg" width="$size" height="$size"></img>
</body>
</html>
""".trimIndent()
val inputFile = file("$buildDir/icon.html")
inputFile.writeText(html)
println(inputFile)
exec {
commandLine(
"/Applications/Google <http://Chrome.app/Contents/MacOS/Google|Chrome.app/Contents/MacOS/Google> Chrome",
"--headless",
"--screenshot=$filename",
"--window-size=$size,$size",
"--default-background-color=0",
inputFile.toString()
)
}
}
val iconsetDir = "${buildDir}/app-icon.iconset"
// render all icons required for iconset
tasks.register("iconset") {
doLast {
// make sure the folder exists
mkdir(iconsetDir)
// generate each icon
arrayOf(512, 256, 128, 32, 16).forEach { size ->
renderIcon(size * 2, "$iconsetDir/icon_${size}x${size}@2x.png")
renderIcon(size, "$iconsetDir/icon_${size}x${size}.png")
}
}
}
// render the .icns file needed for macOS
val icnsTask = tasks.register("icns") {
doLast {
exec {
commandLine("iconutil", "-c", "icns", iconsetDir)
workingDir = buildDir
}
}
dependsOn("iconset")
}
after running the icns
task you end up with app-icon.icns
file which you can then use in your app distributionWill Johnson
02/25/2021, 7:56 PM@Composable
fun sliderDropDown(isExpanded: Boolean, onDismissRequest: () -> Unit) {
DropdownMenu(expanded = isExpanded, onDismissRequest) {
var value by remember { mutableStateOf(0f) }
Slider(
value,
{ value = it },
Modifier.width(200.dp)
)
}
}
but I keep getting the error
Intrinsic measurements are not currently supported by SubcomposeLayout
I'm able to use a Popup() to show the Slider, but I can't figure out a way to get the same anchoring behavior from the Popup that the DropDownMenu provides by default. Am I missing something when I use DropDownMenu? Is there a way to get the same anchoring effect with a Popup?
I'm using compose-0.3.0 and kotlin-1.4.30Hunter Breathat
02/26/2021, 1:09 AM@Preview
annotation, but there doesn't appear to be support for it. Is that correct?theapache64
02/26/2021, 6:26 AMPaul Nogas
02/26/2021, 4:35 PMrsktash
02/26/2021, 5:16 PMolonho
02/26/2021, 7:39 PMDominaezzz
02/26/2021, 8:10 PMBryan L
02/27/2021, 4:10 PMtheapache64
02/28/2021, 6:20 AMtheapache64
02/28/2021, 3:17 PMdector
02/28/2021, 9:56 PMtheapache64
03/01/2021, 10:51 AMproductFlavors
of androidCarter
03/01/2021, 9:58 PMExecution failed for task ':desktop:packageDmg'.
Process 'command '/usr/bin/codesign'' finished with non-zero exit value 1
Ad when I add --debug I see error: The specified item could not be found in the keychain.
Is there some additional item that might need to be in the keychain that’s missing in the CI environment, but might already be present in my desktop environment?rsktash
03/02/2021, 6:42 AMsize
parameter
The issue is specific to desktop app. Android app is working as expectedrsktash
03/02/2021, 10:20 AMPath.op(path2: Path, op: Op)
and Path.op(path1: Path, path2: Path, op: Op)
But in compose there is only one Path.op(path1: Path, path2: Path, op: Op)
Dirk Hoffmann
03/02/2021, 11:20 AMDraget
03/02/2021, 3:12 PM./gradlew wrapper --gradle-version 6.8.4
and noticing the typo after gradle already accepted the command without any feedback whatsoever. Trying any other gradle command including ./gradlew wrapper --gradle-version 6.8.3
no longer works unless I edit the config file manually.
Lots and lots of more re-indexing. ./gradlew clean
taking 1m20s.
Launching the compose demo application only to see an error about invalid MSI version. Luckily I know MSI and realize it needs three version parts, the wizard created only 1.0, so changing it to 1.0.0.
Running the application finally works. Trying to Update the compsoe version and changing some things about the main class, gradle/idea deciding to re-index just random things (it included my JDK!?) and taking another few minutes.
While doing this all, had two IDEA errors (which I reported) inbetween.
So the whole 'test' took almost two hours… granted, with sidetracking. But the Gradle<->Idea<->compose experience has really not been stellar so far. :(Yan Pujante
03/02/2021, 5:36 PMPreferences
API?note8g2018
03/03/2021, 10:13 AMMarcin Środa
03/03/2021, 11:40 AMCaused by: java.lang.ClassNotFoundException: java.sql.Time
Am I able to add this module to dmg?Yofou
03/03/2021, 12:12 PMtheapache64
03/03/2021, 2:56 PMYofou
03/04/2021, 12:39 PMundecorated
actually makes my window non-resizable, so I was wondering if there's a solution to make my window
undecorated but also resizable, thank you in advanced. 🙂Michael Paus
03/04/2021, 2:26 PMrawDragGestureFilter
of the Modifier is gone. Can anybody tell me how one is supposed to deal with mouse drags over a Canvas now? Any help is appreciated 😀Yan Pujante
03/04/2021, 3:20 PMphisch
03/04/2021, 10:19 PMSrSouza
03/05/2021, 3:06 PMdarkmoon_uk
03/06/2021, 7:33 AMdarkmoon_uk
03/06/2021, 7:33 AMjim
03/06/2021, 7:42 AM