feat(navbar): toggle theme inside navbar (#759)

* feat(theme-toggle): toggle inside navbar

* chore: used partial parameters

* chore: create a constant for icons height inside navbar

* feat: better style integration

* review: invert enable label option

* review: change class value

* review

Co-authored-by: Xin <5097752+imfing@users.noreply.github.com>

* docs: theme toggle

* docs: translations

---------

Co-authored-by: Xin <5097752+imfing@users.noreply.github.com>
This commit is contained in:
Ludovic Fernandez
2025-08-16 16:46:15 +01:00
committed by GitHub
co-authored by Xin
parent 880084b091
commit 6613f94b75
6 changed files with 35 additions and 7 deletions
@@ -64,6 +64,12 @@ menu:
params:
icon: github
```
5. تبديل السمة
```yaml
- name: Theme Toggle
params:
type: theme-toggle
```
این آیتم‌های منو را می‌توان با تنظیم پارامتر `weight` مرتب کرد.
@@ -64,6 +64,12 @@ menu:
params:
icon: github
```
5. テーマ切り替え
```yaml
- name: Theme Toggle
params:
type: theme-toggle
```
これらのメニュー項目は `weight` パラメータを設定することで並べ替えられます。
@@ -64,6 +64,12 @@ There are different types of menu items:
params:
icon: github
```
5. Theme Toggle
```yaml
- name: Theme Toggle
params:
type: theme-toggle
```
These menu items can be sorted by setting the `weight` parameter.
@@ -64,6 +64,12 @@ menu:
params:
icon: github
```
5. 主题切换
```yaml
- name: Theme Toggle
params:
type: theme-toggle
```
通过设置 `weight` 参数可以调整菜单项的排序。