SrSouza
02/27/2023, 12:22 PM姜尚
02/27/2023, 4:57 PMjames
02/28/2023, 12:07 PMmikehearn
02/28/2023, 3:59 PMLamberto Basti
03/03/2023, 1:35 PMBox
with a such modifier to intercept the clicks and do stuff, but I want the content
of the box to also receive the clicks!Kirill Grouchnikov
03/03/2023, 2:14 PMKirill Grouchnikov
03/03/2023, 2:16 PMspierce7
03/03/2023, 10:42 PMMatthiasMeger
03/06/2023, 2:50 PMMenu("File", mnemonic = 'F') {
Item("Copy", onClick = { action = "Last action: Copy" }, shortcut = KeyShortcut(Key.C, ctrl = true))
Item("Paste", onClick = { action = "Last action: Paste" }, shortcut = KeyShortcut(Key.V, ctrl = true))
}
This all works in my, including shortcuts and mnemonics.
I know like to add a "listener" to each Item, so when the item gets the focus (but the user hasn't clicked on the item) a "preview" action is triggered.
The reason is: the user can select different background images per item. By navigating through the menu the app should immediately show each background image as soon as an Item gets the focus (in Swing I would listen for "isArmed").
However, first when a item is clicked the background image is really set as new background image.
The desktop tutorials shows how to add PoinerEvents (->https://github.com/JetBrains/compose-jb/tree/2af56d8cbf85d0530b2849545aba65b8668f0f3c/tutorials/Mouse_Events#mouse-enter-listeners).
However, I don't see a modifier parameter I can pass to "Item". How can I add a PointerEvent/Listener to an Item?Olivier Patry
03/06/2023, 7:55 PMMenu
content, state & action (of the WindowScope
) for different "screens"?
Currently, I have a single desktop specific MyApp
class which is responsible to
• provide main()
• create application {}
• create main Window
composable
• delegate main window content to a MyAppContent
composable
The MyAppContent
then handles the navigation logic between "screens" (using #decompose library (but whatever?))
Depending on the navigation state machine, a proper FooScreen
composable is chosen to display screen content.
Each of these "screen" have its own FooViewModel
to drive logic and UI binding.
Now, back to the menu topic.
AFAIK, the menu must be managed within the WindowScope
and thus currently in my main top level MyApp
.
For general purpose menu items like preferences, it's fine but several items are contextual to the screen being displayed.
I need to
• decide if an item must be displayed or not
• decide if the item is enabled or disabled
• provide a business logic callback to call when item is clicked (most likely to a FooViewModel
entity)
I'm not sure what would work well in this setup, ideally isolating desktop specific stuff like that outside main screens meant to be reusable at least on Android and maybe more later.
If "duplicating" some boilerplate of "screens" would be needed to combine desktop feature and reusing code in other platforms, it's fine though.Michael Paus
03/07/2023, 3:00 PMnikunjsakhrelia
03/08/2023, 9:21 AMQtGui
can I use the Compose for the UI, any reference will be great helpZeeshan Syed
03/08/2023, 12:02 PM:packageMsi
, install .msi
and try to run the .exe
file, then it is not opening. It doesn't even throw any error. How to fix this and how to check logs of an executive application?Pablichjenkov
03/09/2023, 5:30 PMeddie
03/09/2023, 10:23 PMIcon(...)
composables will embed base64 bitmap data even with a vectorPainter
, but it's still very neat to see how much of it does "just work".Eric O'Connell
03/10/2023, 5:44 AMArtem Surodeev
03/10/2023, 10:54 AMritesh
03/10/2023, 4:53 PMShubhasai Mohapatra
03/11/2023, 5:44 PMAlexandru Hadăr
03/12/2023, 7:25 PMAbhinav
03/12/2023, 10:36 PMTypster
using Desktop Compose. It's been a really fun journey learned about game loop, audio streams and many other essentials things around jvm and desktop environment.
Please do try out the game would love to hear the feedback!
Repo Link - https://github.com/abhinav12k/Typster
Don't forget to ⭐️ the repodimsuz
03/12/2023, 11:11 PMText
displaying a multiline String. What would be the nicest way (or any way) to find out which line of this Text is under the mouse cursor?
I see that Text
has onTextLayout
, so I guess I can use it to calculate stuff, so then the question boils down to:
How do I get coordinates of the mouse cursor relative to the currently rendered Composable underneath it?adte
03/13/2023, 2:13 AMdrawBehind
modifier, which doesn't provide a Composable scope. However I need a composable scope in order to use rememberTextMeasurer
in drawText
. How can I do that?Shubhasai Mohapatra
03/13/2023, 2:18 PMSlackbot
03/14/2023, 4:43 AMOdin
03/14/2023, 10:36 AMmohamed rejeb
03/14/2023, 3:17 PMSlackbot
03/15/2023, 7:43 AMFranklin
03/15/2023, 11:47 AM$ /Applications/MyApp.app/Contents/MacOS/MyApp
Error occurred during initialization of VM
Could not reserve enough space for code cache (245760K)
Locally, my app builds and runs just fine. However, I don't have the certs too sign it locally. Would anyone know what's up?
I tried running a CI build using a commit from weeks ago that I know in the past has generated a perfectly normal executable/binary, and that still failed with the same error. So it's almost certainly due to some change on the CI machines, I'm just trying to narrow down what?Alina Dolgikh [JB]