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

Add speed limiter button to toolbar #142

Closed

Conversation

HendricksJudy
Copy link

Fixes #112

Add a button to the toolbar for enabling and disabling the speed limiter.

  • HomeComponent.kt

    • Add toggleSpeedLimiter function to handle the speed limiter toggle action.
    • Add speedLimiterAction to the headerActions list.
  • Actions.kt

    • Add SpeedLimiterButton composable function to render the speed limiter button.
  • HomePage.kt

    • Add SpeedLimiterButton to the TopBar composable function.
    • Add SpeedLimiterButton to the HomePage composable function.

Fixes amir1376#112

Add a button to the toolbar for enabling and disabling the speed limiter.

* **HomeComponent.kt**
  - Add `toggleSpeedLimiter` function to handle the speed limiter toggle action.
  - Add `speedLimiterAction` to the `headerActions` list.

* **Actions.kt**
  - Add `SpeedLimiterButton` composable function to render the speed limiter button.

* **HomePage.kt**
  - Add `SpeedLimiterButton` to the `TopBar` composable function.
  - Add `SpeedLimiterButton` to the `HomePage` composable function.
@amir1376
Copy link
Owner

Hi there. I don't want to add the speed limiter to toolbar. instead I'm working on a design in another section to add speed limiter to that instead.

@amir1376 amir1376 closed this Nov 26, 2024
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.

Speed Limiter Button
2 participants