Skip to content

Commit

Permalink
Document theme toggle buttons option
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Apr 29, 2024
1 parent 91ee728 commit 3170849
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/digging-deeper/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,20 @@ use \Hyde\Framework\Services\AssetService;
'hydefront_cdn_url' => AssetService::HYDEFRONT_CDN_URL,
```

### `theme_toggle_buttons`

>info This feature was added in HydePHP v1.7.0

This setting allows you to enable or disable the theme toggle buttons in the navigation menu.

```php
// filepath config/hyde.php
'theme_toggle_buttons' => true,
```

If the `Feature::Darkmode` setting is disabled in the `features` array in the same file, this won't do anything, but if darkmode is enabled,
setting this setting to `false` the buttons will not show up in the app layout nor the documentation layout;
instead the appropriate color scheme will be automatically applied based on the browser system settings.

## Blade Views

Expand Down

0 comments on commit 3170849

Please sign in to comment.