Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decorated dialog support #513

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

devkanro
Copy link
Collaborator

@devkanro devkanro commented Aug 5, 2024

Description

This PR provide DecoratedDialog support and upgrade the JBR api to 1.0.2

fixed #512

@devkanro devkanro requested a review from rock3r August 5, 2024 04:44
@devkanro devkanro added feature New feature or request api Changes related to the public API standalone Something that impacts the standalone theme labels Aug 5, 2024
Comment on lines +49 to +54
if (!JBR.isAvailable()) {
error(
"DecoratedWindow can only be used on JetBrainsRuntime(JBR) platform, " +
"please check the document https://github.com/JetBrains/jewel#int-ui-standalone-theme",
)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth extracting into assertUsingJBR() and reuse in DecoratedWindow, too?

}

// Using undecorated window for linux
val undecorated = DesktopPlatform.Linux == DesktopPlatform.Current
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit:

Suggested change
val undecorated = DesktopPlatform.Linux == DesktopPlatform.Current
val undecorated = DesktopPlatform.Current == DesktopPlatform.Linux

Comment on lines +13 to +14
import androidx.compose.runtime.getValue
import androidx.compose.runtime.setValue
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't look like these are used

@@ -1,6 +1,6 @@
[versions]
commonmark = "0.22.0"
composeDesktop = "1.7.0-dev1743"
composeDesktop = "1.7.0-dev1750"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this needed? Otherwise I'd do it separatey so it shows in the release notes

@rock3r rock3r enabled auto-merge (squash) August 5, 2024 07:46
@rock3r
Copy link
Collaborator

rock3r commented Aug 14, 2024

@devkanro ping

@rock3r
Copy link
Collaborator

rock3r commented Aug 26, 2024

@devkanro ping again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Changes related to the public API feature New feature or request standalone Something that impacts the standalone theme
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for creating decorated dialog windows
2 participants