fix(UI): incorrect graph node edge color from the theme accent color (#10693)

* fix(ui): response layout for the check-updates els from the settings row

* fix(ui): incorrect graph node edge color from the theme accent color
This commit is contained in:
Charlie
2023-12-13 20:16:00 +08:00
committed by GitHub
parent 036df25a17
commit d1362dd771
2 changed files with 14 additions and 11 deletions

View File

@@ -80,12 +80,16 @@
(defn get-accent-color
[]
(when-let [hsl-color (some-> js/document.documentElement
(js/getComputedStyle)
(.getPropertyValue "--lx-accent-09")
(str/replace "hsl(" "")
(str/replace ")" "")
(str/split ","))]
(when-let [hsl-color (and (not (str/blank? (first hsl-color)))
(map js/parseFloat hsl-color))]
(apply util/hsl2hex hsl-color))))
(when-let [color (some-> js/document.documentElement
(js/getComputedStyle)
(.getPropertyValue "--lx-accent-09"))]
(when-not (str/blank? color)
(if (str/starts-with? color "#")
color
(let [hsl-color (some-> color
(str/replace "hsl(" "")
(str/replace ")" "")
(str/split ","))]
(when-let [hsl-color (and (not (str/blank? (first hsl-color)))
(map js/parseFloat hsl-color))]
(apply util/hsl2hex hsl-color)))))))

View File

@@ -58,8 +58,7 @@
[:div.ctls.flex.items-center
[:div.mt-1.sm:mt-0.sm:col-span-2
{:style {:display "flex" :gap "0.5rem" :align-items "center"}}
[:div.mt-1.sm:mt-0.sm:col-span-2.flex.gap-4.items-center.flex-wrap
[:div (cond
(mobile-util/native-android?)
(ui/button