https://kotlinlang.org logo
Title
m

marzelwidmer

01/31/2023, 5:39 PM
hello how can I have a look and feel like native osx app with jb-compose. i am a rookie ;) in Frontend development
j

jw

01/31/2023, 5:42 PM
That is not an option
It's technically possible by replicating the look, feel, and behavior of every native Mac OS widget yourself, but I don't think that meshes well with your statement of
I am a rookie in Frontend development
unfortunately, as that is a herculean undertaking
c

Colton Idle

01/31/2023, 5:50 PM
there are some folks working on components that you should be able to drag and drop that look a little less like android and more suited to desktop https://github.com/kirill-grouchnikov/aurora
k

Kirill Grouchnikov

01/31/2023, 5:55 PM
Might want to try https://github.com/Chozzle/compose-macos-theme and see how close it gets to the native look.
a

adte

02/01/2023, 2:31 AM
IMO, you shouldn't want to replicate native exactly. If you look at great cross platform apps like Google Chrome or IntelliJ, they use some native elements like the window buttons and kinda blend with the platform in their design, but then they also have their own design touch that looks familiar across platforms. Also, what if native controls don't have the UX you're looking for? e.g. Windows has a super dated color picker control
So yeah my design philosophy is to take the platform into account and make some adjustments to look good on each OS, but also have my own style guide going on. The two can go together.
Another example, Google Chrome never used native context menus. On Windows, the modern context menus had some sluggish animation with them, whereas Chrome context menus have a nice small animation and display the keyboard shortcuts greyed out on the side nicely. Do I miss not having native context menus in Chrome? Nope, not ever. (They do use the native popup windows of the OS to draw them though)
Sorry that I'm not answering the question btw :)
c

Chris Sinco [G]

02/03/2023, 6:37 AM
If you’re really looking for native look and feel on macOS, and have used a reactive framework like Compose, you might be better off with SwiftUI to be honest.
j

jw

02/03/2023, 11:31 AM
Plus you could still use Molecule to write your logic in Compose. Emit a UI model that's common to both toolkits, then do a relatively simple mapping to each one in their native language.