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

[Release] 0.1.0 #82

Draft
wants to merge 143 commits into
base: master
Choose a base branch
from
Draft

[Release] 0.1.0 #82

wants to merge 143 commits into from

Conversation

Sanlorng
Copy link
Collaborator

@Sanlorng Sanlorng commented Nov 15, 2024

  • Fix merge conflicts
  • Fix color usage
  • Slider Refactor

Sanlorng and others added 30 commits May 31, 2024 11:59
[fluent] [Break Change] rename `training` to `trailing`.
[fluent] Add `Geometry` to FluentTheme
[fluent] Update `Acrylic` default style.
[fluent] Add `Expander` and `ExpanderItem`.
[fluent] Add `PillButton` and `LiteFilter`.
[fluent] Add `SegmentedControl` and `SegmentedButton`.
Sanlorng and others added 30 commits November 13, 2024 19:38
This commit introduces the `NavigationView` component, a navigation control that provides a hierarchical menu for navigating an application.

It supports different display modes, including Top, Left, LeftCompact, and LeftCollapsed, and provides customization options for title, back button, expanded button, auto-suggest box, footer items, and content padding.

The `NavigationView` manages navigation state, including expanded state and indicator offset, and provides default color schemes for navigation items.

This commit also includes the implementation of navigation menu items, separators, and indicator components for visual feedback during navigation.
This commit introduces system colors for Fluent UI components. These colors are used for attention, success, caution, critical, and neutral states.

The colors are generated based on the dark mode setting and provide both solid and background variants.
[fluent] feat: Implement system colors
This commit fixes the indicator offset calculation in `NavigationView`, updates the offset calculation logic to correctly handle different scenarios, ensuring the indicator is properly placed during transitions.
This commit adjusts the window insets padding applied to the `NavigationView` component in the Gallery app to ensure the correct padding is used in different navigation display modes, including the collapsed state.

It removes the conditional application of window insets padding based on the navigation display mode, instead applying the padding consistently, using the `windowInsetsPadding` modifier with `windowInset` and `collapseWindowInset` for padding specific to collapsed mode.

The padding applied to the content in the collapsed mode is updated to fixed padding of 48dp to the top using `PaddingValues`. This ensures the content is properly positioned and avoids overlap with system UI elements in the collapsed navigation display.
…Item

This commit allows customizing the `interactionSource` for `NavigationMenuItem` in `NavigationView`.

This enables developers to control the visual feedback of the menu item based on user interactions, such as hover, press, and focus.

The `interactionSource` property is now available for both the `menuItem` function in `NavigationMenuScope` and the `MenuItem` composable function in `NavigationMenuItemScope`.
This commit updates the Haze dependency version to 1.0.2.
This commit fixes an issue where the `TabView` content could exceed its bounds, potentially causing layout issues.

The fix involves wrapping the content with `wrapContentWidth(Alignment.Start)`, ensuring that the content is constrained within the available width and aligned to the start. This prevents overflow and maintains the intended layout.
This commit refactors the Slider component to improve its layout and interaction behavior.

The layout is improved by removing unnecessary BoxWithConstraints and using layout modifiers to handle size and positioning of the rail, track, and thumb components. This makes the layout more efficient and predictable.

The interaction is enhanced by immediately changing the slider value upon press, providing a more responsive user experience.

Additionally, the commit simplifies the calculation of thumb offset by using Float instead of Dp, and ensures the tick marks are properly displayed within the slider's bounds.
Add context menu key modifiers mapping for macOS.
[gallery] chore(deps): Update Haze to 1.0.2
[fluent] Fix: Prevent TabView from exceeding its bounds
This commit adds a selected color scheme for NavigationItem in NavigationView.

It updates the default color schemes for NavigationItem based on the display mode and selection state, applying appropriate colors for selected and unselected items in both Top and Side navigation modes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants