Skip to content

Conversation

@YugaJ7
Copy link
Collaborator

@YugaJ7 YugaJ7 commented May 28, 2025

No description provided.

…, search field, and a list of `TopicCard`s.

- Refactored `DetailScreen` to use `Scaffold` with a top app bar.
- Removed `compose.preview` and `compose.components.uiToolingPreview` dependencies and added `androidx.compose.ui:ui` dependency.
- Added Noto Sans font files (bold, medium, regular).
@YugaJ7 YugaJ7 requested a review from RajashekarRaju May 28, 2025 12:50
YugaJ7 added 4 commits May 29, 2025 16:59
…unctionality.

- Add `ic_check` and `ic_content_copy` drawable resources.
- Update `App.kt` to use `AppTypography`.
- Corrected trailing commas in `DetailScreen.kt` and `App.kt` for improved code style.
- Refactored `TopicScreen` for improved UI and state management.
- Suppressed ktlint warnings in main platform files.
- Disabled ktlint for generated files in `.editorconfig`.
# Conflicts:
#	composeApp/src/desktopMain/kotlin/com/developersbreach/kotlindictionarymultiplatform/main.kt
Copy link
Member

@RajashekarRaju RajashekarRaju left a comment

Choose a reason for hiding this comment

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

Add extended material icons dependency instead of creating drawable resource files. You need below dependency

implementation(compose.materialIconsExtended)

Text(text = example.code, style = MaterialTheme.typography.body2)
Spacer(modifier = Modifier.height(8.dp))
}
val tableOfContents = buildList {
Copy link
Member

Choose a reason for hiding this comment

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

This sort of implementation is very confusing, UI behavior cannot be dynamic with this hardcoded behavior.
We will get back to this after you merge this PR with better implementation.

YugaJ7 and others added 18 commits May 30, 2025 20:09
- Add Material Icons Extended dependency.
- Update `androidx.compose.ui:ui` to use version catalog.
- Refactored `Font.kt` and `Colors.kt` into the `ui.theme` package.
- Introduced `KotlinDictionaryTheme` for applying Material 3 theming.
- Updated `App.kt` to use `KotlinDictionaryTheme`.
- Adjusted typography and color definitions for Material 3.
… and theme colors.

- Replace custom bookmark and copy icons with Material icons.
- Adjust padding and typography for consistency with Material3 guidelines.
…ources.

- Replaced hardcoded strings with `stringResource` calls for UI elements.
# Conflicts:
#	composeApp/src/commonMain/composeResources/values/string.xml
#	composeApp/src/commonMain/kotlin/com/developersbreach/kotlindictionarymultiplatform/ui/screens/detail/DetailScreen.kt
#	composeApp/src/commonMain/kotlin/com/developersbreach/kotlindictionarymultiplatform/ui/screens/topic/TopicScreen.kt
#	gradle/libs.versions.toml
…ents.

- Update color usage to `MaterialTheme.colorScheme`.
- Remove unused `androidx.ui` dependency from `androidMain`.
- Adjusted text colors in `TopicScreen` to use `onBackground` for better contrast.
… components.

- Introduced a `PreviewUtils.kt` file containing utility functions for preview data.
…t/dark theme previews.

- Change `CodeExampleBox` border color to `onPrimaryContainer`.
… `TopicViewModel`.

- Updated `TopicScreen` and `SearchField` to use the ViewModel's state.
- Modified `SearchFieldPreview` to reflect the changes in `SearchField`.
… logic.

- Created `TopicScreenLayout` and `DetailScreenContent` composables.
- Introduce `FakeTopicViewModel` for `TopicScreenPreview`.
- Add `fakeTopicDetails` and `sampleTopicList` to `PreviewUtils.kt` for sample data.
@YugaJ7 YugaJ7 requested a review from RajashekarRaju June 1, 2025 13:30
@YugaJ7 YugaJ7 merged commit 825df3e into master Jun 1, 2025
1 check passed
@RajashekarRaju RajashekarRaju deleted the yuga/detail-topic-ui branch June 9, 2025 14:47
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