Etienne Savard
12/28/2020, 3:25 PMHamza
12/29/2020, 5:58 AMby remember
changed = remember
? And to then add on that, in the places where they are used, to use the value
property on them?
https://github.com/JetBrains/compose-jb/tree/master/tutorials/Keyboard#focus-related-eventsHamza
12/29/2020, 9:09 AMExecution failed for task ':packageMsi'.
> Process 'command 'C:\Users\hamza\.jdks\openjdk-15.0.1\bin\jpackage.exe'' finished with non-zero exit value 1
The stacktrace is just a ton of internal calls. let me know if you need it 😛xetra11
12/29/2020, 10:58 PMThomas
12/30/2020, 12:47 PMMarin Tolić
12/30/2020, 5:17 PMDominaezzz
12/30/2020, 10:27 PM@Composable
?xetra11
12/31/2020, 12:48 PMxetra11
12/31/2020, 1:36 PMrusshwolf
01/01/2021, 4:23 PMxetra11
01/01/2021, 9:15 PMxetra11
01/01/2021, 11:34 PMonClick
events if a modifier has been press or for example a "right click" happened?Thomas
01/02/2021, 10:31 AMinvokeLater {
JFrame.setDefaultLookAndFeelDecorated(true)
and later in a composable:
val window = AppManager.windows.first().window
getDefaults()["activeCaption"] =
ColorUIResource(colors.background.toArgb())
getDefaults()["activeCaptionText"] =
ColorUIResource(colors.primary.toArgb())
window.rootPane.windowDecorationStyle = JRootPane.FRAME
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName())
SwingUtilities.updateComponentTreeUI(window.rootPane)
Please note that I need to set the look and feel, because deep inside Compose (org.jetbrains.skiko.Library
) it apparently (decompiled code) is initialized as:
private final void miscSystemInit() {
System.setProperty("sun.awt.noerasebackground", "true");
System.setProperty("skija.staticLoad", "false");
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
System.setProperty("apple.laf.useScreenMenuBar", "true");
} catch (UnsupportedOperationException var2) {
}
}
The best thing would be to have a Swing Look and Feel that fits the Material Design look alike, at least for window decoration and menubars inside a window. And we might need the ability to have the client app specify a look and feel and pass it there...Glenn Martin
01/03/2021, 4:53 AMandroidx.navigation:navigation-compose
but getting aar gradle import issues. I've been told this is not available for desktop yet. All I want to do is have sidebar items and be able to change the view on the main right panel. Most of the examples are using some sort of state but for the same view only such as Issues or Code. Also If I have an onClick
method it tells me this can't return a composable as I've tried to do it that way, passing in a composable or returning a composable upon clickingRafs
01/03/2021, 9:32 AMCanvas
composable since there is no drawText
method. I have a requirement where I rotate the canvas and draw some lines with some text. I'm currently using drawContext.canvas.nativeCanvas.drawText
nfrankel
01/04/2021, 2:17 AMMutableState
?
(i’ve close to zero experience in android)nfrankel
01/04/2021, 2:17 AMpath
is updated
the files
list will reflect the changeSuser
01/04/2021, 2:26 AMnfrankel
01/04/2021, 8:33 AMColton Idle
01/05/2021, 4:47 AMCedric Ziel
01/05/2021, 9:20 AMColton Idle
01/05/2021, 1:25 PMAppManager.setEvents(
onAppStart = { println("onAppStart") }, // Invoked before the first window is created
onAppExit = { println("onAppExit") } // Invoked after all windows are closed
)
It doesn't tell you where you would call that though? Since it's invoked BEFORE window is created... I wouldn't put it in my window right? But where do I put it? As a top level function? I'm probably missing something basic here.Javier
01/05/2021, 2:48 PMException in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
at androidx.compose.desktop.ComposeLayer.<init>(ComposeLayer.kt:72)
at androidx.compose.desktop.ComposeWindow.<init>(ComposeWindow.kt:26)
at androidx.compose.desktop.AppWindow.<init>(AppWindow.kt:107)
at androidx.compose.desktop.AppWindow.<init>(AppWindow.kt)
at androidx.compose.desktop.AppWindowKt$Window$1.run(AppWindow.kt:76)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.NullPointerException
at java.base/java.io.Reader.<init>(Reader.java:167)
at java.base/java.io.InputStreamReader.<init>(InputStreamReader.java:72)
at org.jetbrains.skiko.Library.load(Library.kt:42)
at org.jetbrains.skija.impl.Library$Companion.staticLoad(Library.kt:9)
at org.jetbrains.skija.impl.Library.staticLoad(Library.kt)
at org.jetbrains.skija.PictureRecorder.<clinit>(PictureRecorder.java:9)
... 18 more
Colton Idle
01/05/2021, 6:47 PMLogan Knight
01/05/2021, 9:43 PMdata class
objects updated by the inputs. To use or not to use? Details will be in the thread.Thomas
01/06/2021, 10:12 AMpackage com.thomaskuenneth
import androidx.compose.desktop.Window
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
fun main() = Window {
Box(contentAlignment = Alignment.Center,
modifier = Modifier.fillMaxSize()) {
Button(onClick = {
println("Hello")
}) {
Text("Hallo")
}
}
}
F0X
01/06/2021, 4:39 PMjeggy
01/06/2021, 9:18 PMimplementation(compose.desktop.currentOs)
Whenever I add this line it breaks all usages of reflect(), when it's reflecting a suspend functionxetra11
01/07/2021, 7:02 AMFabrice
01/07/2021, 11:28 AM