From 3ede29fb6d8c077096fa9e7685201d6968943263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sat, 12 Oct 2024 08:57:24 +0800 Subject: [PATCH] documentation: Improve theme --- mkdocs.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index 56bdf96a..d5cdcee4 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -11,18 +11,22 @@ theme: logo: assets/icon.svg favicon: assets/icon.svg palette: + - media: "(prefers-color-scheme)" + toggle: + icon: material/link + name: Switch to light mode - media: "(prefers-color-scheme: light)" scheme: default primary: white toggle: - icon: material/brightness-7 + icon: material/toggle-switch name: Switch to dark mode - media: "(prefers-color-scheme: dark)" scheme: slate primary: black toggle: - icon: material/brightness-4 - name: Switch to light mode + icon: material/toggle-switch-off + name: Switch to system preference features: # - navigation.instant - navigation.tracking