fix: white text icon for dark theme only

pull/10493/head
Tienson Qin 2023-11-05 19:56:12 +08:00
parent 942b1677e3
commit 2d1d841926
1 changed files with 2 additions and 2 deletions

View File

@ -109,8 +109,8 @@
{:style {:background (when (#{:gradient} icon-theme) "linear-gradient(-65deg, #8AE8FF, #5373E7, #369EFF, #00B1CC)")
:box-shadow (when (#{:color :gradient} icon-theme) "inset 0 0 0 1px rgba(255,255,255,0.3) ")}
:class (cond-> "w-5 h-5 rounded flex items-center justify-center"
(= icon-theme :color) (str " bg-accent-10 dark:bg-accent-09 text-white")
(= icon-theme :gray) (str " bg-gray-05 dark:bg-gray-05 text-white"))}
(= icon-theme :color) (str " bg-accent-10 dark:bg-accent-09 dark:text-white")
(= icon-theme :gray) (str " bg-gray-05 dark:bg-gray-05 dark:text-white"))}
(icon/root icon {:size "14"
:class ""})]
[:div.flex.flex-1.flex-col