Skip to content

Commit

Permalink
Adapt height of network indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandar-apostolov committed Oct 30, 2023
1 parent 4c43f3f commit 56d3184
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import io.getstream.video.android.compose.theme.VideoTheme
import io.getstream.video.android.core.model.NetworkQuality

Expand Down Expand Up @@ -95,3 +96,11 @@ internal fun ConnectionBars(modifier: Modifier = Modifier, colors: Triple<Color,
)
}
}

@Preview
@Composable
private fun BarsPreview() {
VideoTheme {
ConnectionBars(colors = Triple(Color.Red, Color.Blue, Color.Green))
}
}
4 changes: 2 additions & 2 deletions stream-video-android-ui-common/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
<dimen name="stream_video_floatingVideoWidth">140dp</dimen>
<dimen name="stream_video_floatingVideoRadius">16dp</dimen>
<dimen name="stream_video_callParticipant_container_radius">16dp</dimen>
<dimen name="stream_video_connectionIndicatorBarMaxHeight">8dp</dimen>
<dimen name="stream_video_connectionIndicatorBarWidth">1dp</dimen>
<dimen name="stream_video_connectionIndicatorBarMaxHeight">10dp</dimen>
<dimen name="stream_video_connectionIndicatorBarWidth">2dp</dimen>
<dimen name="stream_video_connectionIndicatorBarSeparatorWidth">2dp</dimen>
<dimen name="stream_video_audioLevelIndicatorBarMaxHeight">22dp</dimen>
<dimen name="stream_video_audioLevelIndicatorBarWidth">2dp</dimen>
Expand Down

0 comments on commit 56d3184

Please sign in to comment.