-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add how to use to remote controls (#937)
**Background** How to use dialog will help new users to understand **Changes** - Add how to use dialog **Test plan** - Open saved remote and click how to use
- Loading branch information
1 parent
4dfd61a
commit 838796f
Showing
7 changed files
with
951 additions
and
11 deletions.
There are no files selected for viewing
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
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
31 changes: 31 additions & 0 deletions
31
...es/remotecontrols/impl/grid/local/composable/components/ComposableRemoteDialogHowToUse.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.flipperdevices.remotecontrols.impl.grid.local.composable.components | ||
|
||
import androidx.compose.material.MaterialTheme | ||
import androidx.compose.runtime.Composable | ||
import com.flipperdevices.core.ui.dialog.composable.FlipperDialog | ||
import com.flipperdevices.remotecontrols.grid.saved.impl.R | ||
|
||
@Composable | ||
internal fun ComposableRemoteDialogHowToUse( | ||
isShowDialog: Boolean, | ||
onClose: () -> Unit, | ||
) { | ||
if (!isShowDialog) { | ||
return | ||
} | ||
|
||
val imageId = if (MaterialTheme.colors.isLight) { | ||
R.drawable.ir_flipper_format_light | ||
} else { | ||
R.drawable.ir_flipper_format_dark | ||
} | ||
|
||
FlipperDialog( | ||
buttonTextId = R.string.rc_dialog_how_to_use_btn, | ||
onClickButton = onClose, | ||
onDismissRequest = onClose, | ||
imageId = imageId, | ||
titleId = R.string.rc_dialog_how_to_use_title, | ||
textId = R.string.rc_dialog_how_to_use_text, | ||
) | ||
} |
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
455 changes: 455 additions & 0 deletions
455
components/remote-controls/grid/saved/impl/src/main/res/drawable/ir_flipper_format_dark.xml
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.