Comments (2)
Even removing all the Aurora pieces around the layout of the title pane, the menu bar and the main content, resizing an undecorated window vertically is pretty janky. I'm going to file a bug on compose-jb with a small reproducer. I don't think this is something I can address in Aurora, unless there's some fundamental issue with the resizing logic in https://github.com/kirill-grouchnikov/aurora/blob/icicle/window/src/desktopMain/kotlin/org/pushingpixels/aurora/window/WindowAWTHandler.kt
from aurora.
This is indeed a painful one. Compose Desktop windows are Swing windows, and that's not something that I can change in Aurora. Resizing undecorated Swing windows has always been bad, pretty much since the beginning, and I don't know of any way to make it as smooth as natively decorated windows.
If you check https://github.com/kirill-grouchnikov/radiance and run the main demo in org.pushingpixels.radiance.demo.theming.main.Check
, it exhibits most of the same janky behavior that you see right now in Aurora - also under core Swing look-and-feels that support undecorated windows like Metal. As you resize the window, there's a noticeable lag of a few frames where the window content is "trying" to catch up to the new size.
The one thing that is different in Aurora is the vertical resizing behavior where the content of the title pane indeed is jumping up and down quite noticeably. As far as the layout of the window content, it's a simple Column
(see the code), but now that I think of it, it should be a Box
instead that gives however much vertical space needed to the title pane, and the rest (with weight
probably) to the app content. I'm going to play with that layout a little bit and see if it improves things a bit.
Unfortunately, at least at the moment, there is nothing "canonical" I can compare Aurora to. The base distribution of Compose Desktop does not come with a reference implementation of undecorated windows. They do provide the WindowDraggableArea
composable to implement a custom window title pane, but nothing that would show how to a complete custom undecorated window that can be not only moved around, but also resized from sides and corners.
from aurora.
Related Issues (20)
- [Component] Add color selector command button
- [Component] Support application specific commands and popups HOT 2
- [Component] Wrap the breadcrumb bar component in a projection
- [Component] Use accented background fill for the icon gutter in popup menus
- [Component] Add single-line display prototype attribute to label presentation model
- [Component] More presentation options for comboboxes HOT 1
- [SVG Transcoder] Full support for radial gradients HOT 5
- [Component] Improve usability of command popup menus
- [Component] RTL-aware Side enum values
- [Component] [Window] Mutli-Monitor Issues on Windows 10 HOT 7
- [Window] Support customizing title pane buttons
- [Component] Add support for scrollable containers
- [Theming] Add Modifier.auroraBorder modifier
- [Component] Add support for using a custom color scheme bundle for a specific projection HOT 3
- [Component] Revisit CommandButtonPresentationModel.isMenu
- [Component] `textAlign = TextAlign.Center` aligns text to the center-right HOT 1
- Support for @Preview and associated IDE plugin HOT 2
- [Component] Support querying intrinsic size (width / height) on projections
- [Theming] Revisit implementations of older painters
- [Component] Revisit circular progress indicators
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aurora.