-
Notifications
You must be signed in to change notification settings - Fork 42
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
iconbutton impl #164
Merged
rock3r
merged 12 commits into
main
from
davide.magli/157-iconbutton-same-specs-as-actionbutton-in-swing
Oct 12, 2023
Merged
iconbutton impl #164
rock3r
merged 12 commits into
main
from
davide.magli/157-iconbutton-same-specs-as-actionbutton-in-swing
Oct 12, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fscarponi
force-pushed
the
davide.magli/157-iconbutton-same-specs-as-actionbutton-in-swing
branch
from
October 10, 2023 15:14
da55acd
to
63dd6f6
Compare
fscarponi
changed the title
Davide.magli/157 iconbutton same specs as actionbutton in swing
iconbutton impl
Oct 11, 2023
fscarponi
force-pushed
the
davide.magli/157-iconbutton-same-specs-as-actionbutton-in-swing
branch
from
October 11, 2023 11:04
4f36d72
to
2779c33
Compare
rock3r
requested changes
Oct 11, 2023
ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/IntUiBridge.kt
Outdated
Show resolved
Hide resolved
...alone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonStyling.kt
Outdated
Show resolved
Hide resolved
...alone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonStyling.kt
Show resolved
Hide resolved
ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/IntUiBridge.kt
Outdated
Show resolved
Hide resolved
...les/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/ComponentShowcaseTab.kt
Outdated
Show resolved
Hide resolved
samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/components/Buttons.kt
Outdated
Show resolved
Hide resolved
devkanro
reviewed
Oct 11, 2023
The existing metric defining approach, IconButtonMetrics, was restricting the theming of the IconButton component effectively. Thus, the 'IconButtonMetrics' was replaced by 'IconButtonStyle' and the necessary changes for the field change were implemented. This would assist in providing the same theme across different platforms. The 'IconButton' has been made theme-aware by allowing access to theme and style via properties. Changes were made in implementations concerning IntelliJTheme, BaseIntUiTheme, and ComponentShowcaseTab. File names were also appropriately renamed.
Revised the button state logic of the IconButton component in IconButtonMetrics.kt with a more intuitive 'when' statement, improving readability. Likewise, method declarations in the IntUiBridge.kt file were reformatted for brevity. This maintenance will enhance the code's readability and thus its maintainability. Changes in IconButton.kt reflect the updated logic and background colour application. The @stable annotation was attached to the IconButtonMetrics interface to indicate thread-safe and side-effect-free operations, a useful indicator for composing efficient composable functions in Jetpack Compose.
The methodology for selecting the state of the IconButton was refactored from a 'when' statement to the 'chooseValue'
The IntUiDarkTheme now uses different colors for the "pressed" and "hovered" states of a button. Additionally, the background color selection logic has been refactored in IconButtonMetrics.kt to use a simpler and more readable 'when' construct.
This commit replaces the 'more' button icon with a 'close' button icon in ComponentShowcaseTab.kt. It also removes the 'propagateMinConstraints' property from IconButton.kt. In addition, it adjusts IconButton to not necessarily need 'Modifier.size' in Buttons.kt. These changes are made to improve the UI's look and functionality.
…ntuitive interface. Default background color for disabled buttons has been set
fscarponi
force-pushed
the
davide.magli/157-iconbutton-same-specs-as-actionbutton-in-swing
branch
from
October 12, 2023 07:28
8683bdf
to
89f2840
Compare
This update adds border styling to the IconButton component. The main changes include importing 'border' from the compose foundation, defining border color for different button states, and applying the border in the IconButton component. This change was made to improve the overall visual appearance of the button, especially in different states, providing a more intuitive interface. It also helps better distinguish the buttons from the background, improving user interaction."
rock3r
approved these changes
Oct 12, 2023
rock3r
deleted the
davide.magli/157-iconbutton-same-specs-as-actionbutton-in-swing
branch
October 12, 2023 13:33
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.