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

QuickSettings Foundation #13

Merged
merged 23 commits into from
Jun 27, 2023
Merged

QuickSettings Foundation #13

merged 23 commits into from
Jun 27, 2023

Conversation

davidjiagoogle
Copy link
Collaborator

@davidjiagoogle davidjiagoogle commented Jun 15, 2023

This module is effective an extended branch of the feature.preview module. In terms of dependency, it depends on no other modules and is depended by feature.preview.

QuickSettingsUi is the drop down arrow. It has a composable below that spans the whole screen. When retracted, this composable is empty. When expanded, this composable is populated by ExpandedQuickSettingsUi.
ExpandedQuickSettingsUi is the composable with quickSetting items inside. It can be further expanded when one of its items is clicked.
QuickSettingUiItem is the composable for each quickSetting item.

In order to populate the quick settings contents, a list of QuickSettingsUiModel needs to be supplied to QuickSettingsUi. This list would contain the needed drawable and string resources for icon, titles, and descriptions of the quick settings items. It also contains the indices of the highlighted items, as well as the clickables for each item.

In PreviewScreen, several such QuickSettingsUiModels are already supplied. They contain the appropriate resources. However, the highlighted indices and clickables need to be supplied by logics in preview module

@davidjiagoogle davidjiagoogle merged commit 2ccf8da into google:main Jun 27, 2023
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.

3 participants