Skip to content

Commit

Permalink
Merge pull request #1731 from Monkey-Matt/Monkey-Matt-patch-3
Browse files Browse the repository at this point in the history
[Documentation] Fix warning box/text in docs
  • Loading branch information
bentrengrove authored Nov 29, 2023
2 parents f6785c2 + 87445d9 commit d7f9b98
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/systemuicontroller.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Maven Central](https://img.shields.io/maven-central/v/com.google.accompanist/accompanist-systemuicontroller)](https://search.maven.org/search?q=g:com.google.accompanist)

!!! warning
**This library is deprecated, and the API is no longer maintained. We recommend forking the implementation and customising it to your needs.** The original documentation is below.
**This library is deprecated, and the API is no longer maintained. We recommend forking the implementation and customising it to your needs.** The original documentation is below.

## Migration
Recommendation: If you were using SystemUIController to go edge-to-edge in your activity and change the system bar colors and system bar icon colors, use the new [Activity.enableEdgeToEdge](https://developer.android.com/reference/androidx/activity/ComponentActivity#(androidx.activity.ComponentActivity).enableEdgeToEdge(androidx.activity.SystemBarStyle,androidx.activity.SystemBarStyle)) method available in androidx.activity 1.8.0-alpha03 and later. This method backports the scrims used on some versions of Android. [This](https://github.com/android/nowinandroid/pull/817) is a sample PR of the migration to the new method and removing the dependency on SystemUIController in Now in Android.
Expand Down
4 changes: 2 additions & 2 deletions docs/themeadapter-appcompat.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Maven Central](https://img.shields.io/maven-central/v/com.google.accompanist/accompanist-themeadapter-appcompat)](https://search.maven.org/search?q=g:com.google.accompanist)

!!! warning
**This library is deprecated, and the API is no longer maintained.** The original documentation is below.
**This library is deprecated, and the API is no longer maintained.** The original documentation is below.

## Migration
Recommendation: Use the [Material Theme Builder](https://m3.material.io/theme-builder) tool, or an alternative design tool, to generate a matching XML and Compose theme implementation for your app. See [Migrating XML themes to Compose](https://developer.android.com/jetpack/compose/designsystems/views-to-compose) to learn more.
Expand Down Expand Up @@ -186,4 +186,4 @@ limitations under the License.
[materialtheme]: https://developer.android.com/reference/kotlin/androidx/compose/material/MaterialTheme
[colors]: https://developer.android.com/reference/kotlin/androidx/compose/material/Colors
[typography]: https://developer.android.com/reference/kotlin/androidx/compose/material/Typography
[shapes]: https://developer.android.com/reference/kotlin/androidx/compose/material/Shapes
[shapes]: https://developer.android.com/reference/kotlin/androidx/compose/material/Shapes
4 changes: 2 additions & 2 deletions docs/themeadapter-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Maven Central](https://img.shields.io/maven-central/v/com.google.accompanist/accompanist-themeadapter-core)](https://search.maven.org/search?q=g:com.google.accompanist)

!!! warning
**This library is deprecated, and the API is no longer maintained.** The original documentation is below.
**This library is deprecated, and the API is no longer maintained.** The original documentation is below.

## Migration
Recommendation: Use the [Material Theme Builder](https://m3.material.io/theme-builder) tool, or an alternative design tool, to generate a matching XML and Compose theme implementation for your app. See [Migrating XML themes to Compose](https://developer.android.com/jetpack/compose/designsystems/views-to-compose) to learn more.
Expand Down Expand Up @@ -62,4 +62,4 @@ limitations under the License.
```

[compose]: https://developer.android.com/jetpack/compose
[api]: ../api/themeadapter-core
[api]: ../api/themeadapter-core
8 changes: 4 additions & 4 deletions docs/themeadapter-material.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Maven Central](https://img.shields.io/maven-central/v/com.google.accompanist/accompanist-themeadapter-material)](https://search.maven.org/search?q=g:com.google.accompanist)

!!! warning
**This library is deprecated, and the API is no longer maintained.** The original documentation is below.
**This library is deprecated, and the API is no longer maintained.** The original documentation is below.

## Migration
Recommendation: Use the [Material Theme Builder](https://m3.material.io/theme-builder) tool, or an alternative design tool, to generate a matching XML and Compose theme implementation for your app. See [Migrating XML themes to Compose](https://developer.android.com/jetpack/compose/designsystems/views-to-compose) to learn more.
Expand Down Expand Up @@ -58,9 +58,9 @@ MdcTheme {
This is especially handy when you're migrating an existing app, a `Fragment` (or other UI container) at a time.

!!! caution
If you are using an AppCompat (i.e. non-MDC) theme in your app, you should use
[AppCompat Theme Adapter](https://github.com/google/accompanist/tree/main/themeadapter-appcompat)
instead, as it attempts to bridge the gap between [AppCompat][appcompat] XML themes, and M2 themes in [Jetpack Compose][compose].
If you are using an AppCompat (i.e. non-MDC) theme in your app, you should use
[AppCompat Theme Adapter](https://github.com/google/accompanist/tree/main/themeadapter-appcompat)
instead, as it attempts to bridge the gap between [AppCompat][appcompat] XML themes, and M2 themes in [Jetpack Compose][compose].

### Customizing the M2 theme

Expand Down
4 changes: 2 additions & 2 deletions docs/web.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
A library which provides a Jetpack Compose wrapper around Android's WebView.

!!! warning
**This library is deprecated, and the API is no longer maintained. We recommend forking the implementation and customising it to your needs.** The original documentation is below.
**This library is deprecated, and the API is no longer maintained. We recommend forking the implementation and customising it to your needs.** The original documentation is below.

## Usage

Expand Down Expand Up @@ -71,4 +71,4 @@ repositories {
dependencies {
implementation "com.google.accompanist:accompanist-webview:<version>"
}
```
```

0 comments on commit d7f9b98

Please sign in to comment.